當前位置: 首頁>>代碼示例>>Java>>正文


Java MelangeRegistry.ModelTypeDescriptor方法代碼示例

本文整理匯總了Java中fr.inria.diverse.melange.resource.MelangeRegistry.ModelTypeDescriptor方法的典型用法代碼示例。如果您正苦於以下問題:Java MelangeRegistry.ModelTypeDescriptor方法的具體用法?Java MelangeRegistry.ModelTypeDescriptor怎麽用?Java MelangeRegistry.ModelTypeDescriptor使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在fr.inria.diverse.melange.resource.MelangeRegistry的用法示例。


在下文中一共展示了MelangeRegistry.ModelTypeDescriptor方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: doAdaptersRegistration

import fr.inria.diverse.melange.resource.MelangeRegistry; //導入方法依賴的package包/類
public void doAdaptersRegistration() {
  MelangeRegistry.LanguageDescriptor xSFSM = new MelangeRegistryImpl.LanguageDescriptorImpl(
  	"org.eclipse.gemoc.sample.legacyfsm.xsfsm.XSFSM", "", "http://org.eclipse.gemoc.sample.legacyfsm.xsfsm.xsfsm/fsm/", "org.eclipse.gemoc.sample.legacyfsm.xsfsm.XSFSMMT"
  );
  xSFSM.addAdapter("org.eclipse.gemoc.sample.legacyfsm.fsm.FSMMT", org.eclipse.gemoc.sample.legacyfsm.xsfsm.xsfsm.adapters.fsmmt.XSFSMAdapter.class);
  xSFSM.addAdapter("org.eclipse.gemoc.sample.legacyfsm.xsfsm.XSFSMMT", org.eclipse.gemoc.sample.legacyfsm.xsfsm.xsfsm.adapters.xsfsmmt.XSFSMAdapter.class);
  MelangeRegistry.INSTANCE.getLanguageMap().put(
  	"org.eclipse.gemoc.sample.legacyfsm.xsfsm.XSFSM",
  	xSFSM
  );
  MelangeRegistry.ModelTypeDescriptor xSFSMMT = new MelangeRegistryImpl.ModelTypeDescriptorImpl(
  	"org.eclipse.gemoc.sample.legacyfsm.xsfsm.XSFSMMT", "", "http://org.eclipse.gemoc.sample.legacyfsm.xsfsm.xsfsmmt/"
  );
  xSFSMMT.addSuperType("org.eclipse.gemoc.sample.legacyfsm.fsm.FSMMT");
  MelangeRegistry.INSTANCE.getModelTypeMap().put(
  	"org.eclipse.gemoc.sample.legacyfsm.xsfsm.XSFSMMT",
  	xSFSMMT
  );
}
 
開發者ID:eclipse,項目名稱:gemoc-studio,代碼行數:20,代碼來源:StandaloneSetup.java

示例2: doAdaptersRegistration

import fr.inria.diverse.melange.resource.MelangeRegistry; //導入方法依賴的package包/類
public void doAdaptersRegistration() {
  MelangeRegistry.LanguageDescriptor fSM = new MelangeRegistryImpl.LanguageDescriptorImpl(
  	"org.eclipse.gemoc.sample.legacyfsm.fsm.FSM", "", "http://www.gemoc.org/legacyfsm/fsm", "org.eclipse.gemoc.sample.legacyfsm.fsm.FSMMT"
  );
  MelangeRegistry.INSTANCE.getLanguageMap().put(
  	"org.eclipse.gemoc.sample.legacyfsm.fsm.FSM",
  	fSM
  );
  MelangeRegistry.ModelTypeDescriptor fSMMT = new MelangeRegistryImpl.ModelTypeDescriptorImpl(
  	"org.eclipse.gemoc.sample.legacyfsm.fsm.FSMMT", "", "http://org.eclipse.gemoc.sample.legacyfsm.fsm.fsmmt/"
  );
  MelangeRegistry.INSTANCE.getModelTypeMap().put(
  	"org.eclipse.gemoc.sample.legacyfsm.fsm.FSMMT",
  	fSMMT
  );
}
 
開發者ID:eclipse,項目名稱:gemoc-studio,代碼行數:17,代碼來源:StandaloneSetup.java

示例3: doAdaptersRegistration

import fr.inria.diverse.melange.resource.MelangeRegistry; //導入方法依賴的package包/類
public void doAdaptersRegistration() {
  MelangeRegistry.LanguageDescriptor fsm = new MelangeRegistryImpl.LanguageDescriptorImpl(
  	"simplefsmtest.Fsm", "", "http://fsm/", "simplefsmtest.FsmMT"
  );
  fsm.addAdapter("simplefsmtest.FsmMT", simplefsmtest.fsm.adapters.fsmmt.FsmAdapter.class);
  MelangeRegistry.INSTANCE.getLanguageMap().put(
  	"simplefsmtest.Fsm",
  	fsm
  );
  MelangeRegistry.LanguageDescriptor timedFsm = new MelangeRegistryImpl.LanguageDescriptorImpl(
  	"simplefsmtest.TimedFsm", "", "http://timedfsm/", "simplefsmtest.TimedFsmMT"
  );
  timedFsm.addAdapter("simplefsmtest.FsmMT", simplefsmtest.timedfsm.adapters.fsmmt.TimedFsmAdapter.class);
  timedFsm.addAdapter("simplefsmtest.TimedFsmMT", simplefsmtest.timedfsm.adapters.timedfsmmt.TimedFsmAdapter.class);
  MelangeRegistry.INSTANCE.getLanguageMap().put(
  	"simplefsmtest.TimedFsm",
  	timedFsm
  );
  MelangeRegistry.ModelTypeDescriptor fsmMT = new MelangeRegistryImpl.ModelTypeDescriptorImpl(
  	"simplefsmtest.FsmMT", "", "http://fsmmt/"
  );
  MelangeRegistry.INSTANCE.getModelTypeMap().put(
  	"simplefsmtest.FsmMT",
  	fsmMT
  );
  MelangeRegistry.ModelTypeDescriptor timedFsmMT = new MelangeRegistryImpl.ModelTypeDescriptorImpl(
  	"simplefsmtest.TimedFsmMT", "", "http://timedfsmmt/"
  );
  timedFsmMT.addSuperType("simplefsmtest.FsmMT");
  MelangeRegistry.INSTANCE.getModelTypeMap().put(
  	"simplefsmtest.TimedFsmMT",
  	timedFsmMT
  );
}
 
開發者ID:diverse-project,項目名稱:melange,代碼行數:35,代碼來源:StandaloneSetup.java


注:本文中的fr.inria.diverse.melange.resource.MelangeRegistry.ModelTypeDescriptor方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。