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


Java Language类代码示例

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

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

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

示例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);
}
 
开发者ID:diverse-project,项目名称:melange,代码行数:23,代码来源:MappingImpl.java

示例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);
}
 
开发者ID:diverse-project,项目名称:melange,代码行数:21,代码来源:MappingImpl.java

示例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);
}
 
开发者ID:diverse-project,项目名称:melange,代码行数:26,代码来源:ModelTypeImpl.java

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

示例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));
}
 
开发者ID:diverse-project,项目名称:melange,代码行数:21,代码来源:MetamodelImpl.java

示例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));
}
 
开发者ID:diverse-project,项目名称:melange,代码行数:21,代码来源:OperatorImpl.java

示例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));
}
 
开发者ID:diverse-project,项目名称:melange,代码行数:21,代码来源:AspectImpl.java

示例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);
}
 
开发者ID:diverse-project,项目名称:melange,代码行数:27,代码来源:AspectImpl.java

示例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);
}
 
开发者ID:diverse-project,项目名称:melange,代码行数:27,代码来源:AspectImpl.java

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

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

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


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