• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java LaunchConfiguration类的典型用法和代码示例

java 3次浏览

本文整理汇总了Java中org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration的典型用法代码示例。如果您正苦于以下问题:Java LaunchConfiguration类的具体用法?Java LaunchConfiguration怎么用?Java LaunchConfiguration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

LaunchConfiguration类属于org.eclipse.gemoc.trace.commons.model.launchconfiguration包,在下文中一共展示了LaunchConfiguration类的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: eSet

点赞 3

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
	switch (featureID) {
		case TracePackage.TRACE__ROOT_STEP:
			setRootStep((StepSubType)newValue);
			return;
		case TracePackage.TRACE__TRACED_OBJECTS:
			getTracedObjects().clear();
			getTracedObjects().addAll((Collection<? extends TracedObjectSubtype>)newValue);
			return;
		case TracePackage.TRACE__STATES:
			getStates().clear();
			getStates().addAll((Collection<? extends StateSubType>)newValue);
			return;
		case TracePackage.TRACE__LAUNCHCONFIGURATION:
			setLaunchconfiguration((LaunchConfiguration)newValue);
			return;
	}
	super.eSet(featureID, newValue);
}
 

开发者ID:eclipse,
项目名称:gemoc-studio-modeldebugging,
代码行数:27,
代码来源:TraceImpl.java

示例2: eUnset

点赞 3

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID) {
	switch (featureID) {
		case TracePackage.TRACE__ROOT_STEP:
			setRootStep((StepSubType)null);
			return;
		case TracePackage.TRACE__TRACED_OBJECTS:
			getTracedObjects().clear();
			return;
		case TracePackage.TRACE__STATES:
			getStates().clear();
			return;
		case TracePackage.TRACE__LAUNCHCONFIGURATION:
			setLaunchconfiguration((LaunchConfiguration)null);
			return;
	}
	super.eUnset(featureID);
}
 

开发者ID:eclipse,
项目名称:gemoc-studio-modeldebugging,
代码行数:24,
代码来源:TraceImpl.java

示例3: initTrace

点赞 3

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
@Override
public EObject initTrace(LaunchConfiguration launchConfiguration) {
	// Create root
	traceRoot = fsmTrace.FsmTraceFactory.eINSTANCE.createSpecificTrace();
	traceRoot.setLaunchconfiguration(launchConfiguration);

	// Create root sequential step
	org.eclipse.gemoc.trace.commons.model.trace.SequentialStep<fsmTrace.Steps.SpecificStep, fsmTrace.States.SpecificState> rootStep = fsmTrace.Steps.StepsFactory.eINSTANCE
			.createSpecificRootStep();
	traceRoot.setRootStep(rootStep);

	// Put in the resource
	traceResource.getContents().add(traceRoot);

	return traceRoot;
}
 

开发者ID:eclipse,
项目名称:gemoc-studio,
代码行数:17,
代码来源:FsmTraceConstructor.java

示例4: initTrace

点赞 3

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
@Override
public EObject initTrace(LaunchConfiguration launchConfiguration) {
	// Create root
	traceRoot = minitlTrace.MinitlTraceFactory.eINSTANCE.createSpecificTrace();
	traceRoot.setLaunchconfiguration(launchConfiguration);

	// Create root sequential step
	org.eclipse.gemoc.trace.commons.model.trace.SequentialStep<minitlTrace.Steps.SpecificStep, minitlTrace.States.SpecificState> rootStep = minitlTrace.Steps.StepsFactory.eINSTANCE
			.createSpecificRootStep();
	traceRoot.setRootStep(rootStep);

	// Put in the resource
	traceResource.getContents().add(traceRoot);

	return traceRoot;
}
 

开发者ID:tetrabox,
项目名称:minitl,
代码行数:17,
代码来源:MinitlTraceConstructor.java

示例5: parseLaunchConfiguration

点赞 2

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
@Override
public Map<String, Object> parseLaunchConfiguration(LaunchConfiguration launchConfiguration) {
	Map<String, Object> attributes = new HashMap<>();
	for (LaunchConfigurationParameter param : launchConfiguration.getParameters()) {
		switch (param.eClass().getClassifierID()) {
			case LaunchconfigurationPackage.LANGUAGE_NAME_PARAMETER: {
				attributes.put(IRunConfiguration.LAUNCH_SELECTED_LANGUAGE, param.getValue());
			}
			case LaunchconfigurationPackage.MODEL_URI_PARAMETER: {
				attributes.put("Resource", param.getValue());
			}
			case LaunchconfigurationPackage.ANIMATOR_URI_PARAMETER: {
				attributes.put("airdResource", param.getValue());
			}
			case LaunchconfigurationPackage.ENTRY_POINT_PARAMETER: {
				attributes.put(IRunConfiguration.LAUNCH_METHOD_ENTRY_POINT, param.getValue());
			}
			case LaunchconfigurationPackage.MODEL_ROOT_PARAMETER: {
				attributes.put(IRunConfiguration.LAUNCH_MODEL_ENTRY_POINT, param.getValue());
			}
			case LaunchconfigurationPackage.INITIALIZATION_METHOD_PARAMETER: {
				attributes.put(IRunConfiguration.LAUNCH_INITIALIZATION_METHOD, param.getValue());
			}
			case LaunchconfigurationPackage.INITIALIZATION_ARGUMENTS_PARAMETER: {
				attributes.put(IRunConfiguration.LAUNCH_INITIALIZATION_ARGUMENTS, param.getValue());
			}
			case LaunchconfigurationPackage.ADDON_EXTENSION_PARAMETER: {
				attributes.put(param.getValue(), true);
			}
		}
	}
	return attributes;
}
 

