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


Java DiPackage.eINSTANCE方法代码示例

本文整理汇总了Java中org.eclipse.dd.di.DiPackage.eINSTANCE方法的典型用法代码示例。如果您正苦于以下问题:Java DiPackage.eINSTANCE方法的具体用法?Java DiPackage.eINSTANCE怎么用?Java DiPackage.eINSTANCE使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.dd.di.DiPackage的用法示例。


在下文中一共展示了DiPackage.eINSTANCE方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: init

import org.eclipse.dd.di.DiPackage; //导入方法依赖的package包/类
/**
 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
 * 
 * <p>This method is used to initialize {@link Securebpmn2Package#eINSTANCE} when that field is accessed.
 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @see #eNS_URI
 * @generated
 */
public static Securebpmn2Package init() {
	if (isInited)
		return (Securebpmn2Package) EPackage.Registry.INSTANCE
				.getEPackage(Securebpmn2Package.eNS_URI);

	// Obtain or create and register package
	Securebpmn2PackageImpl theSecurebpmn2Package = (Securebpmn2PackageImpl) (EPackage.Registry.INSTANCE
			.get(eNS_URI) instanceof Securebpmn2PackageImpl ? EPackage.Registry.INSTANCE
			.get(eNS_URI) : new Securebpmn2PackageImpl());

	isInited = true;

	// Obtain or create and register interdependencies
	Bpmn2PackageImpl theBpmn2Package = (Bpmn2PackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(Bpmn2Package.eNS_URI) instanceof Bpmn2PackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(Bpmn2Package.eNS_URI) : Bpmn2Package.eINSTANCE);
	BpmnDiPackageImpl theBpmnDiPackage = (BpmnDiPackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(BpmnDiPackage.eNS_URI) instanceof BpmnDiPackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(BpmnDiPackage.eNS_URI) : BpmnDiPackage.eINSTANCE);
	DiPackageImpl theDiPackage = (DiPackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(DiPackage.eNS_URI) instanceof DiPackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(DiPackage.eNS_URI) : DiPackage.eINSTANCE);
	DcPackageImpl theDcPackage = (DcPackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(DcPackage.eNS_URI) instanceof DcPackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(DcPackage.eNS_URI) : DcPackage.eINSTANCE);

	// Load packages
	theSecurebpmn2Package.loadPackage();
	theBpmn2Package.loadPackage();

	// Create package meta-data objects
	theBpmnDiPackage.createPackageContents();
	theDiPackage.createPackageContents();
	theDcPackage.createPackageContents();

	// Initialize created meta-data
	theBpmnDiPackage.initializePackageContents();
	theDiPackage.initializePackageContents();
	theDcPackage.initializePackageContents();

	// Fix loaded packages
	theSecurebpmn2Package.fixPackageContents();
	theBpmn2Package.fixPackageContents();

	// Mark meta-data to indicate it can't be changed
	theSecurebpmn2Package.freeze();

	// Update the registry and return the package
	EPackage.Registry.INSTANCE.put(Securebpmn2Package.eNS_URI,
			theSecurebpmn2Package);
	return theSecurebpmn2Package;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:63,代码来源:Securebpmn2PackageImpl.java

示例2: init

import org.eclipse.dd.di.DiPackage; //导入方法依赖的package包/类
/**
 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
 * 
 * <p>This method is used to initialize {@link DcPackage#eINSTANCE} when that field is accessed.
 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @see #eNS_URI
 * @see #createPackageContents()
 * @see #initializePackageContents()
 * @generated
 */
public static DcPackage init() {
	if (isInited)
		return (DcPackage) EPackage.Registry.INSTANCE
				.getEPackage(DcPackage.eNS_URI);

	// Obtain or create and register package
	DcPackageImpl theDcPackage = (DcPackageImpl) (EPackage.Registry.INSTANCE
			.get(eNS_URI) instanceof DcPackageImpl ? EPackage.Registry.INSTANCE
			.get(eNS_URI) : new DcPackageImpl());

	isInited = true;

	// Obtain or create and register interdependencies
	Securebpmn2PackageImpl theSecurebpmn2Package = (Securebpmn2PackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(Securebpmn2Package.eNS_URI) instanceof Securebpmn2PackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(Securebpmn2Package.eNS_URI)
			: Securebpmn2Package.eINSTANCE);
	Bpmn2PackageImpl theBpmn2Package = (Bpmn2PackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(Bpmn2Package.eNS_URI) instanceof Bpmn2PackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(Bpmn2Package.eNS_URI) : Bpmn2Package.eINSTANCE);
	BpmnDiPackageImpl theBpmnDiPackage = (BpmnDiPackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(BpmnDiPackage.eNS_URI) instanceof BpmnDiPackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(BpmnDiPackage.eNS_URI) : BpmnDiPackage.eINSTANCE);
	DiPackageImpl theDiPackage = (DiPackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(DiPackage.eNS_URI) instanceof DiPackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(DiPackage.eNS_URI) : DiPackage.eINSTANCE);

	// Load packages
	theSecurebpmn2Package.loadPackage();
	theBpmn2Package.loadPackage();

	// Create package meta-data objects
	theDcPackage.createPackageContents();
	theBpmnDiPackage.createPackageContents();
	theDiPackage.createPackageContents();

	// Initialize created meta-data
	theDcPackage.initializePackageContents();
	theBpmnDiPackage.initializePackageContents();
	theDiPackage.initializePackageContents();

	// Fix loaded packages
	theSecurebpmn2Package.fixPackageContents();
	theBpmn2Package.fixPackageContents();

	// Register package validator
	EValidator.Registry.INSTANCE.put(theDcPackage,
			new EValidator.Descriptor() {
				public EValidator getEValidator() {
					return DcValidator.INSTANCE;
				}
			});

	// Mark meta-data to indicate it can't be changed
	theDcPackage.freeze();

	// Update the registry and return the package
	EPackage.Registry.INSTANCE.put(DcPackage.eNS_URI, theDcPackage);
	return theDcPackage;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:73,代码来源:DcPackageImpl.java

示例3: init

import org.eclipse.dd.di.DiPackage; //导入方法依赖的package包/类
/**
 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
 * 
 * <p>This method is used to initialize {@link BpmnDiPackage#eINSTANCE} when that field is accessed.
 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @see #eNS_URI
 * @see #createPackageContents()
 * @see #initializePackageContents()
 * @generated
 */
public static BpmnDiPackage init() {
	if (isInited)
		return (BpmnDiPackage) EPackage.Registry.INSTANCE
				.getEPackage(BpmnDiPackage.eNS_URI);

	// Obtain or create and register package
	BpmnDiPackageImpl theBpmnDiPackage = (BpmnDiPackageImpl) (EPackage.Registry.INSTANCE
			.get(eNS_URI) instanceof BpmnDiPackageImpl ? EPackage.Registry.INSTANCE
			.get(eNS_URI) : new BpmnDiPackageImpl());

	isInited = true;

	// Obtain or create and register interdependencies
	Securebpmn2PackageImpl theSecurebpmn2Package = (Securebpmn2PackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(Securebpmn2Package.eNS_URI) instanceof Securebpmn2PackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(Securebpmn2Package.eNS_URI)
			: Securebpmn2Package.eINSTANCE);
	Bpmn2PackageImpl theBpmn2Package = (Bpmn2PackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(Bpmn2Package.eNS_URI) instanceof Bpmn2PackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(Bpmn2Package.eNS_URI) : Bpmn2Package.eINSTANCE);
	DiPackageImpl theDiPackage = (DiPackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(DiPackage.eNS_URI) instanceof DiPackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(DiPackage.eNS_URI) : DiPackage.eINSTANCE);
	DcPackageImpl theDcPackage = (DcPackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(DcPackage.eNS_URI) instanceof DcPackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(DcPackage.eNS_URI) : DcPackage.eINSTANCE);

	// Load packages
	theSecurebpmn2Package.loadPackage();
	theBpmn2Package.loadPackage();

	// Create package meta-data objects
	theBpmnDiPackage.createPackageContents();
	theDiPackage.createPackageContents();
	theDcPackage.createPackageContents();

	// Initialize created meta-data
	theBpmnDiPackage.initializePackageContents();
	theDiPackage.initializePackageContents();
	theDcPackage.initializePackageContents();

	// Fix loaded packages
	theSecurebpmn2Package.fixPackageContents();
	theBpmn2Package.fixPackageContents();

	// Mark meta-data to indicate it can't be changed
	theBpmnDiPackage.freeze();

	// Update the registry and return the package
	EPackage.Registry.INSTANCE.put(BpmnDiPackage.eNS_URI, theBpmnDiPackage);
	return theBpmnDiPackage;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:65,代码来源:BpmnDiPackageImpl.java

示例4: init

import org.eclipse.dd.di.DiPackage; //导入方法依赖的package包/类
/**
 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
 * 
 * <p>This method is used to initialize {@link Bpmn2Package#eINSTANCE} when that field is accessed.
 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @see #eNS_URI
 * @generated
 */
public static Bpmn2Package init() {
	if (isInited)
		return (Bpmn2Package) EPackage.Registry.INSTANCE
				.getEPackage(Bpmn2Package.eNS_URI);

	// Obtain or create and register package
	Bpmn2PackageImpl theBpmn2Package = (Bpmn2PackageImpl) (EPackage.Registry.INSTANCE
			.get(eNS_URI) instanceof Bpmn2PackageImpl ? EPackage.Registry.INSTANCE
			.get(eNS_URI) : new Bpmn2PackageImpl());

	isInited = true;

	// Initialize simple dependencies
	XMLTypePackage.eINSTANCE.eClass();

	// Obtain or create and register interdependencies
	Securebpmn2PackageImpl theSecurebpmn2Package = (Securebpmn2PackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(Securebpmn2Package.eNS_URI) instanceof Securebpmn2PackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(Securebpmn2Package.eNS_URI)
			: Securebpmn2Package.eINSTANCE);
	BpmnDiPackageImpl theBpmnDiPackage = (BpmnDiPackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(BpmnDiPackage.eNS_URI) instanceof BpmnDiPackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(BpmnDiPackage.eNS_URI) : BpmnDiPackage.eINSTANCE);
	DiPackageImpl theDiPackage = (DiPackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(DiPackage.eNS_URI) instanceof DiPackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(DiPackage.eNS_URI) : DiPackage.eINSTANCE);
	DcPackageImpl theDcPackage = (DcPackageImpl) (EPackage.Registry.INSTANCE
			.getEPackage(DcPackage.eNS_URI) instanceof DcPackageImpl ? EPackage.Registry.INSTANCE
			.getEPackage(DcPackage.eNS_URI) : DcPackage.eINSTANCE);

	// Load packages
	theBpmn2Package.loadPackage();
	theSecurebpmn2Package.loadPackage();

	// Create package meta-data objects
	theBpmnDiPackage.createPackageContents();
	theDiPackage.createPackageContents();
	theDcPackage.createPackageContents();

	// Initialize created meta-data
	theBpmnDiPackage.initializePackageContents();
	theDiPackage.initializePackageContents();
	theDcPackage.initializePackageContents();

	// Fix loaded packages
	theBpmn2Package.fixPackageContents();
	theSecurebpmn2Package.fixPackageContents();

	// Mark meta-data to indicate it can't be changed
	theBpmn2Package.freeze();

	// Update the registry and return the package
	EPackage.Registry.INSTANCE.put(Bpmn2Package.eNS_URI, theBpmn2Package);
	return theBpmn2Package;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:66,代码来源:Bpmn2PackageImpl.java


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