本文整理汇总了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;
}
示例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;
}
示例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));
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
示例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));
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}