开发者ID:eclipse,
项目名称:gemoc-studio-modeldebugging,
代码行数:34,
代码来源:Launcher.java

示例6: initTrace

点赞 2

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
@Override
public EObject initTrace(LaunchConfiguration launchConfiguration) {
	// Create root
	traceRoot = GenerictraceFactory.eINSTANCE.createGenericTrace();
	traceRoot.setLaunchconfiguration(launchConfiguration);

	// Create root sequential step
	GenericSequentialStep rootStep = GenerictraceFactory.eINSTANCE.createGenericSequentialStep();
	traceRoot.setRootStep(rootStep);

	// Put in the resource
	traceResource.getContents().add(traceRoot);

	return traceRoot;
}
 

开发者ID:eclipse,
项目名称:gemoc-studio-modeldebugging,
代码行数:16,
代码来源:GenericTraceConstructor.java

示例7: basicSetLaunchconfiguration

点赞 2

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetLaunchconfiguration(LaunchConfiguration newLaunchconfiguration, NotificationChain msgs) {
	LaunchConfiguration oldLaunchconfiguration = launchconfiguration;
	launchconfiguration = newLaunchconfiguration;
	if (eNotificationRequired()) {
		ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, TracePackage.TRACE__LAUNCHCONFIGURATION, oldLaunchconfiguration, newLaunchconfiguration);
		if (msgs == null) msgs = notification; else msgs.add(notification);
	}
	return msgs;
}
 

开发者ID:eclipse,
项目名称:gemoc-studio-modeldebugging,
代码行数:15,
代码来源:TraceImpl.java

示例8: setLaunchconfiguration

点赞 2

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setLaunchconfiguration(LaunchConfiguration newLaunchconfiguration) {
	if (newLaunchconfiguration != launchconfiguration) {
		NotificationChain msgs = null;
		if (launchconfiguration != null)
			msgs = ((InternalEObject)launchconfiguration).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - TracePackage.TRACE__LAUNCHCONFIGURATION, null, msgs);
		if (newLaunchconfiguration != null)
			msgs = ((InternalEObject)newLaunchconfiguration).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - TracePackage.TRACE__LAUNCHCONFIGURATION, null, msgs);
		msgs = basicSetLaunchconfiguration(newLaunchconfiguration, msgs);
		if (msgs != null) msgs.dispatch();
	}
	else if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, TracePackage.TRACE__LAUNCHCONFIGURATION, newLaunchconfiguration, newLaunchconfiguration));
}
 

开发者ID:eclipse,
项目名称:gemoc-studio-modeldebugging,
代码行数:19,
代码来源:TraceImpl.java

示例9: getLaunchConfiguration

点赞 2

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
@Override
public LaunchConfiguration getLaunchConfiguration() {
	return trace.getLaunchconfiguration();
}
 

开发者ID:eclipse,
项目名称:gemoc-studio-modeldebugging,
代码行数:5,
代码来源:GenericTraceExtractor.java

示例10: initializePackageContents

