org.eclipse.emf.common.notify.Adapter Java Examples

The following examples show how to use org.eclipse.emf.common.notify.Adapter. 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: SemanticSequencerExtensions.java    From xtext-core with Eclipse Public License 2.0 6 votes vote down vote up
public Grammar getSuperGrammar(final Grammar grammar) {
  boolean _isEmpty = grammar.getUsedGrammars().isEmpty();
  if (_isEmpty) {
    return null;
  }
  Adapter _existingAdapter = EcoreUtil.getExistingAdapter(grammar, SemanticSequencerExtensions.SuperGrammar.class);
  SemanticSequencerExtensions.SuperGrammar sg = ((SemanticSequencerExtensions.SuperGrammar) _existingAdapter);
  if ((sg != null)) {
    return sg.grammar;
  }
  final URI uri = IterableExtensions.<Grammar>head(grammar.getUsedGrammars()).eResource().getURI();
  final Resource resource = this.cloneResourceSet(grammar.eResource().getResourceSet()).getResource(uri, true);
  EObject _head = IterableExtensions.<EObject>head(resource.getContents());
  final Grammar result = ((Grammar) _head);
  EList<Adapter> _eAdapters = grammar.eAdapters();
  SemanticSequencerExtensions.SuperGrammar _superGrammar = new SemanticSequencerExtensions.SuperGrammar(result);
  _eAdapters.add(_superGrammar);
  return result;
}
 
Example #2
Source File: RecipeItemProviderAdapterFactory.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This creates an adapter for a {@link org.eclipse.scada.configuration.recipe.Task}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Adapter createTaskAdapter ()
{
    if ( taskItemProvider == null )
    {
        taskItemProvider = new TaskItemProvider ( this );
    }

    return taskItemProvider;
}
 
Example #3
Source File: DetailViewItemProviderAdapterFactory.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This creates an adapter for a {@link org.eclipse.scada.vi.details.model.ScriptVisibility}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Adapter createScriptVisibilityAdapter ()
{
    if ( scriptVisibilityItemProvider == null )
    {
        scriptVisibilityItemProvider = new ScriptVisibilityItemProvider ( this );
    }

    return scriptVisibilityItemProvider;
}
 
Example #4
Source File: ConnectorDefinitionItemProviderAdapterFactory.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
 * This creates an adapter for a {@link org.bonitasoft.studio.connector.model.definition.Output}.
 * <!-- begin-user-doc -->
    * <!-- end-user-doc -->
 * @generated
 */
   @Override
   public Adapter createOutputAdapter() {
	if (outputItemProvider == null) {
		outputItemProvider = new OutputItemProvider(this);
	}

	return outputItemProvider;
}
 
Example #5
Source File: OsgiItemProviderAdapterFactory.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This creates an adapter for a {@link org.eclipse.scada.configuration.world.osgi.DefaultMasterServer}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Adapter createDefaultMasterServerAdapter ()
{
    if ( defaultMasterServerItemProvider == null )
    {
        defaultMasterServerItemProvider = new DefaultMasterServerItemProvider ( this );
    }

    return defaultMasterServerItemProvider;
}
 
Example #6
Source File: TypeModelItemProviderAdapterFactory.java    From dsl-devkit with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This creates an adapter for a {@link com.avaloq.tools.ddk.typesystem.typemodel.Callable}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Adapter createCallableAdapter()
{
	if (callableItemProvider == null)
	{
		callableItemProvider = new CallableItemProvider(this);
	}

	return callableItemProvider;
}
 
Example #7
Source File: FormItemProviderAdapterFactory.java    From bonita-studio with GNU General Public License v2.0 5 votes vote down vote up
/**
    * This creates an adapter for a {@link org.bonitasoft.studio.model.form.DateFormField}.
    * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
    * @generated
    */
@Override
public Adapter createDateFormFieldAdapter() {
       if (dateFormFieldItemProvider == null) {
           dateFormFieldItemProvider = new DateFormFieldItemProvider(this);
       }

       return dateFormFieldItemProvider;
   }
 
Example #8
Source File: ItemItemProviderAdapterFactory.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This creates an adapter for a {@link org.eclipse.scada.configuration.item.CallSuper}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Adapter createCallSuperAdapter ()
{
    if ( callSuperItemProvider == null )
    {
        callSuperItemProvider = new CallSuperItemProvider ( this );
    }

    return callSuperItemProvider;
}
 
Example #9
Source File: JvmMemberDeclarationImpl.java    From xtext-xtend with Eclipse Public License 2.0 5 votes vote down vote up
@Override
public String getDocComment() {
  Adapter _adapter = EcoreUtil.getAdapter(this.getDelegate().eAdapters(), DocumentationAdapter.class);
  final DocumentationAdapter adapter = ((DocumentationAdapter) _adapter);
  String _documentation = null;
  if (adapter!=null) {
    _documentation=adapter.getDocumentation();
  }
  return _documentation;
}
 
