本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}