aboutsummaryrefslogtreecommitdiffstats
path: root/rba.tool.editor.ui/src/rba/tool/editor/ui/RBAModelUiModule.xtend
blob: 5458f5d43f20d326a8405982e68e7ef00b10d9d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*
 * generated by Xtext 2.12.0
 */
package rba.tool.editor.ui

import org.eclipse.xtend.lib.annotations.FinalFieldsConstructor
import org.eclipse.xtext.ui.editor.IURIEditorOpener
import org.eclipse.xtext.ui.editor.contentassist.FQNPrefixMatcher.LastSegmentFinder
import org.eclipse.xtext.ui.editor.syntaxcoloring.AbstractAntlrTokenToAttributeIdMapper
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightingConfiguration
import org.eclipse.xtext.ui.editor.validation.MarkerCreator
import org.eclipse.xtext.ui.validation.DefaultResourceUIValidatorExtension
import rba.tool.editor.resource.IRBAModelResourceLoader
import rba.tool.editor.ui.builder.RBAModelBuilderParticipant
import rba.tool.editor.ui.builder.resourceloader.RBAModelResourceLoader
import rba.tool.editor.ui.contentassist.RBAModelExpressionScopeCreator
import rba.tool.editor.ui.contentassist.RBAModelLastSegmentFinder
import rba.tool.editor.ui.editor.model.edit.refactoring.RBAModelRenameRefactoringController
import rba.tool.editor.ui.editor.model.edit.refactoring.RBAModelSyncUtil
import rba.tool.editor.ui.editor.templates.RBAModelTemplateRegistry
import rba.tool.editor.ui.editor.templates.RBAModelTemplateStore
import rba.tool.editor.ui.editor.templates.TemplateRegistry
import rba.tool.editor.ui.marker.RBAModelMarkerCreator
import rba.tool.editor.ui.marker.RBAModelResourceUIValidatorExtension
import rba.tool.editor.ui.opener.RBAModelURIEditorOpener
import rba.tool.editor.ui.resource.RBADocumentResourceSetProvider
import rba.tool.editor.ui.resource.RBAModelResourceSetProvider
import rba.tool.editor.ui.syntaxcoloring.RBAModelAntlrTokenToAttributeIdMapper
import rba.tool.editor.ui.syntaxcoloring.RBAModelHighlightingConfiguration
import rba.tool.editor.ui.wizard.ExtendRBAModelProjectCreator

/**
 * Use this class to register components to be used within the Eclipse IDE.
 */
@FinalFieldsConstructor
class RBAModelUiModule extends AbstractRBAModelUiModule {

	def public Class<? extends IHighlightingConfiguration> bindILexicalHighlightingConfiguration() {
		return RBAModelHighlightingConfiguration;
	}

	def Class<? extends AbstractAntlrTokenToAttributeIdMapper> bindAbstractAntlrTokenToAttributeIdMapper() {
		return RBAModelAntlrTokenToAttributeIdMapper;
	}

	def public Class<? extends RBAModelRenameRefactoringController> bindRenameRefactoringController() {
		return RBAModelRenameRefactoringController;
	}

	override bindIProjectCreator() {
		return ExtendRBAModelProjectCreator;
	}

	override bindIXtextBuilderParticipant() {
		return RBAModelBuilderParticipant;
	}

	override bindIResourceSetProvider() {
		return RBADocumentResourceSetProvider;
	}

	def public Class<? extends RBAModelResourceSetProvider> bindRBAModelResourceSetProvider() {
		return RBAModelResourceSetProvider;
	}

	def public Class<? extends RBAModelSyncUtil> bindRBAModelSyncUtil() {
		return RBAModelSyncUtil;
	}

	def public Class<? extends LastSegmentFinder> bindILastSegmentFinder() {
		return RBAModelLastSegmentFinder;
	}

	def public Class<? extends RBAModelExpressionScopeCreator> bindRBAModelExpressionScopeCreator() {
		return RBAModelExpressionScopeCreator;
	}

	def public Class<? extends TemplateRegistry> bindTemplateRegistry() {
		return RBAModelTemplateRegistry;
	}

	override bindTemplateStore() {
		return RBAModelTemplateStore;
	}

	def public Class<? extends IRBAModelResourceLoader> bindIRBAModelResourceLoader() {
		return RBAModelResourceLoader;
	}

	def public Class<? extends DefaultResourceUIValidatorExtension> bindDefaultResourceUIValidatorExtension() {
		return RBAModelResourceUIValidatorExtension;
	}

	def public Class<? extends MarkerCreator> bindMarkerCreator() {
		return RBAModelMarkerCreator
	}

	def public Class<? extends IURIEditorOpener> bindIURIEditorOpener() {
		return RBAModelURIEditorOpener
	}
}