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


Java OCLInvocationDelegateFactory類代碼示例

本文整理匯總了Java中org.eclipse.ocl.examples.pivot.delegate.OCLInvocationDelegateFactory的典型用法代碼示例。如果您正苦於以下問題:Java OCLInvocationDelegateFactory類的具體用法?Java OCLInvocationDelegateFactory怎麽用?Java OCLInvocationDelegateFactory使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


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

示例1: validate

import org.eclipse.ocl.examples.pivot.delegate.OCLInvocationDelegateFactory; //導入依賴的package包/類
public void validate(View model) {

		// initialize OCL
		org.eclipse.ocl.examples.pivot.OCL.initialize(null);

		String oclDelegateURI = OCLDelegateDomain.OCL_DELEGATE_URI_PIVOT;
		EOperation.Internal.InvocationDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
		    new OCLInvocationDelegateFactory.Global());
		EStructuralFeature.Internal.SettingDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
		    new OCLSettingDelegateFactory.Global());
		EValidator.ValidationDelegate.Registry.INSTANCE.put(oclDelegateURI,
		    new OCLValidationDelegateFactory.Global());

		OCLinEcoreStandaloneSetup.doSetup();
		// install the OCL standard library
		OCLstdlib.install();
		
		// do diagnostic
		diag = Diagnostician.INSTANCE.validate(model);
		modelname = model.getID();
	}
 
開發者ID:glovas,項目名稱:psd-ui-generator,代碼行數:22,代碼來源:Validator.java

示例2: initializeOCL

import org.eclipse.ocl.examples.pivot.delegate.OCLInvocationDelegateFactory; //導入依賴的package包/類
private static void initializeOCL() {
    // initialize OCL
    // register Pivot globally (resourceSet == null)
    org.eclipse.ocl.examples.pivot.OCL.initialize(null);
    
    String oclDelegateURI = OCLDelegateDomain.OCL_DELEGATE_URI_PIVOT;
    EOperation.Internal.InvocationDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
        new OCLInvocationDelegateFactory.Global());
    EStructuralFeature.Internal.SettingDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
        new OCLSettingDelegateFactory.Global());
    EValidator.ValidationDelegate.Registry.INSTANCE.put(oclDelegateURI,
        new OCLValidationDelegateFactory.Global());
    
    OCLinEcoreStandaloneSetup.doSetup();
    
    // install the OCL Standard library
    //
    // using Eclipse Indigo
    //
    // org.eclipse.ocl.examples.library.oclstdlib.OCLstdlib.install();
    // using Eclipse Juno
    //
    org.eclipse.ocl.examples.pivot.model.OCLstdlib.install();
}
 
開發者ID:mjorod,項目名稱:textram,代碼行數:25,代碼來源:TextRAMTestsStandaloneSetup.java

示例3: initializeOCL

import org.eclipse.ocl.examples.pivot.delegate.OCLInvocationDelegateFactory; //導入依賴的package包/類
/**
 * Initializes OCL Pivot in case this is used by a metamodel.
 */
private static void initializeOCL() {
    // Register Pivot globally (resourceSet == null).
    org.eclipse.ocl.examples.pivot.OCL.initialize(null);
    
    String oclDelegateURI = OCLDelegateDomain.OCL_DELEGATE_URI_PIVOT;
    EOperation.Internal.InvocationDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
        new OCLInvocationDelegateFactory.Global());
    EStructuralFeature.Internal.SettingDelegate.Factory.Registry.INSTANCE.put(oclDelegateURI,
        new OCLSettingDelegateFactory.Global());
    EValidator.ValidationDelegate.Registry.INSTANCE.put(oclDelegateURI,
        new OCLValidationDelegateFactory.Global());
    
    OCLinEcoreStandaloneSetup.doSetup();
    org.eclipse.ocl.examples.pivot.model.OCLstdlib.install();
}
 
開發者ID:mjorod,項目名稱:textram,代碼行數:19,代碼來源:ResourceManager.java


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