Java Code Examples for org.eclipse.debug.core.ILaunch#getLaunchMode()
The following examples show how to use
org.eclipse.debug.core.ILaunch#getLaunchMode() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: RustGDBLaunchWrapper.java From corrosion with Eclipse Public License 2.0 | 4 votes |
public RustGDBLaunchWrapper(ILaunch launch) { super(launch.getLaunchConfiguration(), launch.getLaunchMode(), launch.getSourceLocator()); }
Example 2
Source File: GwtWtpPlugin.java From gwt-eclipse-plugin with Eclipse Public License 1.0 | 4 votes |
/** * Possibly start the GWT Super Dev Mode CodeServer. <br/> * <br/> * This starts as separate process, which allows for custom args modification. <br/> * It adds a launcher id to both processes for reference. <br/> * 1. Get it from classic launch config <br/> * 2. Get it from server VM properties <br/> */ protected void onServerStarted(DebugEvent event) { onAfterWebServerStarted(event); IProcess runtimeProcess = (IProcess) event.getSource(); ILaunch launch = runtimeProcess.getLaunch(); ILaunchConfiguration launchConfig = launch.getLaunchConfiguration(); String launchMode = launch.getLaunchMode(); IServer server = null; try { server = ServerUtil.getServer(launchConfig); } catch (CoreException e) { logError("possiblyLaunchGwtSuperDevModeCodeServer: Could get the WTP server.", e); return; } if (server == null) { logMessage("possiblyLaunchGwtSuperDevModeCodeServer: No WTP server runtime found."); return; } IFacetedProject gwtFacetedProject = GwtFacetUtils.getGwtFacetedProject(server); // If one of the server modules has a gwt facet if (gwtFacetedProject == null) { logMessage("possiblyLaunchGwtSuperDevModeCodeServer: Does not have a GWT Facet."); return; } // Sync Option - the sync is off, ignore stopping the server if (!GWTProjectProperties.getFacetSyncCodeServer(gwtFacetedProject.getProject())) { logMessage("possiblyLaunchGwtSuperDevModeCodeServer: GWT Facet project properties, the code server sync is off."); return; } /** * Get the war output path for the `-launcherDir` in SDM launcher */ String launcherDir = getLauncherDirectory(server, launchConfig, gwtFacetedProject); // LauncherId used to reference and terminate the the process String launcherId = setLauncherIdToWtpRunTimeLaunchConfig(launchConfig); logMessage("possiblyLaunchGwtSuperDevModeCodeServer: Launching GWT Super Dev Mode CodeServer. launcherId=" + launcherId + " launcherDir=" + launcherDir); // Just in case if (launchMode == null) { // run the code server, no need to debug it launchMode = "run"; } if (launcherId == null) { // ids to link two processes together logMessage("possiblyLaunchGwtSuperDevModeCodeServer: No launcherId."); } // Add server urls to DevMode view for easy clicking on addServerUrlsToDevModeView(launch); // Creates ore launches an existing Super Dev Mode Code Server process GwtSuperDevModeCodeServerLaunchUtil.launch(gwtFacetedProject.getProject(), launchMode, launcherDir, launcherId); }
Example 3
Source File: AbstractLangDebugLaunchConfigurationDelegate.java From goclipse with Eclipse Public License 1.0 | 4 votes |
@Override protected void launchProcess(ILaunchConfiguration configuration, ILaunch launch, IProgressMonitor monitor) throws CoreException { String mode = launch.getLaunchMode(); gdbLaunchDelegate.launch(configuration, mode, launch, monitor); }