当前位置: 首页>>代码示例>>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;未经允许,请勿转载。