org.eclipse.emf.ecore.plugin.EcorePlugin Java Examples

The following examples show how to use org.eclipse.emf.ecore.plugin.EcorePlugin. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RegionaccesstestlanguageFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static RegionaccesstestlanguageFactory init()
{
  try
  {
    RegionaccesstestlanguageFactory theRegionaccesstestlanguageFactory = (RegionaccesstestlanguageFactory)EPackage.Registry.INSTANCE.getEFactory(RegionaccesstestlanguagePackage.eNS_URI);
    if (theRegionaccesstestlanguageFactory != null)
    {
      return theRegionaccesstestlanguageFactory;
    }
  }
  catch (Exception exception)
  {
    EcorePlugin.INSTANCE.log(exception);
  }
  return new RegionaccesstestlanguageFactoryImpl();
}
 
Example #2
Source File: MigrationValidator.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Validates the validFeature constraint of '<em>Slot</em>'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @generated NOT
 */
public boolean validateSlot_validFeature(Slot slot, DiagnosticChain diagnostics, Map<Object, Object> context) {
	if (!validate_validFeature(slot)) {
		if (diagnostics != null) {
			diagnostics.add
				(new BasicDiagnostic
				(Diagnostic.ERROR,
					DIAGNOSTIC_SOURCE,
					0,
					EcorePlugin.INSTANCE.getString("_UI_GenericConstraint_diagnostic", new Object[] { //$NON-NLS-1$
						"validFeature", getObjectLabel((EObject) slot, context) }), //$NON-NLS-1$
					new Object[] { slot }));
		}
		return false;
	}
	return true;
}
 
