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


Java LaunchconfigurationPackage类代码示例

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


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

示例1: init

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchconfigurationPackage; //导入依赖的package包/类
/**
 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
 * 
 * <p>This method is used to initialize {@link LaunchconfigurationPackage#eINSTANCE} when that field is accessed.
 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @see #eNS_URI
 * @see #createPackageContents()
 * @see #initializePackageContents()
 * @generated
 */
public static LaunchconfigurationPackage init() {
	if (isInited) return (LaunchconfigurationPackage)EPackage.Registry.INSTANCE.getEPackage(LaunchconfigurationPackage.eNS_URI);

	// Obtain or create and register package
	LaunchconfigurationPackageImpl theLaunchconfigurationPackage = (LaunchconfigurationPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof LaunchconfigurationPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new LaunchconfigurationPackageImpl());

	isInited = true;

	// Create package meta-data objects
	theLaunchconfigurationPackage.createPackageContents();

	// Initialize created meta-data
	theLaunchconfigurationPackage.initializePackageContents();

	// Mark meta-data to indicate it can't be changed
	theLaunchconfigurationPackage.freeze();

 
	// Update the registry and return the package
	EPackage.Registry.INSTANCE.put(LaunchconfigurationPackage.eNS_URI, theLaunchconfigurationPackage);
	return theLaunchconfigurationPackage;
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:35,代码来源:LaunchconfigurationPackageImpl.java

示例2: parseLaunchConfiguration

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchconfigurationPackage; //导入依赖的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

示例3: setValue

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchconfigurationPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setValue(String newValue) {
	String oldValue = value;
	value = newValue;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, LaunchconfigurationPackage.LAUNCH_CONFIGURATION_PARAMETER__VALUE, oldValue, value));
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:12,代码来源:LaunchConfigurationParameterImpl.java

示例4: eGet

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchconfigurationPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
	switch (featureID) {
		case LaunchconfigurationPackage.LAUNCH_CONFIGURATION_PARAMETER__VALUE:
			return getValue();
	}
	return super.eGet(featureID, resolve, coreType);
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:14,代码来源:LaunchConfigurationParameterImpl.java

示例5: eSet

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchconfigurationPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eSet(int featureID, Object newValue) {
	switch (featureID) {
		case LaunchconfigurationPackage.LAUNCH_CONFIGURATION_PARAMETER__VALUE:
			setValue((String)newValue);
			return;
	}
	super.eSet(featureID, newValue);
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:15,代码来源:LaunchConfigurationParameterImpl.java

示例6: eUnset

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchconfigurationPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID) {
	switch (featureID) {
		case LaunchconfigurationPackage.LAUNCH_CONFIGURATION_PARAMETER__VALUE:
			setValue(VALUE_EDEFAULT);
			return;
	}
	super.eUnset(featureID);
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:15,代码来源:LaunchConfigurationParameterImpl.java

示例7: eIsSet

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchconfigurationPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID) {
	switch (featureID) {
		case LaunchconfigurationPackage.LAUNCH_CONFIGURATION_PARAMETER__VALUE:
			return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value);
	}
	return super.eIsSet(featureID);
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:14,代码来源:LaunchConfigurationParameterImpl.java

