本文整理汇总了Java中org.eclipse.emf.ecore.plugin.EcorePlugin类的典型用法代码示例。如果您正苦于以下问题:Java EcorePlugin类的具体用法?Java EcorePlugin怎么用?Java EcorePlugin使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
EcorePlugin类属于org.eclipse.emf.ecore.plugin包,在下文中一共展示了EcorePlugin类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.eclipse.emf.ecore.plugin.EcorePlugin; //导入依赖的package包/类
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static PkmntcgoFactory init()
{
try
{
PkmntcgoFactory thePkmntcgoFactory = (PkmntcgoFactory)EPackage.Registry.INSTANCE.getEFactory(PkmntcgoPackage.eNS_URI);
if (thePkmntcgoFactory != null)
{
return thePkmntcgoFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new PkmntcgoFactoryImpl();
}
示例2: init
import org.eclipse.emf.ecore.plugin.EcorePlugin; //导入依赖的package包/类
/**
* Creates the default factory implementation.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static ReferenceModuleFactory init()
{
try
{
ReferenceModuleFactory theReferenceModuleFactory = (ReferenceModuleFactory)EPackage.Registry.INSTANCE.getEFactory(ReferenceModulePackage.eNS_URI);
if (theReferenceModuleFactory != null)
{
return theReferenceModuleFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new ReferenceModuleFactoryImpl();
}
示例3: init
import org.eclipse.emf.ecore.plugin.EcorePlugin; //导入依赖的package包/类
/**
* Creates the default factory implementation.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static SaturnReportFactory init()
{
try
{
SaturnReportFactory theSaturnReportFactory = (SaturnReportFactory)EPackage.Registry.INSTANCE.getEFactory(SaturnReportPackage.eNS_URI);
if (theSaturnReportFactory != null)
{
return theSaturnReportFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new SaturnReportFactoryImpl();
}
示例4: init
import org.eclipse.emf.ecore.plugin.EcorePlugin; //导入依赖的package包/类
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static RecipeFactory init ()
{
try
{
RecipeFactory theRecipeFactory = (RecipeFactory)EPackage.Registry.INSTANCE.getEFactory ( RecipePackage.eNS_URI );
if ( theRecipeFactory != null )
{
return theRecipeFactory;
}
}
catch ( Exception exception )
{
EcorePlugin.INSTANCE.log ( exception );
}
return new RecipeFactoryImpl ();
}
示例5: init
import org.eclipse.emf.ecore.plugin.EcorePlugin; //导入依赖的package包/类
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static CommonFactory init ()
{
try
{
CommonFactory theCommonFactory = (CommonFactory)EPackage.Registry.INSTANCE.getEFactory ( CommonPackage.eNS_URI );
if ( theCommonFactory != null )
{
return theCommonFactory;
}
}
catch ( Exception exception )
{
EcorePlugin.INSTANCE.log ( exception );
}
return new CommonFactoryImpl ();
}
示例6: init
import org.eclipse.emf.ecore.plugin.EcorePlugin; //导入依赖的package包/类
/**
* Creates the default factory implementation.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static SoapIOModuleFactory init()
{
try
{
SoapIOModuleFactory theSoapIOModuleFactory = (SoapIOModuleFactory)EPackage.Registry.INSTANCE.getEFactory(SoapIOModulePackage.eNS_URI);
if (theSoapIOModuleFactory != null)
{
return theSoapIOModuleFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new SoapIOModuleFactoryImpl();
}
示例7: init
import org.eclipse.emf.ecore.plugin.EcorePlugin; //导入依赖的package包/类
/**
* Creates the default factory implementation.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static H2ResourceFactory init()
{
try
{
H2ResourceFactory theH2ResourceFactory = (H2ResourceFactory)EPackage.Registry.INSTANCE.getEFactory(H2ResourcePackage.eNS_URI);
if (theH2ResourceFactory != null)
{
return theH2ResourceFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new H2ResourceFactoryImpl();
}
示例8: init
import org.eclipse.emf.ecore.plugin.EcorePlugin; //导入依赖的package包/类
/**
* Creates the default factory implementation.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static TeradataResourceFactory init()
{
try
{
TeradataResourceFactory theTeradataResourceFactory = (TeradataResourceFactory)EPackage.Registry.INSTANCE.getEFactory(TeradataResourcePackage.eNS_URI);
if (theTeradataResourceFactory != null)
{
return theTeradataResourceFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new TeradataResourceFactoryImpl();
}
示例9: init
import org.eclipse.emf.ecore.plugin.EcorePlugin; //导入依赖的package包/类
/**
* Creates the default factory implementation.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static SybaseResourceFactory init()
{
try
{
SybaseResourceFactory theSybaseResourceFactory = (SybaseResourceFactory)EPackage.Registry.INSTANCE.getEFactory(SybaseResourcePackage.eNS_URI);
if (theSybaseResourceFactory != null)
{
return theSybaseResourceFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new SybaseResourceFactoryImpl();
}
示例10: init
import org.eclipse.emf.ecore.plugin.EcorePlugin; //导入依赖的package包/类
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static BackportFactory init()
{
try
{
BackportFactory theBackportFactory = (BackportFactory)EPackage.Registry.INSTANCE.getEFactory(BackportPackage.eNS_URI);
if (theBackportFactory != null)
{
return theBackportFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new BackportFactoryImpl();
}
示例11: validateQuestion_choicesNeeded
import org.eclipse.emf.ecore.plugin.EcorePlugin; //导入依赖的package包/类
/**
* Validates the choicesNeeded constraint of '<em>Question</em>'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public boolean validateQuestion_choicesNeeded(Question question, DiagnosticChain diagnostics, Map context) {
// TODO implement the constraint
// -> specify the condition that violates the constraint
// -> verify the diagnostic details, including severity, code, and message
// Ensure that you remove @generated or mark it @generated NOT
if (false) {
if (diagnostics != null) {
diagnostics.add
(new BasicDiagnostic
(Diagnostic.ERROR,
DIAGNOSTIC_SOURCE,
0,
EcorePlugin.INSTANCE.getString("_UI_GenericConstraint_diagnostic", new Object[] { "choicesNeeded", getObjectLabel(question, context) }),
new Object[] { question }));
}
return false;
}
return true;
}
示例12: init
import org.eclipse.emf.ecore.plugin.EcorePlugin; //导入依赖的package包/类
/**
* Creates the default factory implementation.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static SaturnFactory init()
{
try
{
SaturnFactory theSaturnFactory = (SaturnFactory)EPackage.Registry.INSTANCE.getEFactory(SaturnPackage.eNS_URI);
if (theSaturnFactory != null)
{
return theSaturnFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new SaturnFactoryImpl();
}
示例13: init
import org.eclipse.emf.ecore.plugin.EcorePlugin; //导入依赖的package包/类
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static RestauranteFactory init()
{
try
{
RestauranteFactory theRestauranteFactory = (RestauranteFactory)EPackage.Registry.INSTANCE.getEFactory(RestaurantePackage.eNS_URI);
if (theRestauranteFactory != null)
{
return theRestauranteFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new RestauranteFactoryImpl();
}
示例14: init
import org.eclipse.emf.ecore.plugin.EcorePlugin; //导入依赖的package包/类
/**
* Creates the default factory implementation.
* <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static XmlValidatorModuleFactory init()
{
try
{
XmlValidatorModuleFactory theXmlValidatorModuleFactory = (XmlValidatorModuleFactory)EPackage.Registry.INSTANCE.getEFactory(XmlValidatorModulePackage.eNS_URI);
if (theXmlValidatorModuleFactory != null)
{
return theXmlValidatorModuleFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new XmlValidatorModuleFactoryImpl();
}
示例15: init
import org.eclipse.emf.ecore.plugin.EcorePlugin; //导入依赖的package包/类
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static MyDslFactory init()
{
try
{
MyDslFactory theMyDslFactory = (MyDslFactory)EPackage.Registry.INSTANCE.getEFactory(MyDslPackage.eNS_URI);
if (theMyDslFactory != null)
{
return theMyDslFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new MyDslFactoryImpl();
}