Example #3
Source File: Bug288734TestLanguageFactoryImpl.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static Bug288734TestLanguageFactory init()
{
  try
  {
    Bug288734TestLanguageFactory theBug288734TestLanguageFactory = (Bug288734TestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(Bug288734TestLanguagePackage.eNS_URI);
    if (theBug288734TestLanguageFactory != null)
    {
      return theBug288734TestLanguageFactory;
    }
  }
  catch (Exception exception)
  {
    EcorePlugin.INSTANCE.log(exception);
  }
  return new Bug288734TestLanguageFactoryImpl();
}
 
Example #4
Source File: ComponentFactoryImpl.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static ComponentFactory init( )
{
	try
	{
		ComponentFactory theComponentFactory = (ComponentFactory) EPackage.Registry.INSTANCE.getEFactory( "http://www.birt.eclipse.org/ChartModelComponent" ); //$NON-NLS-1$ 
		if ( theComponentFactory != null )
		{
			return theComponentFactory;
		}
	}
	catch ( Exception exception )
	{
		EcorePlugin.INSTANCE.log( exception );
	}
	return new ComponentFactoryImpl( );
}
 
Example #5
Source File: ContextFinderTestFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static ContextFinderTestFactory init()
{
  try
  {
    ContextFinderTestFactory theContextFinderTestFactory = (ContextFinderTestFactory)EPackage.Registry.INSTANCE.getEFactory(ContextFinderTestPackage.eNS_URI);
    if (theContextFinderTestFactory != null)
    {
      return theContextFinderTestFactory;
    }
  }
  catch (Exception exception)
  {
    EcorePlugin.INSTANCE.log(exception);
  }
  return new ContextFinderTestFactoryImpl();
}
 
Example #6
Source File: PureXbaseFactoryImpl.java    From xtext-extras with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static PureXbaseFactory init()
{
  try
  {
    PureXbaseFactory thePureXbaseFactory = (PureXbaseFactory)EPackage.Registry.INSTANCE.getEFactory(PureXbasePackage.eNS_URI);
    if (thePureXbaseFactory != null)
    {
      return thePureXbaseFactory;
    }
  }
  catch (Exception exception)
  {
    EcorePlugin.INSTANCE.log(exception);
  }
  return new PureXbaseFactoryImpl();
}
 
Example #7
Source File: XbaseFactoryImpl.java    From xtext-extras with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static XbaseFactory init()
{
	try
	{
		XbaseFactory theXbaseFactory = (XbaseFactory)EPackage.Registry.INSTANCE.getEFactory(XbasePackage.eNS_URI);
		if (theXbaseFactory != null)
		{
			return theXbaseFactory;
		}
	}
	catch (Exception exception)
	{
		EcorePlugin.INSTANCE.log(exception);
	}
	return new XbaseFactoryImpl();
}
 
Example #8
Source File: XAnnotationsFactoryImpl.java    From xtext-extras with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static XAnnotationsFactory init()
{
	try
	{
		XAnnotationsFactory theXAnnotationsFactory = (XAnnotationsFactory)EPackage.Registry.INSTANCE.getEFactory(XAnnotationsPackage.eNS_URI);
		if (theXAnnotationsFactory != null)
		{
			return theXAnnotationsFactory;
		}
	}
	catch (Exception exception)
	{
		EcorePlugin.INSTANCE.log(exception);
	}
	return new XAnnotationsFactoryImpl();
}
 
Example #9
Source File: AssignmentsTestLanguageFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static AssignmentsTestLanguageFactory init()
{
  try
  {
    AssignmentsTestLanguageFactory theAssignmentsTestLanguageFactory = (AssignmentsTestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(AssignmentsTestLanguagePackage.eNS_URI);
    if (theAssignmentsTestLanguageFactory != null)
    {
      return theAssignmentsTestLanguageFactory;
    }
  }
  catch (Exception exception)
  {
    EcorePlugin.INSTANCE.log(exception);
  }
  return new AssignmentsTestLanguageFactoryImpl();
}
 
Example #10
Source File: DataFactoryImpl.java    From birt with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static DataFactory init( )
{
	try
	{
		DataFactory theDataFactory = (DataFactory) EPackage.Registry.INSTANCE.getEFactory( "http://www.birt.eclipse.org/ChartModelData" ); //$NON-NLS-1$ 
		if ( theDataFactory != null )
		{
			return theDataFactory;
		}
	}
	catch ( Exception exception )
	{
		EcorePlugin.INSTANCE.log( exception );
	}
	return new DataFactoryImpl( );
}
 
Example #11
Source File: EnumRulesTestLanguageFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static EnumRulesTestLanguageFactory init()
{
  try
  {
    EnumRulesTestLanguageFactory theEnumRulesTestLanguageFactory = (EnumRulesTestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(EnumRulesTestLanguagePackage.eNS_URI);
    if (theEnumRulesTestLanguageFactory != null)
    {
      return theEnumRulesTestLanguageFactory;
    }
  }
  catch (Exception exception)
  {
    EcorePlugin.INSTANCE.log(exception);
  }
  return new EnumRulesTestLanguageFactoryImpl();
}
 
Example #12
Source File: TypesFactoryImpl.java    From xtext-extras with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static TypesFactory init()
{
	try
	{
		TypesFactory theTypesFactory = (TypesFactory)EPackage.Registry.INSTANCE.getEFactory(TypesPackage.eNS_URI);
		if (theTypesFactory != null)
		{
			return theTypesFactory;
		}
	}
	catch (Exception exception)
	{
		EcorePlugin.INSTANCE.log(exception);
	}
	return new TypesFactoryImpl();
}
 
Example #13
Source File: UnicodeFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static UnicodeFactory init()
{
  try
  {
    UnicodeFactory theUnicodeFactory = (UnicodeFactory)EPackage.Registry.INSTANCE.getEFactory(UnicodePackage.eNS_URI);
    if (theUnicodeFactory != null)
    {
      return theUnicodeFactory;
    }
  }
  catch (Exception exception)
  {
    EcorePlugin.INSTANCE.log(exception);
  }
  return new UnicodeFactoryImpl();
}
 
Example #14
Source File: Bug303200TestLanguageFactoryImpl.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static Bug303200TestLanguageFactory init()
{
  try
  {
    Bug303200TestLanguageFactory theBug303200TestLanguageFactory = (Bug303200TestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(Bug303200TestLanguagePackage.eNS_URI);
    if (theBug303200TestLanguageFactory != null)
    {
      return theBug303200TestLanguageFactory;
    }
  }
  catch (Exception exception)
  {
    EcorePlugin.INSTANCE.log(exception);
  }
  return new Bug303200TestLanguageFactoryImpl();
}
 
Example #15
Source File: Bug287988TestFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static Bug287988TestFactory init()
{
  try
  {
    Bug287988TestFactory theBug287988TestFactory = (Bug287988TestFactory)EPackage.Registry.INSTANCE.getEFactory(Bug287988TestPackage.eNS_URI);
    if (theBug287988TestFactory != null)
    {
      return theBug287988TestFactory;
    }
  }
  catch (Exception exception)
  {
    EcorePlugin.INSTANCE.log(exception);
  }
  return new Bug287988TestFactoryImpl();
}
 
Example #16
Source File: BracketmatchingFactoryImpl.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static BracketmatchingFactory init()
{
  try
  {
    BracketmatchingFactory theBracketmatchingFactory = (BracketmatchingFactory)EPackage.Registry.INSTANCE.getEFactory(BracketmatchingPackage.eNS_URI);
    if (theBracketmatchingFactory != null)
    {
      return theBracketmatchingFactory;
    }
  }
  catch (Exception exception)
  {
    EcorePlugin.INSTANCE.log(exception);
  }
  return new BracketmatchingFactoryImpl();
}
 
Example #17
Source File: MigrationValidator.java    From bonita-studio with GNU General Public License v2.0 6 votes vote down vote up
/**
 * Validates the validContainment constraint of '<em>Instance</em>'.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 *
 * @generated NOT
 */
public boolean validateInstance_validContainment(Instance instance, DiagnosticChain diagnostics,
	Map<Object, Object> context) {
	if (!validate_validContainment(instance)) {
		if (diagnostics != null) {
			diagnostics.add
				(new BasicDiagnostic
				(Diagnostic.ERROR,
					DIAGNOSTIC_SOURCE,
					0,
					EcorePlugin.INSTANCE.getString("_UI_GenericConstraint_diagnostic", new Object[] { //$NON-NLS-1$
						"validContainment", getObjectLabel((EObject) instance, context) }), //$NON-NLS-1$
					new Object[] { instance }));
		}
		return false;
	}
	return true;
}
 
Example #18
Source File: RecipeFactoryImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * 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 ();
}
 
Example #19
Source File: TypeModelFactoryImpl.java    From dsl-devkit with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static TypeModelFactory init()
{
	try
	{
		TypeModelFactory theTypeModelFactory = (TypeModelFactory)EPackage.Registry.INSTANCE.getEFactory(TypeModelPackage.eNS_URI);
		if (theTypeModelFactory != null)
		{
			return theTypeModelFactory;
		}
	}
	catch (Exception exception)
	{
		EcorePlugin.INSTANCE.log(exception);
	}
	return new TypeModelFactoryImpl();
}
 
Example #20
Source File: Bug297105TestLanguageFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static Bug297105TestLanguageFactory init()
{
  try
  {
    Bug297105TestLanguageFactory theBug297105TestLanguageFactory = (Bug297105TestLanguageFactory)EPackage.Registry.INSTANCE.getEFactory(Bug297105TestLanguagePackage.eNS_URI);
    if (theBug297105TestLanguageFactory != null)
    {
      return theBug297105TestLanguageFactory;
    }
  }
  catch (Exception exception)
  {
    EcorePlugin.INSTANCE.log(exception);
  }
  return new Bug297105TestLanguageFactoryImpl();
}
 
Example #21
Source File: WorldFactoryImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static WorldFactory init ()
{
    try
    {
        WorldFactory theWorldFactory = (WorldFactory)EPackage.Registry.INSTANCE.getEFactory ( WorldPackage.eNS_URI );
        if ( theWorldFactory != null )
        {
            return theWorldFactory;
        }
    }
    catch ( Exception exception )
    {
        EcorePlugin.INSTANCE.log ( exception );
    }
    return new WorldFactoryImpl ();
}
 
Example #22
Source File: ReferringFactoryImpl.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static ReferringFactory init()
{
  try
  {
    ReferringFactory theReferringFactory = (ReferringFactory)EPackage.Registry.INSTANCE.getEFactory(ReferringPackage.eNS_URI);
    if (theReferringFactory != null)
    {
      return theReferringFactory;
    }
  }
  catch (Exception exception)
  {
    EcorePlugin.INSTANCE.log(exception);
  }
  return new ReferringFactoryImpl();
}
 
Example #23
Source File: FooFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static FooFactory init()
{
  try
  {
    FooFactory theFooFactory = (FooFactory)EPackage.Registry.INSTANCE.getEFactory(FooPackage.eNS_URI);
    if (theFooFactory != null)
    {
      return theFooFactory;
    }
  }
  catch (Exception exception)
  {
    EcorePlugin.INSTANCE.log(exception);
  }
  return new FooFactoryImpl();
}
 
Example #24
Source File: Bug309949TestLanguageFactoryImpl.java    From xtext-eclipse with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * 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();
}
 
Example #25
Source File: DeploymentFactoryImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static DeploymentFactory init ()
{
    try
    {
        DeploymentFactory theDeploymentFactory = (DeploymentFactory)EPackage.Registry.INSTANCE.getEFactory ( DeploymentPackage.eNS_URI );
        if ( theDeploymentFactory != null )
        {
            return theDeploymentFactory;
        }
    }
    catch ( Exception exception )
    {
        EcorePlugin.INSTANCE.log ( exception );
    }
    return new DeploymentFactoryImpl ();
}
 
Example #26
Source File: SecurityFactoryImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * Creates the default factory implementation.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public static SecurityFactory init ()
{
    try
    {
        SecurityFactory theSecurityFactory = (SecurityFactory)EPackage.Registry.INSTANCE.getEFactory ( SecurityPackage.eNS_URI );
        if ( theSecurityFactory != null )
        {
            return theSecurityFactory;
        }
    }
    catch ( Exception exception )
    {
        EcorePlugin.INSTANCE.log ( exception );
    }
    return new SecurityFactoryImpl ();
}
 
Example #27
Source File: KeywordsTestLanguageFactoryImpl.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * 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();
}
 
Example #28
Source File: ProcessedRichStringFactoryImpl.java    From xtext-xtend with Eclipse Public License 2.0 6 votes vote down vote up
/**
 * 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();
}
 
Example #29
Source File: ScriptFactoryImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * 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 ();
}
 
Example #30
Source File: DaveFactoryImpl.java    From neoscada with Eclipse Public License 1.0 6 votes vote down vote up
/**
 * 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 ();
}