This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

View | Details | Raw Unified | Return to bug 196303
Collapse All | Expand All

(-)a/cnd.makeproject/src/org/netbeans/modules/cnd/makeproject/api/ProjectActionSupport.java (-2 / +11 lines)
Lines 64-72 Link Here
64
import org.netbeans.modules.cnd.makeproject.api.ProjectActionEvent.Type;
64
import org.netbeans.modules.cnd.makeproject.api.ProjectActionEvent.Type;
65
import org.netbeans.modules.nativeexecution.api.ExecutionListener;
65
import org.netbeans.modules.nativeexecution.api.ExecutionListener;
66
import org.netbeans.modules.cnd.api.remote.CommandProvider;
66
import org.netbeans.modules.cnd.api.remote.CommandProvider;
67
import org.netbeans.modules.cnd.api.remote.HostInfoProvider;
68
import org.netbeans.modules.cnd.api.remote.PathMap;
67
import org.netbeans.modules.cnd.api.remote.PathMap;
69
import org.netbeans.modules.cnd.api.remote.RemoteFileUtil;
68
import org.netbeans.modules.cnd.api.remote.RemoteFileUtil;
69
import org.netbeans.modules.cnd.api.remote.RemoteProject;
70
import org.netbeans.modules.cnd.api.remote.RemoteSyncSupport;
70
import org.netbeans.modules.cnd.api.remote.RemoteSyncSupport;
71
import org.netbeans.modules.cnd.utils.CndPathUtilitities;
71
import org.netbeans.modules.cnd.utils.CndPathUtilitities;
72
import org.netbeans.modules.cnd.makeproject.MakeOptions;
72
import org.netbeans.modules.cnd.makeproject.MakeOptions;
Lines 96-102 Link Here
96
import org.openide.util.NbBundle;
96
import org.openide.util.NbBundle;
97
import org.openide.util.RequestProcessor;
97
import org.openide.util.RequestProcessor;
98
import org.openide.util.Utilities;
98
import org.openide.util.Utilities;
99
import org.openide.windows.IOContainer;
100
import org.openide.windows.IOProvider;
99
import org.openide.windows.IOProvider;
101
import org.openide.windows.InputOutput;
100
import org.openide.windows.InputOutput;
102
101
Lines 477-482 Link Here
477
476
478
            InputOutput io = ioTab;
477
            InputOutput io = ioTab;
479
            boolean runInExternalTerminal = false;
478
            boolean runInExternalTerminal = false;
479
            Project project = pae.getProject();
480
            if (project != null) {
481
                RemoteProject remoteProject = project.getLookup().lookup(RemoteProject.class);
482
                if (remoteProject != null) {
483
                    if (remoteProject.getRemoteMode() == RemoteProject.Mode.REMOTE_SOURCES) {
484
                        String remoteBaseDir = remoteProject.getSourceBaseDir();
485
                        pae.getProfile().setBaseDir(remoteBaseDir);
486
                    }
487
                }
488
            }
480
            int consoleType = pae.getProfile().getConsoleType().getValue();
489
            int consoleType = pae.getProfile().getConsoleType().getValue();
481
            runInExternalTerminal = consoleType == RunProfile.CONSOLE_TYPE_EXTERNAL;            
490
            runInExternalTerminal = consoleType == RunProfile.CONSOLE_TYPE_EXTERNAL;            
482
            if (!pae.getConfiguration().getDevelopmentHost().isLocalhost() && runInExternalTerminal){
491
            if (!pae.getConfiguration().getDevelopmentHost().isLocalhost() && runInExternalTerminal){

Return to bug 196303