Example #10
Source File: ExtensionsItemProviderAdapterFactory.java    From ifml-editor with MIT License 5 votes vote down vote up
/**
 * This creates an adapter for a {@link IFML.Extensions.Position}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Adapter createPositionAdapter() {
	if (positionItemProvider == null) {
		positionItemProvider = new PositionItemProvider(this);
	}

	return positionItemProvider;
}
 
Example #11
Source File: ParserItemProviderAdapterFactory.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This creates an adapter for a {@link org.eclipse.scada.da.server.component.parser.factory.configuration.FileInput}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Adapter createFileInputAdapter ()
{
    if ( fileInputItemProvider == null )
    {
        fileInputItemProvider = new FileInputItemProvider ( this );
    }

    return fileInputItemProvider;
}
 
Example #12
Source File: SexecItemProviderAdapterFactory.java    From statecharts with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This creates an adapter for a {@link org.yakindu.sct.model.sexec.ExecutionSynchronization}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Adapter createExecutionSynchronizationAdapter() {
	if (executionSynchronizationItemProvider == null) {
		executionSynchronizationItemProvider = new ExecutionSynchronizationItemProvider(this);
	}

	return executionSynchronizationItemProvider;
}
 
Example #13
Source File: InfrastructureItemProviderAdapterFactory.java    From neoscada with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * This creates an adapter for a {@link org.eclipse.scada.configuration.infrastructure.ValueArchiveServer}.
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public Adapter createValueArchiveServerAdapter ()
{
    if ( valueArchiveServerItemProvider == null )
    {
        valueArchiveServerItemProvider = new ValueArchiveServerItemProvider ( this );
    }

    return valueArchiveServerItemProvider;
}
 
Example #14
Source File: ConditionModelAdapterFactory.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Adapter caseOperation_Greater_Equals(Operation_Greater_Equals object)
{
  return createOperation_Greater_EqualsAdapter();
}
 
Example #15
Source File: OsgiAdapterFactory.java    From neoscada with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Adapter caseAlarmsEventsExporter ( AlarmsEventsExporter object )
{
    return createAlarmsEventsExporterAdapter ();
}
 
Example #16
Source File: BeeLangTestLanguageAdapterFactory.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public Adapter caseProvidedCapability(ProvidedCapability object)
{
  return createProvidedCapabilityAdapter();
}
 
Example #17
Source File: JdbcAdapterFactory.java    From neoscada with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Adapter caseColumnMapping ( ColumnMapping object )
{
    return createColumnMappingAdapter ();
}
 
Example #18
Source File: DataAdapterFactory.java    From birt with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Adapter caseQuery( Query object )
{
	return createQueryAdapter( );
}
 
Example #19
Source File: ComponentAdapterFactory.java    From birt with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Adapter caseAxis( Axis object )
{
	return createAxisAdapter( );
}
 
Example #20
Source File: FormatterTestLanguageAdapterFactory.java    From dsl-devkit with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Adapter caseLine(Line object)
{
  return createLineAdapter();
}
 
Example #21
Source File: ModelAdapterFactory.java    From elexis-3-core with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Adapter caseIUserConfig(IUserConfig object) {
	return createIUserConfigAdapter();
}
 
Example #22
Source File: ImAdapterFactory.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Adapter caseTypeProvidingElement(TypeProvidingElement object) {
	return createTypeProvidingElementAdapter();
}
 
Example #23
Source File: XtextGrammarTestAdapterFactory.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public Adapter caseAbstractMetamodelDeclaration(AbstractMetamodelDeclaration object)
{
  return createAbstractMetamodelDeclarationAdapter();
}
 
Example #24
Source File: CoreAdapterFactory.java    From ifml-editor with MIT License 4 votes vote down vote up
@Override
public Adapter casePortDefinition(PortDefinition object) {
	return createPortDefinitionAdapter();
}
 
Example #25
Source File: DiAdapterFactory.java    From bonita-studio with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Adapter caseShape(Shape object) {
	return createShapeAdapter();
}
 
Example #26
Source File: PartialSerializationTestLanguageAdapterFactory.java    From xtext-core with Eclipse Public License 2.0 4 votes vote down vote up
@Override
public Adapter defaultCase(EObject object)
{
  return createEObjectAdapter();
}
 
Example #27
Source File: TypesAdapterFactory.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Adapter caseModuleNamespaceVirtualType(ModuleNamespaceVirtualType object) {
	return createModuleNamespaceVirtualTypeAdapter();
}
 
Example #28
Source File: ImAdapterFactory.java    From n4js with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Adapter caseN4SetterDeclaration(N4SetterDeclaration object) {
	return createN4SetterDeclarationAdapter();
}
 
Example #29
Source File: ModelAdapterFactory.java    From elexis-3-core with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Adapter caseICustomDiagnosis(ICustomDiagnosis object) {
	return createICustomDiagnosisAdapter();
}
 
Example #30
Source File: IEC60870AdapterFactory.java    From neoscada with Eclipse Public License 1.0 4 votes vote down vote up
@Override
public Adapter caseDataModuleOptions ( DataModuleOptions object )
{
    return createDataModuleOptionsAdapter ();
}