public class DevelServerLaunchConfigurationDelegate extends AbstractJavaLaunchConfigurationDelegate
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 JettyRunConfiguration
class.
complileErrorProjectPromptStatus, complileErrorPromptStatus, promptStatus, saveScopedDirtyEditors, switchToDebugPromptStatus
Constructor and Description |
---|
DevelServerLaunchConfigurationDelegate()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
buildForLaunch(ILaunchConfiguration configuration,
String mode,
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(ILaunchConfiguration configuration,
String mode,
IProgressMonitor monitor)
Returns whether a launch should proceed.
|
String[] |
getClasspath(ILaunchConfiguration configuration)
Returns the entries that should appear on the user portion of the
classpath as specified by the given launch configuration, as an array of
resolved strings.
|
void |
launch(ILaunchConfiguration configuration,
String mode,
ILaunch launch,
IProgressMonitor monitor)
Launches the given configuration in the specified mode, contributing
debug targets and/or processes to the given launch object.
|
boolean |
preLaunchCheck(ILaunchConfiguration configuration,
String mode,
IProgressMonitor monitor)
Returns whether a launch should proceed.
|
abort, allowAdvancedSourcelookup, getBootpath, getBootpathExt, getBreakpoints, getBuildOrder, 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
addReferencedProjects, buildProjects, computeBuildOrder, computeReferencedBuildOrder, existsProblems, saveBeforeLaunch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
showCommandLine
public DevelServerLaunchConfigurationDelegate()
public boolean preLaunchCheck(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor) throws CoreException
preLaunchCheck
in interface ILaunchConfigurationDelegate2
preLaunchCheck
in class AbstractJavaLaunchConfigurationDelegate
configuration
- Configuration being launched.mode
- Launch mode.monitor
- The progress monitor, or null
.CoreException
- If an exception occurs while performing pre-launch checks.public boolean buildForLaunch(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor) throws CoreException
false
is returned the launch will proceed without further
building, and if true
is 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)
.
buildForLaunch
in interface ILaunchConfigurationDelegate2
buildForLaunch
in class LaunchConfigurationDelegate
configuration
- The configuration being launched.mode
- Launch mode.monitor
- The Progress monitor, or null
.CoreException
- If an exception occurs while building.public boolean finalLaunchCheck(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor) throws CoreException
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.finalLaunchCheck
in interface ILaunchConfigurationDelegate2
finalLaunchCheck
in class LaunchConfigurationDelegate
configuration
- The configuration being launched.mode
- Launch mode.monitor
- The Progress monitor, or null
.CoreException
- If an exception occurs during final checks.public void launch(ILaunchConfiguration configuration, String mode, ILaunch launch, IProgressMonitor monitor) throws CoreException
configuration
- The configuration to launch.mode
- The mode in which to launch, one of the mode constants
defined by ILaunchManager
, i.e.
RUN_MODE
or DEBUG_MODE
.monitor
- The progress monitor, or null
progress monitor,
or null
.launch
- The launch object to contribute processes and debug targets to.CoreException
- If launching fails.public String[] getClasspath(ILaunchConfiguration configuration) throws CoreException
Overridden superclass code to add the classpath of the server first.
getClasspath
in class AbstractJavaLaunchConfigurationDelegate
configuration
- launch configuration.CoreException
- If unable to retrieve the attribute.iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.