本文整理汇总了Java中org.eclipse.gemoc.dsl.debug.ide.launch.AbstractDSLLaunchConfigurationDelegate类的典型用法代码示例。如果您正苦于以下问题:Java AbstractDSLLaunchConfigurationDelegate类的具体用法?Java AbstractDSLLaunchConfigurationDelegate怎么用?Java AbstractDSLLaunchConfigurationDelegate使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AbstractDSLLaunchConfigurationDelegate类属于org.eclipse.gemoc.dsl.debug.ide.launch包,在下文中一共展示了AbstractDSLLaunchConfigurationDelegate类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initializeFrom
import org.eclipse.gemoc.dsl.debug.ide.launch.AbstractDSLLaunchConfigurationDelegate; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#initializeFrom(org.eclipse.debug.core.ILaunchConfiguration)
*/
public void initializeFrom(final ILaunchConfiguration configuration) {
super.initializeFrom(configuration);
disableUpdate = true;
siriusResourceURIText.setText("");
try {
siriusResourceURIText.setText(configuration.getAttribute(
AbstractDSLLaunchConfigurationDelegate.RESOURCE_URI, ""));
} catch (CoreException e) {
Activator.getDefault().error(e);
}
disableUpdate = false;
}
示例2: initializeFrom
import org.eclipse.gemoc.dsl.debug.ide.launch.AbstractDSLLaunchConfigurationDelegate; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#initializeFrom(org.eclipse.debug.core.ILaunchConfiguration)
*/
public void initializeFrom(final ILaunchConfiguration configuration) {
disableUpdate = true;
resourceURIText.setText("");
firstInstructionURIText.setText("");
try {
resourceURIText.setText(configuration.getAttribute(
AbstractDSLLaunchConfigurationDelegate.RESOURCE_URI, ""));
firstInstructionURIText.setText(configuration.getAttribute(
AbstractDSLLaunchConfigurationDelegate.FIRST_INSTRUCTION_URI, ""));
} catch (CoreException e) {
Activator.getDefault().error(e);
}
disableUpdate = false;
}
示例3: extractInformation
import org.eclipse.gemoc.dsl.debug.ide.launch.AbstractDSLLaunchConfigurationDelegate; //导入依赖的package包/类
protected void extractInformation() throws CoreException {
_languageName = getAttribute(LAUNCH_SELECTED_LANGUAGE, "");
_modelURI = URI.createPlatformResourceURI(getAttribute(AbstractDSLLaunchConfigurationDelegate.RESOURCE_URI, ""),
true);
String animatorURIAsString = getAttribute("airdResource", "");
if (animatorURIAsString != null && !animatorURIAsString.equals("")) {
_animatorURI = URI.createPlatformResourceURI(animatorURIAsString, true);
_animationDelay = getAttribute(LAUNCH_DELAY, 0);
}
_deadlockDetectionDepth = getAttribute(LAUNCH_DEADLOCK_DETECTION_DEPTH, 10);
_methodEntryPoint = getAttribute(LAUNCH_METHOD_ENTRY_POINT, "");
_modelEntryPoint = getAttribute(LAUNCH_MODEL_ENTRY_POINT, "");
_modelInitializationMethod = getAttribute(LAUNCH_INITIALIZATION_METHOD, "");
_modelInitializationArguments = getAttribute(LAUNCH_INITIALIZATION_ARGUMENTS, "");
_melangeQuery = getAttribute(LAUNCH_MELANGE_QUERY, "");
for (EngineAddonSpecificationExtension extension : EngineAddonSpecificationExtensionPoint.getSpecifications()) {
_engineAddonExtensions.put(extension, getAttribute(extension.getName(), false));
}
_breakStart = getAttribute(LAUNCH_BREAK_START, Boolean.FALSE);
_debugModelID = getAttribute(DEBUG_MODEL_ID, ".debugModel");
}
示例4: performApply
import org.eclipse.gemoc.dsl.debug.ide.launch.AbstractDSLLaunchConfigurationDelegate; //导入依赖的package包/类
@Override
public void performApply(ILaunchConfigurationWorkingCopy configuration)
{
configuration.setAttribute(
AbstractDSLLaunchConfigurationDelegate.RESOURCE_URI,
this._bcoolLocationText.getText());
for (int i = 0; i < _configurationLocationTexts.size(); i++){
configuration.setAttribute(
"Configuration"+i,
this._configurationLocationTexts.get(i).getText());
}
configuration.setAttribute("nb_logicalSteps", nb_configLocations);
configuration.setAttribute(CoordinatedRunConfiguration.LAUNCH_SELECTED_DECIDER, this._deciderCombo.getText());
// If the bflowcheck is disable I store an empty bflow path to force the use of bcool
//
if (!(_bflowLocationText.isEnabled())) { configuration.setAttribute ("bflow", "");}
else {configuration.setAttribute ("bflow", this._bflowLocationText.getText());}
}
示例5: extractInformation
import org.eclipse.gemoc.dsl.debug.ide.launch.AbstractDSLLaunchConfigurationDelegate; //导入依赖的package包/类
protected void extractInformation() throws CoreException
{
super.extractInformation();
_configurationURIs = new ArrayList<URI>();
_bcoolURI = URI.createPlatformResourceURI(
getAttribute(AbstractDSLLaunchConfigurationDelegate.RESOURCE_URI, ""),
true);
_bflowURI = URI.createPlatformResourceURI(
getAttribute("bflow", ""),
true);
_bflowPath = getAttribute("bflow", "");
nb_config = getAttribute("nb_logicalSteps", 0);
for(int i=0; i < nb_config; i++){
_configurationURIs.add(URI.createPlatformResourceURI(
getAttribute("Configuration"+i, "")
,true));
}
}
示例6: extractInformation
import org.eclipse.gemoc.dsl.debug.ide.launch.AbstractDSLLaunchConfigurationDelegate; //导入依赖的package包/类
protected void extractInformation() throws CoreException {
_languageName = getAttribute(LAUNCH_SELECTED_LANGUAGE, "");
_modelURI = URI.createPlatformResourceURI(
getAttribute(AbstractDSLLaunchConfigurationDelegate.RESOURCE_URI, ""), true);
String animatorURIAsString = getAttribute("airdResource", "");
if (animatorURIAsString != null && !animatorURIAsString.equals("")) {
_animatorURI = URI.createPlatformResourceURI(animatorURIAsString, true);
_animationDelay = getAttribute(LAUNCH_DELAY, 0);
}
_deadlockDetectionDepth = getAttribute(LAUNCH_DEADLOCK_DETECTION_DEPTH, 10);
_methodEntryPoint = getAttribute(LAUNCH_METHOD_ENTRY_POINT, "");
_modelEntryPoint = getAttribute(LAUNCH_MODEL_ENTRY_POINT, "");
_modelInitializationMethod = getAttribute(LAUNCH_INITIALIZATION_METHOD, "");
_modelInitializationArguments = getAttribute(LAUNCH_INITIALIZATION_ARGUMENTS, "");
_melangeQuery = getAttribute(LAUNCH_MELANGE_QUERY, "");
for (EngineAddonSpecificationExtension extension : EngineAddonSpecificationExtensionPoint.getSpecifications()) {
_engineAddonExtensions.put(extension, getAttribute(extension.getName(), false));
}
_breakStart = getAttribute(LAUNCH_BREAK_START, Boolean.FALSE);
_debugModelID = getAttribute(DEBUG_MODEL_ID, ".debugModel");
}
示例7: performApply
import org.eclipse.gemoc.dsl.debug.ide.launch.AbstractDSLLaunchConfigurationDelegate; //导入依赖的package包/类
@Override
public void performApply(ILaunchConfigurationWorkingCopy configuration) {
configuration.setAttribute(
AbstractDSLLaunchConfigurationDelegate.RESOURCE_URI,
this._modelLocationText.getText());
configuration.setAttribute(
AbstractDSLLaunchConfigurationDelegateSiriusUI.SIRIUS_RESOURCE_URI,
this._siriusRepresentationLocationText.getText());
configuration.setAttribute(RunConfiguration.LAUNCH_DELAY,
Integer.parseInt(_delayText.getText()));
configuration.setAttribute(RunConfiguration.LAUNCH_SELECTED_LANGUAGE,
_languageCombo.getText());
configuration.setAttribute(RunConfiguration.LAUNCH_MELANGE_QUERY,
_melangeQueryText.getText());
configuration.setAttribute(RunConfiguration.LAUNCH_MODEL_ENTRY_POINT,
_entryPointModelElementText.getText());
configuration.setAttribute(RunConfiguration.LAUNCH_METHOD_ENTRY_POINT,
_entryPointMethodText.getText());
configuration.setAttribute(RunConfiguration.LAUNCH_INITIALIZATION_METHOD,
_modelInitializationMethodText.getText());
configuration.setAttribute(RunConfiguration.LAUNCH_INITIALIZATION_ARGUMENTS,
_modelInitializationArgumentsText.getText());
configuration.setAttribute(RunConfiguration.LAUNCH_BREAK_START,
_animationFirstBreak.getSelection());
// DebugModelID for sequential engine
configuration.setAttribute(RunConfiguration.DEBUG_MODEL_ID, Activator.DEBUG_MODEL_ID);
}
示例8: createLaunchConfiguration
import org.eclipse.gemoc.dsl.debug.ide.launch.AbstractDSLLaunchConfigurationDelegate; //导入依赖的package包/类
/**
* Creates a {@link ILaunchConfiguration}. If the <code>firstInstruction</code> is <code>null</code> the
* launch configuration dialog is opened.
*
* @param file
* the selected model {@link IFile}
* @param firstInstruction
* the first {@link EObject instruction} or <code>null</code> for interactive selection
* @param mode
* the {@link ILaunchConfiguration#getModes() mode}
* @return an array of possible {@link ILaunchConfiguration}, can be empty but not <code>null</code>
* @throws CoreException
* if {@link ILaunchConfiguration} initialization fails of models can't be loaded
*/
protected ILaunchConfiguration[] createLaunchConfiguration(final IResource file,
EObject firstInstruction, final String mode) throws CoreException {
final ILaunchConfiguration[] res;
ILaunchManager manager = DebugPlugin.getDefault().getLaunchManager();
ILaunchConfigurationType type = manager.getLaunchConfigurationType(getLaunchConfigurationTypeID());
ILaunchConfigurationWorkingCopy configuration = type.newInstance(null, file.getName());
configuration.setMappedResources(new IResource[] {file, });
configuration.setAttribute(AbstractDSLLaunchConfigurationDelegate.RESOURCE_URI, file.getFullPath()
.toString());
if (firstInstruction == null) {
// open configuration for further editing
final ILaunchGroup group = DebugUITools.getLaunchGroup(configuration, mode);
if (group != null) {
configuration.doSave();
DebugUITools.openLaunchConfigurationDialog(PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getShell(), configuration, group.getIdentifier(), null);
}
res = new ILaunchConfiguration[] {};
} else {
configuration.setAttribute(AbstractDSLLaunchConfigurationDelegate.FIRST_INSTRUCTION_URI,
EcoreUtil.getURI(firstInstruction).toString());
// save and return new configuration
configuration.doSave();
res = new ILaunchConfiguration[] {configuration, };
}
return res;
}
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:44,代码来源:AbstractDSLLaunchConfigurationDelegateUI.java
示例9: performApply
import org.eclipse.gemoc.dsl.debug.ide.launch.AbstractDSLLaunchConfigurationDelegate; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#performApply(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
*/
public void performApply(final ILaunchConfigurationWorkingCopy configuration) {
configuration.setAttribute(AbstractDSLLaunchConfigurationDelegate.RESOURCE_URI, resourceURIText
.getText());
configuration.setAttribute(AbstractDSLLaunchConfigurationDelegate.FIRST_INSTRUCTION_URI,
firstInstructionURIText.getText());
}
示例10: performApply
import org.eclipse.gemoc.dsl.debug.ide.launch.AbstractDSLLaunchConfigurationDelegate; //导入依赖的package包/类
@Override
public void performApply(ILaunchConfigurationWorkingCopy configuration) {
configuration.setAttribute(
AbstractDSLLaunchConfigurationDelegate.RESOURCE_URI,
this._modelLocationText.getText());
configuration.setAttribute(
AbstractDSLLaunchConfigurationDelegateUI.SIRIUS_RESOURCE_URI,
this._siriusRepresentationLocationText.getText());
configuration.setAttribute(RunConfiguration.LAUNCH_DELAY,
Integer.parseInt(_delayText.getText()));
configuration.setAttribute(RunConfiguration.LAUNCH_SELECTED_LANGUAGE,
_languageCombo.getText());
configuration.setAttribute(RunConfiguration.LAUNCH_MELANGE_QUERY,
_melangeQueryText.getText());
configuration.setAttribute(RunConfiguration.LAUNCH_MODEL_ENTRY_POINT,
_entryPointModelElementText.getText());
configuration.setAttribute(RunConfiguration.LAUNCH_METHOD_ENTRY_POINT,
_entryPointMethodText.getText());
configuration.setAttribute(RunConfiguration.LAUNCH_INITIALIZATION_METHOD,
_modelInitializationMethodText.getText());
configuration.setAttribute(RunConfiguration.LAUNCH_INITIALIZATION_ARGUMENTS,
_modelInitializationArgumentsText.getText());
configuration.setAttribute(RunConfiguration.LAUNCH_BREAK_START,
_animationFirstBreak.getSelection());
// DebugModelID for sequential engine
configuration.setAttribute(RunConfiguration.DEBUG_MODEL_ID, Activator.DEBUG_MODEL_ID);
}
示例11: setDefaults
import org.eclipse.gemoc.dsl.debug.ide.launch.AbstractDSLLaunchConfigurationDelegate; //导入依赖的package包/类
/**
* {@inheritDoc}
*
* @see org.eclipse.debug.ui.ILaunchConfigurationTab#setDefaults(org.eclipse.debug.core.ILaunchConfigurationWorkingCopy)
*/
public void setDefaults(final ILaunchConfigurationWorkingCopy configuration) {
configuration.setAttribute(AbstractDSLLaunchConfigurationDelegate.RESOURCE_URI, "");
configuration.setAttribute(AbstractDSLLaunchConfigurationDelegate.FIRST_INSTRUCTION_URI, "");
}