diff options
Diffstat (limited to 'Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner')
5 files changed, 0 insertions, 680 deletions
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/AbstractCftLanguageUiModule.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/AbstractCftLanguageUiModule.java deleted file mode 100644 index ba2f3d51..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/AbstractCftLanguageUiModule.java +++ /dev/null | |||
@@ -1,293 +0,0 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ui; | ||
5 | |||
6 | import com.google.inject.Binder; | ||
7 | import com.google.inject.Provider; | ||
8 | import com.google.inject.name.Names; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ide.contentassist.antlr.CftLanguageParser; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ide.contentassist.antlr.PartialCftLanguageContentAssistParser; | ||
11 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ide.contentassist.antlr.internal.InternalCftLanguageLexer; | ||
12 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.contentassist.CftLanguageProposalProvider; | ||
13 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.labeling.CftLanguageDescriptionLabelProvider; | ||
14 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.labeling.CftLanguageLabelProvider; | ||
15 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.outline.CftLanguageOutlineTreeProvider; | ||
16 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.quickfix.CftLanguageQuickfixProvider; | ||
17 | import hu.bme.mit.inf.dslreasoner.faulttree.components.validation.CftLanguageValidatorConfigurationBlock; | ||
18 | import org.eclipse.compare.IViewerCreator; | ||
19 | import org.eclipse.core.resources.IWorkspaceRoot; | ||
20 | import org.eclipse.core.resources.ResourcesPlugin; | ||
21 | import org.eclipse.jface.viewers.ILabelProvider; | ||
22 | import org.eclipse.ui.plugin.AbstractUIPlugin; | ||
23 | import org.eclipse.xtext.builder.BuilderParticipant; | ||
24 | import org.eclipse.xtext.builder.EclipseOutputConfigurationProvider; | ||
25 | import org.eclipse.xtext.builder.IXtextBuilderParticipant; | ||
26 | import org.eclipse.xtext.builder.builderState.IBuilderState; | ||
27 | import org.eclipse.xtext.builder.clustering.CurrentDescriptions; | ||
28 | import org.eclipse.xtext.builder.impl.PersistentDataAwareDirtyResource; | ||
29 | import org.eclipse.xtext.builder.nature.NatureAddingEditorCallback; | ||
30 | import org.eclipse.xtext.builder.preferences.BuilderPreferenceAccess; | ||
31 | import org.eclipse.xtext.generator.IContextualOutputConfigurationProvider; | ||
32 | import org.eclipse.xtext.ide.LexerIdeBindings; | ||
33 | import org.eclipse.xtext.ide.editor.contentassist.antlr.IContentAssistParser; | ||
34 | import org.eclipse.xtext.ide.editor.contentassist.antlr.internal.Lexer; | ||
35 | import org.eclipse.xtext.ide.editor.partialEditing.IPartialEditingContentAssistParser; | ||
36 | import org.eclipse.xtext.parser.antlr.AntlrTokenDefProvider; | ||
37 | import org.eclipse.xtext.parser.antlr.ITokenDefProvider; | ||
38 | import org.eclipse.xtext.parser.antlr.LexerProvider; | ||
39 | import org.eclipse.xtext.resource.IResourceDescriptions; | ||
40 | import org.eclipse.xtext.resource.containers.IAllContainersState; | ||
41 | import org.eclipse.xtext.resource.impl.ResourceDescriptionsProvider; | ||
42 | import org.eclipse.xtext.service.SingletonBinding; | ||
43 | import org.eclipse.xtext.ui.DefaultUiModule; | ||
44 | import org.eclipse.xtext.ui.UIBindings; | ||
45 | import org.eclipse.xtext.ui.codetemplates.ui.AccessibleCodetemplatesActivator; | ||
46 | import org.eclipse.xtext.ui.codetemplates.ui.partialEditing.IPartialEditingContentAssistContextFactory; | ||
47 | import org.eclipse.xtext.ui.codetemplates.ui.partialEditing.PartialEditingContentAssistContextFactory; | ||
48 | import org.eclipse.xtext.ui.codetemplates.ui.preferences.AdvancedTemplatesPreferencePage; | ||
49 | import org.eclipse.xtext.ui.codetemplates.ui.preferences.TemplatesLanguageConfiguration; | ||
50 | import org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistrar; | ||
51 | import org.eclipse.xtext.ui.codetemplates.ui.registry.LanguageRegistry; | ||
52 | import org.eclipse.xtext.ui.compare.DefaultViewerCreator; | ||
53 | import org.eclipse.xtext.ui.editor.DocumentBasedDirtyResource; | ||
54 | import org.eclipse.xtext.ui.editor.IXtextEditorCallback; | ||
55 | import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; | ||
56 | import org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher; | ||
57 | import org.eclipse.xtext.ui.editor.contentassist.IContentProposalProvider; | ||
58 | import org.eclipse.xtext.ui.editor.contentassist.IProposalConflictHelper; | ||
59 | import org.eclipse.xtext.ui.editor.contentassist.PrefixMatcher; | ||
60 | import org.eclipse.xtext.ui.editor.contentassist.antlr.AntlrProposalConflictHelper; | ||
61 | import org.eclipse.xtext.ui.editor.contentassist.antlr.DelegatingContentAssistContextFactory; | ||
62 | import org.eclipse.xtext.ui.editor.outline.IOutlineTreeProvider; | ||
63 | import org.eclipse.xtext.ui.editor.outline.impl.IOutlineTreeStructureProvider; | ||
64 | import org.eclipse.xtext.ui.editor.preferences.IPreferenceStoreInitializer; | ||
65 | import org.eclipse.xtext.ui.editor.quickfix.IssueResolutionProvider; | ||
66 | import org.eclipse.xtext.ui.editor.templates.XtextTemplatePreferencePage; | ||
67 | import org.eclipse.xtext.ui.refactoring.IDependentElementsCalculator; | ||
68 | import org.eclipse.xtext.ui.refactoring.IReferenceUpdater; | ||
69 | import org.eclipse.xtext.ui.refactoring.IRenameRefactoringProvider; | ||
70 | import org.eclipse.xtext.ui.refactoring.IRenameStrategy; | ||
71 | import org.eclipse.xtext.ui.refactoring.impl.DefaultDependentElementsCalculator; | ||
72 | import org.eclipse.xtext.ui.refactoring.impl.DefaultReferenceUpdater; | ||
73 | import org.eclipse.xtext.ui.refactoring.impl.DefaultRenameRefactoringProvider; | ||
74 | import org.eclipse.xtext.ui.refactoring.impl.DefaultRenameStrategy; | ||
75 | import org.eclipse.xtext.ui.refactoring.ui.DefaultRenameSupport; | ||
76 | import org.eclipse.xtext.ui.refactoring.ui.IRenameSupport; | ||
77 | import org.eclipse.xtext.ui.refactoring.ui.RefactoringPreferences; | ||
78 | import org.eclipse.xtext.ui.resource.ResourceServiceDescriptionLabelProvider; | ||
79 | import org.eclipse.xtext.ui.shared.Access; | ||
80 | import org.eclipse.xtext.ui.validation.AbstractValidatorConfigurationBlock; | ||
81 | |||
82 | /** | ||
83 | * Manual modifications go to {@link CftLanguageUiModule}. | ||
84 | */ | ||
85 | @SuppressWarnings("all") | ||
86 | public abstract class AbstractCftLanguageUiModule extends DefaultUiModule { | ||
87 | |||
88 | public AbstractCftLanguageUiModule(AbstractUIPlugin plugin) { | ||
89 | super(plugin); | ||
90 | } | ||
91 | |||
92 | // contributed by org.eclipse.xtext.xtext.generator.ImplicitFragment | ||
93 | public Provider<? extends IAllContainersState> provideIAllContainersState() { | ||
94 | return Access.getJavaProjectsState(); | ||
95 | } | ||
96 | |||
97 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
98 | public Class<? extends IProposalConflictHelper> bindIProposalConflictHelper() { | ||
99 | return AntlrProposalConflictHelper.class; | ||
100 | } | ||
101 | |||
102 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
103 | public void configureContentAssistLexer(Binder binder) { | ||
104 | binder.bind(Lexer.class) | ||
105 | .annotatedWith(Names.named(LexerIdeBindings.CONTENT_ASSIST)) | ||
106 | .to(InternalCftLanguageLexer.class); | ||
107 | } | ||
108 | |||
109 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
110 | public void configureHighlightingLexer(Binder binder) { | ||
111 | binder.bind(org.eclipse.xtext.parser.antlr.Lexer.class) | ||
112 | .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) | ||
113 | .to(hu.bme.mit.inf.dslreasoner.faulttree.components.parser.antlr.internal.InternalCftLanguageLexer.class); | ||
114 | } | ||
115 | |||
116 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
117 | public void configureHighlightingTokenDefProvider(Binder binder) { | ||
118 | binder.bind(ITokenDefProvider.class) | ||
119 | .annotatedWith(Names.named(LexerIdeBindings.HIGHLIGHTING)) | ||
120 | .to(AntlrTokenDefProvider.class); | ||
121 | } | ||
122 | |||
123 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
124 | public Class<? extends ContentAssistContext.Factory> bindContentAssistContext$Factory() { | ||
125 | return DelegatingContentAssistContextFactory.class; | ||
126 | } | ||
127 | |||
128 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
129 | public Class<? extends IContentAssistParser> bindIContentAssistParser() { | ||
130 | return CftLanguageParser.class; | ||
131 | } | ||
132 | |||
133 | // contributed by org.eclipse.xtext.xtext.generator.parser.antlr.XtextAntlrGeneratorFragment2 | ||
134 | public void configureContentAssistLexerProvider(Binder binder) { | ||
135 | binder.bind(InternalCftLanguageLexer.class).toProvider(LexerProvider.create(InternalCftLanguageLexer.class)); | ||
136 | } | ||
137 | |||
138 | // contributed by org.eclipse.xtext.xtext.generator.validation.ValidatorFragment2 | ||
139 | public Class<? extends AbstractValidatorConfigurationBlock> bindAbstractValidatorConfigurationBlock() { | ||
140 | return CftLanguageValidatorConfigurationBlock.class; | ||
141 | } | ||
142 | |||
143 | // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 | ||
144 | public Class<? extends PrefixMatcher> bindPrefixMatcher() { | ||
145 | return FQNPrefixMatcher.class; | ||
146 | } | ||
147 | |||
148 | // contributed by org.eclipse.xtext.xtext.generator.exporting.QualifiedNamesFragment2 | ||
149 | public Class<? extends IDependentElementsCalculator> bindIDependentElementsCalculator() { | ||
150 | return DefaultDependentElementsCalculator.class; | ||
151 | } | ||
152 | |||
153 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
154 | public void configureIResourceDescriptionsBuilderScope(Binder binder) { | ||
155 | binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.NAMED_BUILDER_SCOPE)).to(CurrentDescriptions.ResourceSetAware.class); | ||
156 | } | ||
157 | |||
158 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
159 | public Class<? extends IXtextEditorCallback> bindIXtextEditorCallback() { | ||
160 | return NatureAddingEditorCallback.class; | ||
161 | } | ||
162 | |||
163 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
164 | public Class<? extends IContextualOutputConfigurationProvider> bindIContextualOutputConfigurationProvider() { | ||
165 | return EclipseOutputConfigurationProvider.class; | ||
166 | } | ||
167 | |||
168 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
169 | public void configureIResourceDescriptionsPersisted(Binder binder) { | ||
170 | binder.bind(IResourceDescriptions.class).annotatedWith(Names.named(ResourceDescriptionsProvider.PERSISTED_DESCRIPTIONS)).to(IBuilderState.class); | ||
171 | } | ||
172 | |||
173 | // contributed by org.eclipse.xtext.xtext.generator.builder.BuilderIntegrationFragment2 | ||
174 | public Class<? extends DocumentBasedDirtyResource> bindDocumentBasedDirtyResource() { | ||
175 | return PersistentDataAwareDirtyResource.class; | ||
176 | } | ||
177 | |||
178 | // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 | ||
179 | public Class<? extends IXtextBuilderParticipant> bindIXtextBuilderParticipant() { | ||
180 | return BuilderParticipant.class; | ||
181 | } | ||
182 | |||
183 | // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 | ||
184 | public IWorkspaceRoot bindIWorkspaceRootToInstance() { | ||
185 | return ResourcesPlugin.getWorkspace().getRoot(); | ||
186 | } | ||
187 | |||
188 | // contributed by org.eclipse.xtext.xtext.generator.generator.GeneratorFragment2 | ||
189 | public void configureBuilderPreferenceStoreInitializer(Binder binder) { | ||
190 | binder.bind(IPreferenceStoreInitializer.class) | ||
191 | .annotatedWith(Names.named("builderPreferenceInitializer")) | ||
192 | .to(BuilderPreferenceAccess.Initializer.class); | ||
193 | } | ||
194 | |||
195 | // contributed by org.eclipse.xtext.xtext.generator.ui.labeling.LabelProviderFragment2 | ||
196 | public Class<? extends ILabelProvider> bindILabelProvider() { | ||
197 | return CftLanguageLabelProvider.class; | ||
198 | } | ||
199 | |||
200 | // contributed by org.eclipse.xtext.xtext.generator.ui.labeling.LabelProviderFragment2 | ||
201 | public void configureResourceUIServiceLabelProvider(Binder binder) { | ||
202 | binder.bind(ILabelProvider.class).annotatedWith(ResourceServiceDescriptionLabelProvider.class).to(CftLanguageDescriptionLabelProvider.class); | ||
203 | } | ||
204 | |||
205 | // contributed by org.eclipse.xtext.xtext.generator.ui.outline.OutlineTreeProviderFragment2 | ||
206 | public Class<? extends IOutlineTreeProvider> bindIOutlineTreeProvider() { | ||
207 | return CftLanguageOutlineTreeProvider.class; | ||
208 | } | ||
209 | |||
210 | // contributed by org.eclipse.xtext.xtext.generator.ui.outline.OutlineTreeProviderFragment2 | ||
211 | public Class<? extends IOutlineTreeStructureProvider> bindIOutlineTreeStructureProvider() { | ||
212 | return CftLanguageOutlineTreeProvider.class; | ||
213 | } | ||
214 | |||
215 | // contributed by org.eclipse.xtext.xtext.generator.ui.quickfix.QuickfixProviderFragment2 | ||
216 | public Class<? extends IssueResolutionProvider> bindIssueResolutionProvider() { | ||
217 | return CftLanguageQuickfixProvider.class; | ||
218 | } | ||
219 | |||
220 | // contributed by org.eclipse.xtext.xtext.generator.ui.contentAssist.ContentAssistFragment2 | ||
221 | public Class<? extends IContentProposalProvider> bindIContentProposalProvider() { | ||
222 | return CftLanguageProposalProvider.class; | ||
223 | } | ||
224 | |||
225 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
226 | public void configureIPreferenceStoreInitializer(Binder binder) { | ||
227 | binder.bind(IPreferenceStoreInitializer.class) | ||
228 | .annotatedWith(Names.named("RefactoringPreferences")) | ||
229 | .to(RefactoringPreferences.Initializer.class); | ||
230 | } | ||
231 | |||
232 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
233 | public Class<? extends IRenameStrategy> bindIRenameStrategy() { | ||
234 | return DefaultRenameStrategy.class; | ||
235 | } | ||
236 | |||
237 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
238 | public Class<? extends IReferenceUpdater> bindIReferenceUpdater() { | ||
239 | return DefaultReferenceUpdater.class; | ||
240 | } | ||
241 | |||
242 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
243 | public Class<? extends IRenameRefactoringProvider> bindIRenameRefactoringProvider() { | ||
244 | return DefaultRenameRefactoringProvider.class; | ||
245 | } | ||
246 | |||
247 | // contributed by org.eclipse.xtext.xtext.generator.ui.refactoring.RefactorElementNameFragment2 | ||
248 | public Class<? extends IRenameSupport.Factory> bindIRenameSupport$Factory() { | ||
249 | return DefaultRenameSupport.Factory.class; | ||
250 | } | ||
251 | |||
252 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
253 | public Provider<? extends TemplatesLanguageConfiguration> provideTemplatesLanguageConfiguration() { | ||
254 | return AccessibleCodetemplatesActivator.getTemplatesLanguageConfigurationProvider(); | ||
255 | } | ||
256 | |||
257 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
258 | public Provider<? extends LanguageRegistry> provideLanguageRegistry() { | ||
259 | return AccessibleCodetemplatesActivator.getLanguageRegistry(); | ||
260 | } | ||
261 | |||
262 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
263 | @SingletonBinding(eager=true) | ||
264 | public Class<? extends LanguageRegistrar> bindLanguageRegistrar() { | ||
265 | return LanguageRegistrar.class; | ||
266 | } | ||
267 | |||
268 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
269 | public Class<? extends XtextTemplatePreferencePage> bindXtextTemplatePreferencePage() { | ||
270 | return AdvancedTemplatesPreferencePage.class; | ||
271 | } | ||
272 | |||
273 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
274 | public Class<? extends IPartialEditingContentAssistParser> bindIPartialEditingContentAssistParser() { | ||
275 | return PartialCftLanguageContentAssistParser.class; | ||
276 | } | ||
277 | |||
278 | // contributed by org.eclipse.xtext.xtext.generator.ui.templates.CodetemplatesGeneratorFragment2 | ||
279 | public Class<? extends IPartialEditingContentAssistContextFactory> bindIPartialEditingContentAssistContextFactory() { | ||
280 | return PartialEditingContentAssistContextFactory.class; | ||
281 | } | ||
282 | |||
283 | // contributed by org.eclipse.xtext.xtext.generator.ui.compare.CompareFragment2 | ||
284 | public Class<? extends IViewerCreator> bindIViewerCreator() { | ||
285 | return DefaultViewerCreator.class; | ||
286 | } | ||
287 | |||
288 | // contributed by org.eclipse.xtext.xtext.generator.ui.compare.CompareFragment2 | ||
289 | public void configureCompareViewerTitle(Binder binder) { | ||
290 | binder.bind(String.class).annotatedWith(Names.named(UIBindings.COMPARE_VIEWER_TITLE)).toInstance("CftLanguage Compare"); | ||
291 | } | ||
292 | |||
293 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/CftLanguageExecutableExtensionFactory.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/CftLanguageExecutableExtensionFactory.java deleted file mode 100644 index cf453a4f..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/CftLanguageExecutableExtensionFactory.java +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ui; | ||
5 | |||
6 | import com.google.inject.Injector; | ||
7 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.internal.ComponentsActivator; | ||
8 | import org.eclipse.core.runtime.Platform; | ||
9 | import org.eclipse.xtext.ui.guice.AbstractGuiceAwareExecutableExtensionFactory; | ||
10 | import org.osgi.framework.Bundle; | ||
11 | |||
12 | /** | ||
13 | * This class was generated. Customizations should only happen in a newly | ||
14 | * introduced subclass. | ||
15 | */ | ||
16 | public class CftLanguageExecutableExtensionFactory extends AbstractGuiceAwareExecutableExtensionFactory { | ||
17 | |||
18 | @Override | ||
19 | protected Bundle getBundle() { | ||
20 | return Platform.getBundle(ComponentsActivator.PLUGIN_ID); | ||
21 | } | ||
22 | |||
23 | @Override | ||
24 | protected Injector getInjector() { | ||
25 | ComponentsActivator activator = ComponentsActivator.getInstance(); | ||
26 | return activator != null ? activator.getInjector(ComponentsActivator.HU_BME_MIT_INF_DSLREASONER_FAULTTREE_COMPONENTS_CFTLANGUAGE) : null; | ||
27 | } | ||
28 | |||
29 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/AbstractCftLanguageProposalProvider.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/AbstractCftLanguageProposalProvider.java deleted file mode 100644 index 7d5c8f8e..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/contentassist/AbstractCftLanguageProposalProvider.java +++ /dev/null | |||
@@ -1,229 +0,0 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ui.contentassist; | ||
5 | |||
6 | import org.eclipse.emf.ecore.EObject; | ||
7 | import org.eclipse.xtext.Assignment; | ||
8 | import org.eclipse.xtext.CrossReference; | ||
9 | import org.eclipse.xtext.RuleCall; | ||
10 | import org.eclipse.xtext.common.ui.contentassist.TerminalsProposalProvider; | ||
11 | import org.eclipse.xtext.ui.editor.contentassist.ContentAssistContext; | ||
12 | import org.eclipse.xtext.ui.editor.contentassist.ICompletionProposalAcceptor; | ||
13 | |||
14 | /** | ||
15 | * Represents a generated, default implementation of superclass {@link TerminalsProposalProvider}. | ||
16 | * Methods are dynamically dispatched on the first parameter, i.e., you can override them | ||
17 | * with a more concrete subtype. | ||
18 | */ | ||
19 | public abstract class AbstractCftLanguageProposalProvider extends TerminalsProposalProvider { | ||
20 | |||
21 | public void completeCftModel_PackageName(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
22 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
23 | } | ||
24 | public void completeCftModel_Imports(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
25 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
26 | } | ||
27 | public void completeCftModel_ComponentDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
28 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
29 | } | ||
30 | public void completeCftModel_TransformationDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
31 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
32 | } | ||
33 | public void completeImportDeclaration_ImportedNamespace(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
34 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
35 | } | ||
36 | public void completeComponentDefinition_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
37 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
38 | } | ||
39 | public void completeComponentDefinition_InputEvents(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
40 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
41 | } | ||
42 | public void completeComponentDefinition_OutputEvents(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
43 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
44 | } | ||
45 | public void completeComponentDefinition_EventDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
46 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
47 | } | ||
48 | public void completeInputEvent_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
49 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
50 | } | ||
51 | public void completeInputEvent_Multiple(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
52 | // subclasses may override | ||
53 | } | ||
54 | public void completeBasicEventDefinition_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
55 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
56 | } | ||
57 | public void completeBasicEventDefinition_Distribution(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
58 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
59 | } | ||
60 | public void completeConstantDistribution_P(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
61 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
62 | } | ||
63 | public void completeExponentialDistribution_Lambda(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
64 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
65 | } | ||
66 | public void completeAndGateDefinition_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
67 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
68 | } | ||
69 | public void completeAndGateDefinition_InputEvents(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
70 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
71 | } | ||
72 | public void completeOrGateDefinition_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
73 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
74 | } | ||
75 | public void completeOrGateDefinition_InputEvents(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
76 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
77 | } | ||
78 | public void completeKOfMGateDefinition_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
79 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
80 | } | ||
81 | public void completeKOfMGateDefinition_K(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
82 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
83 | } | ||
84 | public void completeKOfMGateDefinition_M(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
85 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
86 | } | ||
87 | public void completeKOfMGateDefinition_InputEvents(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
88 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
89 | } | ||
90 | public void completeTransformationDefinition_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
91 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
92 | } | ||
93 | public void completeTransformationDefinition_MappingDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
94 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
95 | } | ||
96 | public void completeMappingDefinition_TopLevel(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
97 | // subclasses may override | ||
98 | } | ||
99 | public void completeMappingDefinition_Pattern(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
100 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
101 | } | ||
102 | public void completeMappingDefinition_Parameters(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
103 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
104 | } | ||
105 | public void completeMappingDefinition_ComponentInstance(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
106 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
107 | } | ||
108 | public void completeMappingDefinition_LookupDefinitions(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
109 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
110 | } | ||
111 | public void completeMappingDefinition_Assignments(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
112 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
113 | } | ||
114 | public void completeMappingParameter_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
115 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
116 | } | ||
117 | public void completeLookupDefinition_Mapping(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
118 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
119 | } | ||
120 | public void completeLookupDefinition_Arguments(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
121 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
122 | } | ||
123 | public void completeLookupDefinition_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
124 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
125 | } | ||
126 | public void completeAssignment_Input(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
127 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
128 | } | ||
129 | public void completeAssignment_Multiple(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
130 | // subclasses may override | ||
131 | } | ||
132 | public void completeAssignment_Output(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
133 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
134 | } | ||
135 | public void completeEventReference_Component(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
136 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
137 | } | ||
138 | public void completeEventReference_Event(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
139 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
140 | } | ||
141 | public void completeComponentInstance_ComponentType(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
142 | lookupCrossReference(((CrossReference)assignment.getTerminal()), context, acceptor); | ||
143 | } | ||
144 | public void completeComponentInstance_Name(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
145 | completeRuleCall(((RuleCall)assignment.getTerminal()), context, acceptor); | ||
146 | } | ||
147 | |||
148 | public void complete_CftModel(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
149 | // subclasses may override | ||
150 | } | ||
151 | public void complete_ImportDeclaration(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
152 | // subclasses may override | ||
153 | } | ||
154 | public void complete_ComponentDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
155 | // subclasses may override | ||
156 | } | ||
157 | public void complete_InputEvent(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
158 | // subclasses may override | ||
159 | } | ||
160 | public void complete_EventDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
161 | // subclasses may override | ||
162 | } | ||
163 | public void complete_BasicEventDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
164 | // subclasses may override | ||
165 | } | ||
166 | public void complete_Distribution(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
167 | // subclasses may override | ||
168 | } | ||
169 | public void complete_ConstantDistribution(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
170 | // subclasses may override | ||
171 | } | ||
172 | public void complete_ExponentialDistribution(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
173 | // subclasses may override | ||
174 | } | ||
175 | public void complete_GateDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
176 | // subclasses may override | ||
177 | } | ||
178 | public void complete_AndGateDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
179 | // subclasses may override | ||
180 | } | ||
181 | public void complete_OrGateDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
182 | // subclasses may override | ||
183 | } | ||
184 | public void complete_KOfMGateDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
185 | // subclasses may override | ||
186 | } | ||
187 | public void complete_TransformationDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
188 | // subclasses may override | ||
189 | } | ||
190 | public void complete_MappingDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
191 | // subclasses may override | ||
192 | } | ||
193 | public void complete_MappingParameter(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
194 | // subclasses may override | ||
195 | } | ||
196 | public void complete_LookupDefinition(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
197 | // subclasses may override | ||
198 | } | ||
199 | public void complete_Variable(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
200 | // subclasses may override | ||
201 | } | ||
202 | public void complete_Assignment(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
203 | // subclasses may override | ||
204 | } | ||
205 | public void complete_EventReference(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
206 | // subclasses may override | ||
207 | } | ||
208 | public void complete_ComponentInstance(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
209 | // subclasses may override | ||
210 | } | ||
211 | public void complete_QualifiedName(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
212 | // subclasses may override | ||
213 | } | ||
214 | public void complete_QualifiedNameWithWildcard(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
215 | // subclasses may override | ||
216 | } | ||
217 | public void complete_ValidId(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
218 | // subclasses may override | ||
219 | } | ||
220 | public void complete_Double(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
221 | // subclasses may override | ||
222 | } | ||
223 | public void complete_OF_INT(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
224 | // subclasses may override | ||
225 | } | ||
226 | public void complete_T_DOUBLE(EObject model, RuleCall ruleCall, ContentAssistContext context, ICompletionProposalAcceptor acceptor) { | ||
227 | // subclasses may override | ||
228 | } | ||
229 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/internal/ComponentsActivator.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/internal/ComponentsActivator.java deleted file mode 100644 index 3b4702dd..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/ui/internal/ComponentsActivator.java +++ /dev/null | |||
@@ -1,94 +0,0 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.ui.internal; | ||
5 | |||
6 | import com.google.common.collect.Maps; | ||
7 | import com.google.inject.Guice; | ||
8 | import com.google.inject.Injector; | ||
9 | import hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguageRuntimeModule; | ||
10 | import hu.bme.mit.inf.dslreasoner.faulttree.components.ui.CftLanguageUiModule; | ||
11 | import java.util.Collections; | ||
12 | import java.util.Map; | ||
13 | import org.apache.log4j.Logger; | ||
14 | import org.eclipse.ui.plugin.AbstractUIPlugin; | ||
15 | import org.eclipse.xtext.ui.shared.SharedStateModule; | ||
16 | import org.eclipse.xtext.util.Modules2; | ||
17 | import org.osgi.framework.BundleContext; | ||
18 | |||
19 | /** | ||
20 | * This class was generated. Customizations should only happen in a newly | ||
21 | * introduced subclass. | ||
22 | */ | ||
23 | public class ComponentsActivator extends AbstractUIPlugin { | ||
24 | |||
25 | public static final String PLUGIN_ID = "hu.bme.mit.inf.dslreasoner.faulttree.components.ui"; | ||
26 | public static final String HU_BME_MIT_INF_DSLREASONER_FAULTTREE_COMPONENTS_CFTLANGUAGE = "hu.bme.mit.inf.dslreasoner.faulttree.components.CftLanguage"; | ||
27 | |||
28 | private static final Logger logger = Logger.getLogger(ComponentsActivator.class); | ||
29 | |||
30 | private static ComponentsActivator INSTANCE; | ||
31 | |||
32 | private Map<String, Injector> injectors = Collections.synchronizedMap(Maps.<String, Injector> newHashMapWithExpectedSize(1)); | ||
33 | |||
34 | @Override | ||
35 | public void start(BundleContext context) throws Exception { | ||
36 | super.start(context); | ||
37 | INSTANCE = this; | ||
38 | } | ||
39 | |||
40 | @Override | ||
41 | public void stop(BundleContext context) throws Exception { | ||
42 | injectors.clear(); | ||
43 | INSTANCE = null; | ||
44 | super.stop(context); | ||
45 | } | ||
46 | |||
47 | public static ComponentsActivator getInstance() { | ||
48 | return INSTANCE; | ||
49 | } | ||
50 | |||
51 | public Injector getInjector(String language) { | ||
52 | synchronized (injectors) { | ||
53 | Injector injector = injectors.get(language); | ||
54 | if (injector == null) { | ||
55 | injectors.put(language, injector = createInjector(language)); | ||
56 | } | ||
57 | return injector; | ||
58 | } | ||
59 | } | ||
60 | |||
61 | protected Injector createInjector(String language) { | ||
62 | try { | ||
63 | com.google.inject.Module runtimeModule = getRuntimeModule(language); | ||
64 | com.google.inject.Module sharedStateModule = getSharedStateModule(); | ||
65 | com.google.inject.Module uiModule = getUiModule(language); | ||
66 | com.google.inject.Module mergedModule = Modules2.mixin(runtimeModule, sharedStateModule, uiModule); | ||
67 | return Guice.createInjector(mergedModule); | ||
68 | } catch (Exception e) { | ||
69 | logger.error("Failed to create injector for " + language); | ||
70 | logger.error(e.getMessage(), e); | ||
71 | throw new RuntimeException("Failed to create injector for " + language, e); | ||
72 | } | ||
73 | } | ||
74 | |||
75 | protected com.google.inject.Module getRuntimeModule(String grammar) { | ||
76 | if (HU_BME_MIT_INF_DSLREASONER_FAULTTREE_COMPONENTS_CFTLANGUAGE.equals(grammar)) { | ||
77 | return new CftLanguageRuntimeModule(); | ||
78 | } | ||
79 | throw new IllegalArgumentException(grammar); | ||
80 | } | ||
81 | |||
82 | protected com.google.inject.Module getUiModule(String grammar) { | ||
83 | if (HU_BME_MIT_INF_DSLREASONER_FAULTTREE_COMPONENTS_CFTLANGUAGE.equals(grammar)) { | ||
84 | return new CftLanguageUiModule(this); | ||
85 | } | ||
86 | throw new IllegalArgumentException(grammar); | ||
87 | } | ||
88 | |||
89 | protected com.google.inject.Module getSharedStateModule() { | ||
90 | return new SharedStateModule(); | ||
91 | } | ||
92 | |||
93 | |||
94 | } | ||
diff --git a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageValidatorConfigurationBlock.java b/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageValidatorConfigurationBlock.java deleted file mode 100644 index 151699a2..00000000 --- a/Stochastic/hu.bme.mit.inf.dslreasoner.faulttree.components.ui/src-gen/hu/bme/mit/inf/dslreasoner/faulttree/components/validation/CftLanguageValidatorConfigurationBlock.java +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | /* | ||
2 | * generated by Xtext 2.16.0 | ||
3 | */ | ||
4 | package hu.bme.mit.inf.dslreasoner.faulttree.components.validation; | ||
5 | |||
6 | import org.eclipse.jface.dialogs.IDialogSettings; | ||
7 | import org.eclipse.swt.widgets.Composite; | ||
8 | import org.eclipse.xtext.ui.validation.AbstractValidatorConfigurationBlock; | ||
9 | |||
10 | @SuppressWarnings("restriction") | ||
11 | public class CftLanguageValidatorConfigurationBlock extends AbstractValidatorConfigurationBlock { | ||
12 | |||
13 | protected static final String SETTINGS_SECTION_NAME = "CftLanguage"; | ||
14 | |||
15 | @Override | ||
16 | protected void fillSettingsPage(Composite composite, int nColumns, int defaultIndent) { | ||
17 | addComboBox(CftLanguageConfigurableIssueCodesProvider.DEPRECATED_MODEL_PART, "Deprecated Model Part", composite, defaultIndent); | ||
18 | } | ||
19 | |||
20 | @Override | ||
21 | public void dispose() { | ||
22 | storeSectionExpansionStates(getDialogSettings()); | ||
23 | super.dispose(); | ||
24 | } | ||
25 | |||
26 | @Override | ||
27 | protected IDialogSettings getDialogSettings() { | ||
28 | IDialogSettings dialogSettings = super.getDialogSettings(); | ||
29 | IDialogSettings section = dialogSettings.getSection(SETTINGS_SECTION_NAME); | ||
30 | if (section == null) { | ||
31 | return dialogSettings.addNewSection(SETTINGS_SECTION_NAME); | ||
32 | } | ||
33 | return section; | ||
34 | } | ||
35 | } | ||