Package com.iizigo.server.launch
Class DevelServerLaunchConfigurationDelegate
- java.lang.Object
- org.eclipse.debug.core.model.LaunchConfigurationDelegate
- org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
- com.iizigo.server.launch.DevelServerLaunchConfigurationDelegate
 
 
 
- All Implemented Interfaces:
- org.eclipse.debug.core.IDebugEventSetListener,- org.eclipse.debug.core.model.ILaunchConfigurationDelegate,- org.eclipse.debug.core.model.ILaunchConfigurationDelegate2
 - public class DevelServerLaunchConfigurationDelegate extends org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegateThe iizi Development Server delegate launcher.- This delegate is used for the iizi Development Server to verify that the configuration is still valid as the configuration file resides separately, loads various configurations from it and then launches the Java VM with the - JettyRunConfigurationclass.- Author:
- Christopher Mindus
 
- Constructor Summary- Constructors - Constructor - Description - DevelServerLaunchConfigurationDelegate()Constructor.
 - Method Summary- All Methods Instance Methods Concrete Methods - Modifier and Type - Method - Description - boolean- buildForLaunch(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.core.runtime.IProgressMonitor monitor)Optionally performs any required building before launching the given configuration in the specified mode, and returns whether the debug platform should perform an incremental workspace build before the launch continues.- boolean- finalLaunchCheck(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.core.runtime.IProgressMonitor monitor)Returns whether a launch should proceed.- void- launch(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.debug.core.ILaunch launch, org.eclipse.core.runtime.IProgressMonitor monitor)Launches the given configuration in the specified mode, contributing debug targets and/or processes to the given launch object.- boolean- preLaunchCheck(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.core.runtime.IProgressMonitor monitor)Returns whether a launch should proceed.- Methods inherited from class org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate- abort, allowAdvancedSourcelookup, getBootpath, getBootpathExt, getBreakpoints, getBuildOrder, getClasspath, getClasspathAndModulepath, getDefaultWorkingDirectory, getEnvironment, getJavaLibraryPath, getJavaProject, getJavaProjectName, getLaunch, getLaunchManager, getMainTypeName, getModuleCLIOptions, getProgramArguments, getProjectsForProblemSearch, getVMArguments, getVMArguments, getVMConnectorId, getVMInstall, getVMInstallName, getVMInstallType, getVMInstallTypeId, getVMRunner, getVMSpecificAttributesMap, getWorkingDirectory, getWorkingDirectoryPath, handleDebugEvents, isAllowTerminate, isLaunchProblem, isStopInMain, prepareStopInMain, setDefaultSourceLocator, supportsModule, supportsPreviewFeatures, verifyJavaProject, verifyMainTypeName, verifyVMInstall, verifyWorkingDirectory
 - Methods inherited from class org.eclipse.debug.core.model.LaunchConfigurationDelegate- addReferencedProjects, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, saveBeforeLaunch
 
 
- Method Detail- preLaunchCheck- public boolean preLaunchCheck(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreExceptionReturns whether a launch should proceed. This method is called first in the launch sequence providing an opportunity for this launch delegate to abort the launch.- Specified by:
- preLaunchCheckin interface- org.eclipse.debug.core.model.ILaunchConfigurationDelegate2
- Overrides:
- preLaunchCheckin class- org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate
- Parameters:
- configuration- Configuration being launched.
- mode- Launch mode.
- monitor- The progress monitor, or- null.
- Returns:
- Whether the launch should proceed.
- Throws:
- org.eclipse.core.runtime.CoreException- If an exception occurs while performing pre-launch checks.
 
 - buildForLaunch- public boolean buildForLaunch(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreExceptionOptionally performs any required building before launching the given configuration in the specified mode, and returns whether the debug platform should perform an incremental workspace build before the launch continues. If- falseis returned the launch will proceed without further building, and if- trueis returned an incremental build will be performed on the workspace before launching.- This method is only called if the launch is invoked with flag indicating building should take place before the launch. This is done via the method - ILaunchConfiguration.launch(String mode, IProgressMonitor monitor, boolean build).- Specified by:
- buildForLaunchin interface- org.eclipse.debug.core.model.ILaunchConfigurationDelegate2
- Overrides:
- buildForLaunchin class- org.eclipse.debug.core.model.LaunchConfigurationDelegate
- Parameters:
- configuration- The configuration being launched.
- mode- Launch mode.
- monitor- The Progress monitor, or- null.
- Returns:
- Whether the debug platform should perform an incremental workspace build before the launch.
- Throws:
- org.eclipse.core.runtime.CoreException- If an exception occurs while building.
 
 - finalLaunchCheck- public boolean finalLaunchCheck(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreExceptionReturns whether a launch should proceed. This method is called after- preLaunchCheck()and- buildForLaunch()providing a final chance for this launch delegate to abort a launch if required. For example, a delegate could cancel a launch if it discovered compilation errors that would prevent the launch from succeeding.- Specified by:
- finalLaunchCheckin interface- org.eclipse.debug.core.model.ILaunchConfigurationDelegate2
- Overrides:
- finalLaunchCheckin class- org.eclipse.debug.core.model.LaunchConfigurationDelegate
- Parameters:
- configuration- The configuration being launched.
- mode- Launch mode.
- monitor- The Progress monitor, or- null.
- Returns:
- Whether the launch should proceed.
- Throws:
- org.eclipse.core.runtime.CoreException- If an exception occurs during final checks.
 
 - launch- public void launch(org.eclipse.debug.core.ILaunchConfiguration configuration, java.lang.String mode, org.eclipse.debug.core.ILaunch launch, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreExceptionLaunches the given configuration in the specified mode, contributing debug targets and/or processes to the given launch object. The launch object has already been registered with the launch manager.- Parameters:
- configuration- The configuration to launch.
- mode- The mode in which to launch, one of the mode constants defined by- ILaunchManager, i.e.- RUN_MODEor- DEBUG_MODE.
- monitor- The progress monitor, or- nullprogress monitor, or- null.
- launch- The launch object to contribute processes and debug targets to.
- Throws:
- org.eclipse.core.runtime.CoreException- If launching fails.