Java Code Examples for org.eclipse.emf.common.notify.Notifier#eAdapters()
The following examples show how to use
org.eclipse.emf.common.notify.Notifier#eAdapters() .
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: FlattenedGrammarAccess.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
public static FlattenedGrammarAccess removeFromEmfObject(Notifier emfObject) { List<Adapter> adapters = emfObject.eAdapters(); for (int i = 0; i < adapters.size(); i++) { Adapter adapter = adapters.get(i); if (adapter instanceof FlattenedGrammarAccessAdapter) return ((FlattenedGrammarAccessAdapter) emfObject.eAdapters().remove(i)).get(); } return null; }
Example 2
Source File: ProjectConfigAdapter.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
public static ProjectConfigAdapter findInEmfObject(Notifier emfObject) { for (Adapter adapter : emfObject.eAdapters()) { if (adapter instanceof ProjectConfigAdapterAdapter) { return ((ProjectConfigAdapterAdapter) adapter).get(); } } return null; }
Example 3
Source File: ProjectConfigAdapter.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
public static ProjectConfigAdapter removeFromEmfObject(Notifier emfObject) { List<Adapter> adapters = emfObject.eAdapters(); for (int i = 0, max = adapters.size(); i < max; i++) { Adapter adapter = adapters.get(i); if (adapter instanceof ProjectConfigAdapterAdapter) { emfObject.eAdapters().remove(i); return ((ProjectConfigAdapterAdapter) adapter).get(); } } return null; }
Example 4
Source File: ProjectDescription.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
public static ProjectDescription removeFromEmfObject(Notifier emfObject) { List<Adapter> adapters = emfObject.eAdapters(); for (int i = 0; i < adapters.size(); i++) { Adapter adapter = adapters.get(i); if (adapter instanceof ProjectDescriptionAdapter) return ((ProjectDescriptionAdapter) emfObject.eAdapters().remove(i)).get(); } return null; }
Example 5
Source File: CombinedGrammarMarker.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
public static CombinedGrammarMarker findInEmfObject(Notifier emfObject) { for (Adapter adapter : emfObject.eAdapters()) { if (adapter instanceof CombinedGrammarMarker.CombinedGrammarMarkerAdapter) { return ((CombinedGrammarMarker.CombinedGrammarMarkerAdapter) adapter).get(); } } return null; }
Example 6
Source File: CombinedGrammarMarker.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
public static CombinedGrammarMarker removeFromEmfObject(Notifier emfObject) { List<Adapter> adapters = emfObject.eAdapters(); for (int i = 0, max = adapters.size(); i < max; i++) { Adapter adapter = adapters.get(i); if (adapter instanceof CombinedGrammarMarker.CombinedGrammarMarkerAdapter) { emfObject.eAdapters().remove(i); return ((CombinedGrammarMarker.CombinedGrammarMarkerAdapter) adapter).get(); } } return null; }
Example 7
Source File: ChunkedResourceDescriptions.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
public static ChunkedResourceDescriptions findInEmfObject(Notifier emfObject) { for (Adapter adapter : emfObject.eAdapters()) { if (adapter instanceof ChunkedResourceDescriptionsAdapter) return ((ChunkedResourceDescriptionsAdapter) adapter).get(); } return null; }
Example 8
Source File: PreferenceValuesByLanguage.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
public static PreferenceValuesByLanguage removeFromEmfObject(Notifier emfObject) { List<Adapter> adapters = emfObject.eAdapters(); for (int i = 0; i < adapters.size(); i++) { Adapter adapter = adapters.get(i); if (adapter instanceof PreferenceValuesByLanguageAdapter) return ((PreferenceValuesByLanguageAdapter) emfObject.eAdapters().remove(i)).get(); } return null; }
Example 9
Source File: OriginalGrammar.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
public static OriginalGrammar findInEmfObject(Notifier emfObject) { for (Adapter adapter : emfObject.eAdapters()) { if (adapter instanceof OriginalGrammar.OriginalGrammarAdapter) { return ((OriginalGrammar.OriginalGrammarAdapter) adapter).get(); } } return null; }
Example 10
Source File: GModelIdAdpater.java From graphical-lsp with Eclipse Public License 2.0 | 5 votes |
public static GModelIdAdpater getGModelIdAdapter(Notifier notifier) { List<Adapter> adapters = notifier.eAdapters(); for (int i = 0, size = adapters.size(); i < size; ++i) { Object adapter = adapters.get(i); if (adapter instanceof GModelIdAdpater) { return (GModelIdAdpater) adapter; } } return null; }
Example 11
Source File: FlattenedGrammarAccess.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
public static FlattenedGrammarAccess findInEmfObject(Notifier emfObject) { for (Adapter adapter : emfObject.eAdapters()) { if (adapter instanceof FlattenedGrammarAccessAdapter) return ((FlattenedGrammarAccessAdapter) adapter).get(); } return null; }
Example 12
Source File: OriginalElement.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
public static OriginalElement removeFromEmfObject(Notifier emfObject) { List<Adapter> adapters = emfObject.eAdapters(); for (int i = 0, max = adapters.size(); i < max; i++) { Adapter adapter = adapters.get(i); if (adapter instanceof OriginalElement.OriginalElementAdapter) { emfObject.eAdapters().remove(i); return ((OriginalElement.OriginalElementAdapter) adapter).get(); } } return null; }
Example 13
Source File: OriginalElement.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
public static OriginalElement findInEmfObject(Notifier emfObject) { for (Adapter adapter : emfObject.eAdapters()) { if (adapter instanceof OriginalElement.OriginalElementAdapter) { return ((OriginalElement.OriginalElementAdapter) adapter).get(); } } return null; }
Example 14
Source File: RuleWithParameterValues.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
public static RuleWithParameterValues removeFromEmfObject(Notifier emfObject) { List<Adapter> adapters = emfObject.eAdapters(); for (int i = 0, max = adapters.size(); i < max; i++) { Adapter adapter = adapters.get(i); if (adapter instanceof RuleWithParameterValues.RuleWithParameterValuesAdapter) { emfObject.eAdapters().remove(i); return ((RuleWithParameterValues.RuleWithParameterValuesAdapter) adapter).get(); } } return null; }
Example 15
Source File: RuleWithParameterValues.java From xtext-core with Eclipse Public License 2.0 | 5 votes |
public static RuleWithParameterValues findInEmfObject(Notifier emfObject) { for (Adapter adapter : emfObject.eAdapters()) { if (adapter instanceof RuleWithParameterValues.RuleWithParameterValuesAdapter) { return ((RuleWithParameterValues.RuleWithParameterValuesAdapter) adapter).get(); } } return null; }
Example 16
Source File: ClassFileCache.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
public static ClassFileCache removeFromEmfObject(Notifier emfObject) { List<Adapter> adapters = emfObject.eAdapters(); for (int i = 0, max = adapters.size(); i < max; i++) { Adapter adapter = adapters.get(i); if (adapter instanceof ClassFileCache.ClassFileCacheAdapter) { emfObject.eAdapters().remove(i); return ((ClassFileCache.ClassFileCacheAdapter) adapter).get(); } } return null; }
Example 17
Source File: JavaConfig.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
public static JavaConfig removeFromEmfObject(Notifier emfObject) { List<Adapter> adapters = emfObject.eAdapters(); for (int i = 0, max = adapters.size(); i < max; i++) { Adapter adapter = adapters.get(i); if (adapter instanceof JavaConfig.JavaConfigAdapter) { emfObject.eAdapters().remove(i); return ((JavaConfig.JavaConfigAdapter) adapter).get(); } } return null; }
Example 18
Source File: GeneratorConfigProvider.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
public static GeneratorConfigAdapter removeFromEmfObject(Notifier emfObject) { List<Adapter> adapters = emfObject.eAdapters(); for (int i = 0, max = adapters.size(); i < max; i++) { Adapter adapter = adapters.get(i); if (adapter instanceof GeneratorConfigAdapterAdapter) { emfObject.eAdapters().remove(i); return ((GeneratorConfigAdapterAdapter) adapter).get(); } } return null; }
Example 19
Source File: GeneratorConfigProvider.java From xtext-extras with Eclipse Public License 2.0 | 5 votes |
public static GeneratorConfigAdapter findInEmfObject(Notifier emfObject) { for (Adapter adapter : emfObject.eAdapters()) { if (adapter instanceof GeneratorConfigAdapterAdapter) { return ((GeneratorConfigAdapterAdapter) adapter).get(); } } return null; }
Example 20
Source File: PreferenceValuesByLanguage.java From xtext-core with Eclipse Public License 2.0 | 4 votes |
public static PreferenceValuesByLanguage findInEmfObject(Notifier emfObject) { for (Adapter adapter : emfObject.eAdapters()) if (adapter instanceof PreferenceValuesByLanguageAdapter) return ((PreferenceValuesByLanguageAdapter) adapter).get(); return null; }