下面列出了怎么用org.eclipse.emf.ecore.plugin.EcorePlugin的API类实例代码及写法,或者点击链接到github查看源代码。
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static Bug309949TestLanguageFactory init()
{
try
{
Bug309949TestLanguageFactory theBug309949TestLanguageFactory = (Bug309949TestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(Bug309949TestLanguagePackage.eNS_URI);
if (theBug309949TestLanguageFactory != null)
{
return theBug309949TestLanguageFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new Bug309949TestLanguageFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static XtextGrammarTestFactory init()
{
try
{
XtextGrammarTestFactory theXtextGrammarTestFactory = (XtextGrammarTestFactory)EPackage.Registry.INSTANCE.getEFactory(XtextGrammarTestPackage.eNS_URI);
if (theXtextGrammarTestFactory != null)
{
return theXtextGrammarTestFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new XtextGrammarTestFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static Bug406914TestFactory init()
{
try
{
Bug406914TestFactory theBug406914TestFactory = (Bug406914TestFactory)EPackage.Registry.INSTANCE.getEFactory(Bug406914TestPackage.eNS_URI);
if (theBug406914TestFactory != null)
{
return theBug406914TestFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new Bug406914TestFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static QuickfixCrossrefFactory init()
{
try
{
QuickfixCrossrefFactory theQuickfixCrossrefFactory = (QuickfixCrossrefFactory)EPackage.Registry.INSTANCE.getEFactory(QuickfixCrossrefPackage.eNS_URI);
if (theQuickfixCrossrefFactory != null)
{
return theQuickfixCrossrefFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new QuickfixCrossrefFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static Bug291022TestLanguageFactory init()
{
try
{
Bug291022TestLanguageFactory theBug291022TestLanguageFactory = (Bug291022TestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(Bug291022TestLanguagePackage.eNS_URI);
if (theBug291022TestLanguageFactory != null)
{
return theBug291022TestLanguageFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new Bug291022TestLanguageFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static RenameTestLanguageFactory init()
{
try
{
RenameTestLanguageFactory theRenameTestLanguageFactory = (RenameTestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(RenameTestLanguagePackage.eNS_URI);
if (theRenameTestLanguageFactory != null)
{
return theRenameTestLanguageFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new RenameTestLanguageFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static QualifiedNameFactory init()
{
try
{
QualifiedNameFactory theQualifiedNameFactory = (QualifiedNameFactory)EPackage.Registry.INSTANCE.getEFactory(QualifiedNamePackage.eNS_URI);
if (theQualifiedNameFactory != null)
{
return theQualifiedNameFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new QualifiedNameFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static Bug360834TestLanguageFactory init()
{
try
{
Bug360834TestLanguageFactory theBug360834TestLanguageFactory = (Bug360834TestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(Bug360834TestLanguagePackage.eNS_URI);
if (theBug360834TestLanguageFactory != null)
{
return theBug360834TestLanguageFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new Bug360834TestLanguageFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ModelFactory init()
{
try
{
ModelFactory theModelFactory = (ModelFactory)EPackage.Registry.INSTANCE.getEFactory(ModelPackage.eNS_URI);
if (theModelFactory != null)
{
return theModelFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new ModelFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ParametersTestLanguageFactory init()
{
try
{
ParametersTestLanguageFactory theParametersTestLanguageFactory = (ParametersTestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(ParametersTestLanguagePackage.eNS_URI);
if (theParametersTestLanguageFactory != null)
{
return theParametersTestLanguageFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new ParametersTestLanguageFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static YangFactory init()
{
try
{
YangFactory theYangFactory = (YangFactory)EPackage.Registry.INSTANCE.getEFactory(YangPackage.eNS_URI);
if (theYangFactory != null)
{
return theYangFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new YangFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static DatatypeRulesTestLanguageFactory init()
{
try
{
DatatypeRulesTestLanguageFactory theDatatypeRulesTestLanguageFactory = (DatatypeRulesTestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(DatatypeRulesTestLanguagePackage.eNS_URI);
if (theDatatypeRulesTestLanguageFactory != null)
{
return theDatatypeRulesTestLanguageFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new DatatypeRulesTestLanguageFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static NoLiteralsFactory init()
{
try
{
NoLiteralsFactory theNoLiteralsFactory = (NoLiteralsFactory)EPackage.Registry.INSTANCE.getEFactory(NoLiteralsPackage.eNS_URI);
if (theNoLiteralsFactory != null)
{
return theNoLiteralsFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new NoLiteralsFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static Bug307519TestLanguageFactory init()
{
try
{
Bug307519TestLanguageFactory theBug307519TestLanguageFactory = (Bug307519TestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(Bug307519TestLanguagePackage.eNS_URI);
if (theBug307519TestLanguageFactory != null)
{
return theBug307519TestLanguageFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new Bug307519TestLanguageFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static IgnoreCaseLinkingTestFactory init()
{
try
{
IgnoreCaseLinkingTestFactory theIgnoreCaseLinkingTestFactory = (IgnoreCaseLinkingTestFactory)EPackage.Registry.INSTANCE.getEFactory(IgnoreCaseLinkingTestPackage.eNS_URI);
if (theIgnoreCaseLinkingTestFactory != null)
{
return theIgnoreCaseLinkingTestFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new IgnoreCaseLinkingTestFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ActionLang2Factory init()
{
try
{
ActionLang2Factory theActionLang2Factory = (ActionLang2Factory)EPackage.Registry.INSTANCE.getEFactory(ActionLang2Package.eNS_URI);
if (theActionLang2Factory != null)
{
return theActionLang2Factory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new ActionLang2FactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ParametersTestLanguageFactory init()
{
try
{
ParametersTestLanguageFactory theParametersTestLanguageFactory = (ParametersTestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(ParametersTestLanguagePackage.eNS_URI);
if (theParametersTestLanguageFactory != null)
{
return theParametersTestLanguageFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new ParametersTestLanguageFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static EnumAndReferenceTestLanguageFactory init()
{
try
{
EnumAndReferenceTestLanguageFactory theEnumAndReferenceTestLanguageFactory = (EnumAndReferenceTestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(EnumAndReferenceTestLanguagePackage.eNS_URI);
if (theEnumAndReferenceTestLanguageFactory != null)
{
return theEnumAndReferenceTestLanguageFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new EnumAndReferenceTestLanguageFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static SimpleExpressionsFactory init()
{
try
{
SimpleExpressionsFactory theSimpleExpressionsFactory = (SimpleExpressionsFactory)EPackage.Registry.INSTANCE.getEFactory(SimpleExpressionsPackage.eNS_URI);
if (theSimpleExpressionsFactory != null)
{
return theSimpleExpressionsFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new SimpleExpressionsFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ItemFactory init ()
{
try
{
ItemFactory theItemFactory = (ItemFactory)EPackage.Registry.INSTANCE.getEFactory ( ItemPackage.eNS_URI );
if ( theItemFactory != null )
{
return theItemFactory;
}
}
catch ( Exception exception )
{
EcorePlugin.INSTANCE.log ( exception );
}
return new ItemFactoryImpl ();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ArduinoFactory init ()
{
try
{
ArduinoFactory theArduinoFactory = (ArduinoFactory)EPackage.Registry.INSTANCE.getEFactory ( ArduinoPackage.eNS_URI );
if ( theArduinoFactory != null )
{
return theArduinoFactory;
}
}
catch ( Exception exception )
{
EcorePlugin.INSTANCE.log ( exception );
}
return new ArduinoFactoryImpl ();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ParserFactory init ()
{
try
{
ParserFactory theParserFactory = (ParserFactory)EPackage.Registry.INSTANCE.getEFactory ( ParserPackage.eNS_URI );
if ( theParserFactory != null )
{
return theParserFactory;
}
}
catch ( Exception exception )
{
EcorePlugin.INSTANCE.log ( exception );
}
return new ParserFactoryImpl ();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static Bug292245TestLanguageFactory init()
{
try
{
Bug292245TestLanguageFactory theBug292245TestLanguageFactory = (Bug292245TestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(Bug292245TestLanguagePackage.eNS_URI);
if (theBug292245TestLanguageFactory != null)
{
return theBug292245TestLanguageFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new Bug292245TestLanguageFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static IEC60870Factory init ()
{
try
{
IEC60870Factory theIEC60870Factory = (IEC60870Factory)EPackage.Registry.INSTANCE.getEFactory ( IEC60870Package.eNS_URI );
if ( theIEC60870Factory != null )
{
return theIEC60870Factory;
}
}
catch ( Exception exception )
{
EcorePlugin.INSTANCE.log ( exception );
}
return new IEC60870FactoryImpl ();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static TestLanguageFactory init()
{
try
{
TestLanguageFactory theTestLanguageFactory = (TestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(TestLanguagePackage.eNS_URI);
if (theTestLanguageFactory != null)
{
return theTestLanguageFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new TestLanguageFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static Bug313089Factory init()
{
try
{
Bug313089Factory theBug313089Factory = (Bug313089Factory)EPackage.Registry.INSTANCE.getEFactory(Bug313089Package.eNS_URI);
if (theBug313089Factory != null)
{
return theBug313089Factory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new Bug313089FactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static DaveFactory init ()
{
try
{
DaveFactory theDaveFactory = (DaveFactory)EPackage.Registry.INSTANCE.getEFactory ( DavePackage.eNS_URI );
if ( theDaveFactory != null )
{
return theDaveFactory;
}
}
catch ( Exception exception )
{
EcorePlugin.INSTANCE.log ( exception );
}
return new DaveFactoryImpl ();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ScriptFactory init ()
{
try
{
ScriptFactory theScriptFactory = (ScriptFactory)EPackage.Registry.INSTANCE.getEFactory ( ScriptPackage.eNS_URI );
if ( theScriptFactory != null )
{
return theScriptFactory;
}
}
catch ( Exception exception )
{
EcorePlugin.INSTANCE.log ( exception );
}
return new ScriptFactoryImpl ();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static ProcessedRichStringFactory init()
{
try
{
ProcessedRichStringFactory theProcessedRichStringFactory = (ProcessedRichStringFactory)EPackage.Registry.INSTANCE.getEFactory(ProcessedRichStringPackage.eNS_URI);
if (theProcessedRichStringFactory != null)
{
return theProcessedRichStringFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new ProcessedRichStringFactoryImpl();
}
/**
* Creates the default factory implementation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public static KeywordsTestLanguageFactory init()
{
try
{
KeywordsTestLanguageFactory theKeywordsTestLanguageFactory = (KeywordsTestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(KeywordsTestLanguagePackage.eNS_URI);
if (theKeywordsTestLanguageFactory != null)
{
return theKeywordsTestLanguageFactory;
}
}
catch (Exception exception)
{
EcorePlugin.INSTANCE.log(exception);
}
return new KeywordsTestLanguageFactoryImpl();
}