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


Java EcorePlugin类代码示例

本文整理汇总了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();
}
 
开发者ID:rehne93,项目名称:pokemon-tcgo-deck-generator,代码行数:23,代码来源:PkmntcgoFactoryImpl.java

示例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();
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:22,代码来源:ReferenceModuleFactoryImpl.java

示例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();
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:22,代码来源:SaturnReportFactoryImpl.java

示例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 ();
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:23,代码来源:RecipeFactoryImpl.java

示例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 ();
}
 
开发者ID:eclipse,项目名称:neoscada,代码行数:23,代码来源:CommonFactoryImpl.java

示例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();
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:22,代码来源:SoapIOModuleFactoryImpl.java

示例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();
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:22,代码来源:H2ResourceFactoryImpl.java

示例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();
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:22,代码来源:TeradataResourceFactoryImpl.java

示例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();
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:22,代码来源:SybaseResourceFactoryImpl.java

示例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();
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:23,代码来源:BackportFactoryImpl.java

示例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;
}
 
开发者ID:TodorovicNikola,项目名称:SurveyDSL,代码行数:26,代码来源:QueryITValidator.java

示例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();
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:22,代码来源:SaturnFactoryImpl.java

示例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();
}
 
开发者ID:vicegd,项目名称:org.xtext.dsl.restaurante,代码行数:23,代码来源:RestauranteFactoryImpl.java

示例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();
}
 
开发者ID:Morgan-Stanley,项目名称:Saturn,代码行数:22,代码来源:XmlValidatorModuleFactoryImpl.java

示例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();
}
 
开发者ID:fatalerrortan,项目名称:Xtext_Xtend_HTML_Generator,代码行数:23,代码来源:MyDslFactoryImpl.java


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