点赞 2

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
/**
 * Complete the initialization of the package and its meta-model.  This
 * method is guarded to have no affect on any invocation but its first.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void initializePackageContents() {
	if (isInitialized) return;
	isInitialized = true;

	// Initialize package
	setName(eNAME);
	setNsPrefix(eNS_PREFIX);
	setNsURI(eNS_URI);

	// Create type parameters

	// Set bounds for type parameters

	// Add supertypes to classes
	languageNameParameterEClass.getESuperTypes().add(this.getLaunchConfigurationParameter());
	addonExtensionParameterEClass.getESuperTypes().add(this.getLaunchConfigurationParameter());
	modelURIParameterEClass.getESuperTypes().add(this.getLaunchConfigurationParameter());
	animatorURIParameterEClass.getESuperTypes().add(this.getLaunchConfigurationParameter());
	entryPointParameterEClass.getESuperTypes().add(this.getLaunchConfigurationParameter());
	initializationArgumentsParameterEClass.getESuperTypes().add(this.getLaunchConfigurationParameter());
	modelRootParameterEClass.getESuperTypes().add(this.getLaunchConfigurationParameter());
	initializationMethodParameterEClass.getESuperTypes().add(this.getLaunchConfigurationParameter());

	// Initialize classes, features, and operations; add parameters
	initEClass(launchConfigurationEClass, LaunchConfiguration.class, "LaunchConfiguration", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
	initEReference(getLaunchConfiguration_Parameters(), this.getLaunchConfigurationParameter(), null, "parameters", null, 0, -1, LaunchConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
	initEAttribute(getLaunchConfiguration_Type(), ecorePackage.getEString(), "type", null, 1, 1, LaunchConfiguration.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

	initEClass(launchConfigurationParameterEClass, LaunchConfigurationParameter.class, "LaunchConfigurationParameter", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
	initEAttribute(getLaunchConfigurationParameter_Value(), ecorePackage.getEString(), "value", "", 0, 1, LaunchConfigurationParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);

	initEClass(languageNameParameterEClass, LanguageNameParameter.class, "LanguageNameParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

	initEClass(addonExtensionParameterEClass, AddonExtensionParameter.class, "AddonExtensionParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

	initEClass(modelURIParameterEClass, ModelURIParameter.class, "ModelURIParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

	initEClass(animatorURIParameterEClass, AnimatorURIParameter.class, "AnimatorURIParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

	initEClass(entryPointParameterEClass, EntryPointParameter.class, "EntryPointParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

	initEClass(initializationArgumentsParameterEClass, InitializationArgumentsParameter.class, "InitializationArgumentsParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

	initEClass(modelRootParameterEClass, ModelRootParameter.class, "ModelRootParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

	initEClass(initializationMethodParameterEClass, InitializationMethodParameter.class, "InitializationMethodParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);

	// Initialize data types
	initEDataType(iSerializableEDataType, byte[].class, "ISerializable", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);

	// Create resource
	createResource(eNS_URI);
}
 

开发者ID:eclipse,
项目名称:gemoc-studio-modeldebugging,
代码行数:61,
代码来源:LaunchconfigurationPackageImpl.java

示例11: parseLaunchConfiguration

点赞 2

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
public Map<String, Object> parseLaunchConfiguration(LaunchConfiguration launchConfiguration) {
	return Collections.emptyMap();
}
 

开发者ID:eclipse,
项目名称:gemoc-studio-modeldebugging,
代码行数:4,
代码来源:AbstractGemocLauncher.java

示例12: getLaunchConfiguration

点赞 1

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
/**
 * @return the launch configuration that was used to generate the trace
 */
LaunchConfiguration getLaunchConfiguration();
 

开发者ID:eclipse,
项目名称:gemoc-studio-modeldebugging,
代码行数:5,
代码来源:ITraceExtractor.java

示例13: initTrace

点赞 1

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
/**
 * Creates and returns a new trace with the given launch configuration.
 * @param launchConfiguration The launch configuration that was used to launch the execution recorded by the trace
 * @return The newly created trace
 */
EObject initTrace(LaunchConfiguration launchConfiguration);
 

开发者ID:eclipse,
项目名称:gemoc-studio-modeldebugging,
代码行数:7,
代码来源:ITraceConstructor.java

示例14: getLaunchconfiguration

点赞 1

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public LaunchConfiguration getLaunchconfiguration() {
	return launchconfiguration;
}
 

开发者ID:eclipse,
项目名称:gemoc-studio-modeldebugging,
代码行数:9,
代码来源:TraceImpl.java

示例15: getLaunchconfiguration

点赞 1

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
/**
 * Returns the value of the '<em><b>Launchconfiguration</b></em>' containment reference.
 * <!-- begin-user-doc -->
 * <p>
 * If the meaning of the '<em>Launchconfiguration</em>' containment reference isn't clear,
 * there really should be more of a description here...
 * </p>
 * <!-- end-user-doc -->
 * @return the value of the '<em>Launchconfiguration</em>' containment reference.
 * @see #setLaunchconfiguration(LaunchConfiguration)
 * @see org.eclipse.gemoc.trace.commons.model.trace.TracePackage#getTrace_Launchconfiguration()
 * @model containment="true" required="true"
 * @generated
 */
LaunchConfiguration getLaunchconfiguration();
 

开发者ID:eclipse,
项目名称:gemoc-studio-modeldebugging,
代码行数:16,
代码来源:Trace.java

示例16: setLaunchconfiguration

点赞 1

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
/**
 * Sets the value of the '{@link org.eclipse.gemoc.trace.commons.model.trace.Trace#getLaunchconfiguration <em>Launchconfiguration</em>}' containment reference.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @param value the new value of the '<em>Launchconfiguration</em>' containment reference.
 * @see #getLaunchconfiguration()
 * @generated
 */
void setLaunchconfiguration(LaunchConfiguration value);
 

开发者ID:eclipse,
项目名称:gemoc-studio-modeldebugging,
代码行数:10,
代码来源:Trace.java

示例17: extractLaunchConfiguration

点赞 1

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchConfiguration; //导入依赖的package包/类
/**
 * Create a {@link LaunchConfiguration} for the Trace based on the engine RunConfiguration.
 * @return a {@link org.eclipse.gemoc.trace.commons.model.trace.LaunchConfiguration}
 */
default LaunchConfiguration extractLaunchConfiguration() {
	return null;
}
 

开发者ID:eclipse,
项目名称:gemoc-studio-modeldebugging,
代码行数:8,
代码来源:IExecutionEngine.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)