當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。