示例8: getParameters

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchconfigurationPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public EList<LaunchConfigurationParameter> getParameters() {
	if (parameters == null) {
		parameters = new EObjectContainmentEList<LaunchConfigurationParameter>(LaunchConfigurationParameter.class, this, LaunchconfigurationPackage.LAUNCH_CONFIGURATION__PARAMETERS);
	}
	return parameters;
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:12,代码来源:LaunchConfigurationImpl.java

示例9: setType

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchconfigurationPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setType(String newType) {
	String oldType = type;
	type = newType;
	if (eNotificationRequired())
		eNotify(new ENotificationImpl(this, Notification.SET, LaunchconfigurationPackage.LAUNCH_CONFIGURATION__TYPE, oldType, type));
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:12,代码来源:LaunchConfigurationImpl.java

示例10: eInverseRemove

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchconfigurationPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
	switch (featureID) {
		case LaunchconfigurationPackage.LAUNCH_CONFIGURATION__PARAMETERS:
			return ((InternalEList<?>)getParameters()).basicRemove(otherEnd, msgs);
	}
	return super.eInverseRemove(otherEnd, featureID, msgs);
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:14,代码来源:LaunchConfigurationImpl.java

示例11: eGet

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchconfigurationPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Object eGet(int featureID, boolean resolve, boolean coreType) {
	switch (featureID) {
		case LaunchconfigurationPackage.LAUNCH_CONFIGURATION__PARAMETERS:
			return getParameters();
		case LaunchconfigurationPackage.LAUNCH_CONFIGURATION__TYPE:
			return getType();
	}
	return super.eGet(featureID, resolve, coreType);
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:16,代码来源:LaunchConfigurationImpl.java

示例12: eSet

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchconfigurationPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
	switch (featureID) {
		case LaunchconfigurationPackage.LAUNCH_CONFIGURATION__PARAMETERS:
			getParameters().clear();
			getParameters().addAll((Collection<? extends LaunchConfigurationParameter>)newValue);
			return;
		case LaunchconfigurationPackage.LAUNCH_CONFIGURATION__TYPE:
			setType((String)newValue);
			return;
	}
	super.eSet(featureID, newValue);
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:20,代码来源:LaunchConfigurationImpl.java

示例13: eUnset

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchconfigurationPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void eUnset(int featureID) {
	switch (featureID) {
		case LaunchconfigurationPackage.LAUNCH_CONFIGURATION__PARAMETERS:
			getParameters().clear();
			return;
		case LaunchconfigurationPackage.LAUNCH_CONFIGURATION__TYPE:
			setType(TYPE_EDEFAULT);
			return;
	}
	super.eUnset(featureID);
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:18,代码来源:LaunchConfigurationImpl.java

示例14: eIsSet

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchconfigurationPackage; //导入依赖的package包/类
/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public boolean eIsSet(int featureID) {
	switch (featureID) {
		case LaunchconfigurationPackage.LAUNCH_CONFIGURATION__PARAMETERS:
			return parameters != null && !parameters.isEmpty();
		case LaunchconfigurationPackage.LAUNCH_CONFIGURATION__TYPE:
			return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type);
	}
	return super.eIsSet(featureID);
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:16,代码来源:LaunchConfigurationImpl.java

示例15: init

import org.eclipse.gemoc.trace.commons.model.launchconfiguration.LaunchconfigurationPackage; //导入依赖的package包/类
/**
 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
 * 
 * <p>This method is used to initialize {@link TracePackage#eINSTANCE} when that field is accessed.
 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @see #eNS_URI
 * @see #createPackageContents()
 * @see #initializePackageContents()
 * @generated
 */
public static TracePackage init() {
	if (isInited) return (TracePackage)EPackage.Registry.INSTANCE.getEPackage(TracePackage.eNS_URI);

	// Obtain or create and register package
	TracePackageImpl theTracePackage = (TracePackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof TracePackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new TracePackageImpl());

	isInited = true;

	// Initialize simple dependencies
	EcorePackage.eINSTANCE.eClass();
	LaunchconfigurationPackage.eINSTANCE.eClass();

	// Create package meta-data objects
	theTracePackage.createPackageContents();

	// Initialize created meta-data
	theTracePackage.initializePackageContents();

	// Mark meta-data to indicate it can't be changed
	theTracePackage.freeze();

 
	// Update the registry and return the package
	EPackage.Registry.INSTANCE.put(TracePackage.eNS_URI, theTracePackage);
	return theTracePackage;
}
 
开发者ID:eclipse,项目名称:gemoc-studio-modeldebugging,代码行数:39,代码来源:TracePackageImpl.java


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