当前位置: 首页>>代码示例>>Java>>正文


Java AbstractDSLLaunchConfigurationDelegate类代码示例

本文整理汇总了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;
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:21,代码来源:DSLLaunchConfigurationTab.java

示例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;
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:23,代码来源:DSLLaunchConfigurationTab.java

示例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");
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:24,代码来源:RunConfiguration.java

示例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());}
}
 
开发者ID:gemoc,项目名称:coordination,代码行数:20,代码来源:CoordinatedLaunchConfigurationMainTab.java

示例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));
	}
}
 
开发者ID:gemoc,项目名称:coordination,代码行数:19,代码来源:CoordinatedRunConfiguration.java

示例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");
}
 
开发者ID:SiriusLab,项目名称:ModelDebugging,代码行数:24,代码来源:RunConfiguration.java

示例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);
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:28,代码来源:LaunchConfigurationMainTab.java

示例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());
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:12,代码来源:DSLLaunchConfigurationTab.java

示例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);
}
 
开发者ID:SiriusLab,项目名称:ModelDebugging,代码行数:28,代码来源:LaunchConfigurationMainTab.java

示例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, "");
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:10,代码来源:DSLLaunchConfigurationTab.java


注:本文中的org.eclipse.gemoc.dsl.debug.ide.launch.AbstractDSLLaunchConfigurationDelegate类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。