本文整理汇总了Java中fr.inria.diverse.melange.metamodel.melange.Language类的典型用法代码示例。如果您正苦于以下问题:Java Language类的具体用法?Java Language怎么用?Java Language使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Language类属于fr.inria.diverse.melange.metamodel.melange包,在下文中一共展示了Language类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: executeForSelectedLanguage
import fr.inria.diverse.melange.metamodel.melange.Language; //导入依赖的package包/类
@Override
public Object executeForSelectedLanguage(ExecutionEvent event,
IProject updatedGemocLanguageProject, Language language)
throws ExecutionException {
CreateDSAWizardContextActionDSAK3 action = new CreateDSAWizardContextActionDSAK3(
updatedGemocLanguageProject);
action.createNewDSAProject(MelangeXDSMLProjectHelper.getFirstEcore(language));
if(action.getLastCreatedProject() != null){
waitForAutoBuild();
Set<String> aspects = SequentialSingleLanguageTemplate.getAspectClassesList(action.getLastCreatedProject());
updateMelange(event,language,aspects);
}
return null;
}
示例2: executeForSelectedLanguage
import fr.inria.diverse.melange.metamodel.melange.Language; //导入依赖的package包/类
@Override
public Object executeForSelectedLanguage(ExecutionEvent event,
IProject updatedGemocLanguageProject, Language language)
throws ExecutionException {
CreateDomainModelWizardContextAction action = new CreateDomainModelWizardContextAction(
updatedGemocLanguageProject);
action.actionToExecute = CreateDomainModelAction.CREATE_NEW_EMF_PROJECT;
action.execute();
if(action.getCreatedEcoreUri() != null){
waitForAutoBuild();
updateMelange(event,language,action.getCreatedEcoreUri());
}
return null;
}
示例3: executeForSelectedLanguage
import fr.inria.diverse.melange.metamodel.melange.Language; //导入依赖的package包/类
@Override
public Object executeForSelectedLanguage(ExecutionEvent event,
IProject updatedGemocLanguageProject, Language language)
throws ExecutionException {
CreateEditorProjectWizardContextAction action = new CreateEditorProjectWizardContextAction(
updatedGemocLanguageProject);
action.actionToExecute = CreateEditorProjectAction.CREATE_NEW_XTEXT_PROJECT;
action.execute();
if(action.getSiriusPath() != null){
waitForAutoBuild();
updateMelange(event,language,action.getXtextPath());
}
return null;
}
示例4: eSet
import fr.inria.diverse.melange.metamodel.melange.Language; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case MelangePackage.MAPPING__RULES:
getRules().clear();
getRules().addAll((Collection<? extends ClassBinding>)newValue);
return;
case MelangePackage.MAPPING__FROM:
setFrom((Language)newValue);
return;
case MelangePackage.MAPPING__TO:
setTo((ModelType)newValue);
return;
}
super.eSet(featureID, newValue);
}
示例5: eUnset
import fr.inria.diverse.melange.metamodel.melange.Language; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case MelangePackage.MAPPING__RULES:
getRules().clear();
return;
case MelangePackage.MAPPING__FROM:
setFrom((Language)null);
return;
case MelangePackage.MAPPING__TO:
setTo((ModelType)null);
return;
}
super.eUnset(featureID);
}
示例6: eSet
import fr.inria.diverse.melange.metamodel.melange.Language; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@SuppressWarnings("unchecked")
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case MelangePackage.MODEL_TYPE__NAME:
setName((String)newValue);
return;
case MelangePackage.MODEL_TYPE__SUBTYPING_RELATIONS:
getSubtypingRelations().clear();
getSubtypingRelations().addAll((Collection<? extends Subtyping>)newValue);
return;
case MelangePackage.MODEL_TYPE__EXTRACTED:
setExtracted((Language)newValue);
return;
case MelangePackage.MODEL_TYPE__MT_URI:
setMtUri((String)newValue);
return;
}
super.eSet(featureID, newValue);
}
示例7: eUnset
import fr.inria.diverse.melange.metamodel.melange.Language; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case MelangePackage.MODEL_TYPE__NAME:
setName(NAME_EDEFAULT);
return;
case MelangePackage.MODEL_TYPE__SUBTYPING_RELATIONS:
getSubtypingRelations().clear();
return;
case MelangePackage.MODEL_TYPE__EXTRACTED:
setExtracted((Language)null);
return;
case MelangePackage.MODEL_TYPE__MT_URI:
setMtUri(MT_URI_EDEFAULT);
return;
}
super.eUnset(featureID);
}
示例8: setOwningLanguage
import fr.inria.diverse.melange.metamodel.melange.Language; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOwningLanguage(Language newOwningLanguage) {
if (newOwningLanguage != eInternalContainer() || (eContainerFeatureID() != MelangePackage.METAMODEL__OWNING_LANGUAGE && newOwningLanguage != null)) {
if (EcoreUtil.isAncestor(this, newOwningLanguage))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
if (newOwningLanguage != null)
msgs = ((InternalEObject)newOwningLanguage).eInverseAdd(this, MelangePackage.LANGUAGE__SYNTAX, Language.class, msgs);
msgs = basicSetOwningLanguage(newOwningLanguage, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, MelangePackage.METAMODEL__OWNING_LANGUAGE, newOwningLanguage, newOwningLanguage));
}
示例9: setOwningLanguage
import fr.inria.diverse.melange.metamodel.melange.Language; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOwningLanguage(Language newOwningLanguage) {
if (newOwningLanguage != eInternalContainer() || (eContainerFeatureID() != MelangePackage.OPERATOR__OWNING_LANGUAGE && newOwningLanguage != null)) {
if (EcoreUtil.isAncestor(this, newOwningLanguage))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
if (newOwningLanguage != null)
msgs = ((InternalEObject)newOwningLanguage).eInverseAdd(this, MelangePackage.LANGUAGE__OPERATORS, Language.class, msgs);
msgs = basicSetOwningLanguage(newOwningLanguage, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, MelangePackage.OPERATOR__OWNING_LANGUAGE, newOwningLanguage, newOwningLanguage));
}
示例10: setOwningLanguage
import fr.inria.diverse.melange.metamodel.melange.Language; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setOwningLanguage(Language newOwningLanguage) {
if (newOwningLanguage != eInternalContainer() || (eContainerFeatureID() != MelangePackage.ASPECT__OWNING_LANGUAGE && newOwningLanguage != null)) {
if (EcoreUtil.isAncestor(this, newOwningLanguage))
throw new IllegalArgumentException("Recursive containment not allowed for " + toString());
NotificationChain msgs = null;
if (eInternalContainer() != null)
msgs = eBasicRemoveFromContainer(msgs);
if (newOwningLanguage != null)
msgs = ((InternalEObject)newOwningLanguage).eInverseAdd(this, MelangePackage.LANGUAGE__SEMANTICS, Language.class, msgs);
msgs = basicSetOwningLanguage(newOwningLanguage, msgs);
if (msgs != null) msgs.dispatch();
}
else if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, MelangePackage.ASPECT__OWNING_LANGUAGE, newOwningLanguage, newOwningLanguage));
}
示例11: eSet
import fr.inria.diverse.melange.metamodel.melange.Language; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eSet(int featureID, Object newValue) {
switch (featureID) {
case MelangePackage.ASPECT__ASPECT_TYPE_REF:
setAspectTypeRef((JvmTypeReference)newValue);
return;
case MelangePackage.ASPECT__ASPECTED_CLASS:
setAspectedClass((EClass)newValue);
return;
case MelangePackage.ASPECT__ECORE_FRAGMENT:
setEcoreFragment((EPackage)newValue);
return;
case MelangePackage.ASPECT__OWNING_LANGUAGE:
setOwningLanguage((Language)newValue);
return;
case MelangePackage.ASPECT__SOURCE:
setSource((Weave)newValue);
return;
}
super.eSet(featureID, newValue);
}
示例12: eUnset
import fr.inria.diverse.melange.metamodel.melange.Language; //导入依赖的package包/类
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void eUnset(int featureID) {
switch (featureID) {
case MelangePackage.ASPECT__ASPECT_TYPE_REF:
setAspectTypeRef((JvmTypeReference)null);
return;
case MelangePackage.ASPECT__ASPECTED_CLASS:
setAspectedClass((EClass)null);
return;
case MelangePackage.ASPECT__ECORE_FRAGMENT:
setEcoreFragment((EPackage)null);
return;
case MelangePackage.ASPECT__OWNING_LANGUAGE:
setOwningLanguage((Language)null);
return;
case MelangePackage.ASPECT__SOURCE:
setSource((Weave)null);
return;
}
super.eUnset(featureID);
}
示例13: executeForSelectedLanguage
import fr.inria.diverse.melange.metamodel.melange.Language; //导入依赖的package包/类
@Override
public Object executeForSelectedLanguage(ExecutionEvent event,
IProject updatedGemocLanguageProject, Language language)
throws ExecutionException {
CreateDSAWizardContextActionDSAK3 action = new CreateDSAWizardContextActionDSAK3(
updatedGemocLanguageProject);
action.createNewDSAProject(MelangeXDSMLProjectHelper.getFirstEcore(language));
if(action.getLastCreatedProject() != null){
waitForAutoBuild();
Set<String> aspects = SequentialTemplate.getAspectClassesList(action.getLastCreatedProject());
updateMelange(event,language,aspects);
}
return null;
}
示例14: executeForSelectedLanguage
import fr.inria.diverse.melange.metamodel.melange.Language; //导入依赖的package包/类
@Override
public Object executeForSelectedLanguage(ExecutionEvent event,
IProject updatedGemocLanguageProject, Language language)
throws ExecutionException {
CreateAnimatorProjectWizardContextAction action = new CreateAnimatorProjectWizardContextAction(
updatedGemocLanguageProject, language);
action.actionToExecute = CreateAnimatorProjectAction.CREATE_NEW_SIRIUS_PROJECT;
action.execute();
return null;
}
示例15: executeForSelectedLanguage
import fr.inria.diverse.melange.metamodel.melange.Language; //导入依赖的package包/类
@Override
public Object executeForSelectedLanguage(ExecutionEvent event,
IProject updatedGemocLanguageProject, Language language)
throws ExecutionException {
CreateEditorProjectWizardContextAction action = new CreateEditorProjectWizardContextAction(updatedGemocLanguageProject);
action.actionToExecute = CreateEditorProjectAction.CREATE_NEW_SIRIUS_PROJECT;
action.execute();
if(action.getSiriusPath() != null){
waitForAutoBuild();
updateMelange(event,language,action.getSiriusPath());
}
return null;
}