當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。