Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2018-02-05 17:40:59 +0000
committerJuergen Haug2018-02-05 19:36:04 +0000
commit13968fee4fe90ead866af91f635bfa067e0cb6f8 (patch)
treef6a7fc7273d9205ad93be95ed879a17c1351536c /plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice
parentbf57ff2b489e79cb585eb3a69e3275031358f94c (diff)
parentf6d683be58e7d0ad5332b5ded57ec4dd33c59f0f (diff)
downloadorg.eclipse.etrice-13968fee4fe90ead866af91f635bfa067e0cb6f8.tar.gz
org.eclipse.etrice-13968fee4fe90ead866af91f635bfa067e0cb6f8.tar.xz
org.eclipse.etrice-13968fee4fe90ead866af91f635bfa067e0cb6f8.zip
Merge branch 'master' into newfsmgen_finalize
with conflicts... Change-Id: I4d06be6132abcdfbf53ea078e65373b42b2541f9
Diffstat (limited to 'plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice')
-rw-r--r--plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/RoomUiModule.java8
-rw-r--r--plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/util/UIExpressionUtil.xtend10
2 files changed, 12 insertions, 6 deletions
diff --git a/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/RoomUiModule.java b/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/RoomUiModule.java
index 2b6da574c..5e2a9fe9a 100644
--- a/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/RoomUiModule.java
+++ b/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/RoomUiModule.java
@@ -13,6 +13,7 @@
package org.eclipse.etrice.core.ui;
import org.eclipse.etrice.core.common.ui.autoedit.BaseAutoEditStrategyProvider;
+import org.eclipse.etrice.core.common.ui.editor.BaseDoubleClickStrategyProvider;
import org.eclipse.etrice.core.common.ui.editor.model.BaseTokenTypeToPartitionMapper;
import org.eclipse.etrice.core.common.ui.hover.IKeywordHoverContentProvider;
import org.eclipse.etrice.core.common.ui.hover.KeywordHoverProvider;
@@ -28,6 +29,7 @@ import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
import org.eclipse.xtext.ide.editor.syntaxcoloring.ISemanticHighlightingCalculator;
import org.eclipse.xtext.ui.editor.autoedit.AbstractEditStrategyProvider;
+import org.eclipse.xtext.ui.editor.doubleClicking.DoubleClickStrategyProvider;
import org.eclipse.xtext.ui.editor.hover.IEObjectHover;
import org.eclipse.xtext.ui.editor.hover.IEObjectHoverProvider;
import org.eclipse.xtext.ui.editor.hyperlinking.IHyperlinkHelper;
@@ -93,10 +95,14 @@ public class RoomUiModule extends org.eclipse.etrice.core.ui.AbstractRoomUiModul
return BaseAutoEditStrategyProvider.class;
}
- public Class<? extends ITokenTypeToPartitionTypeMapper> bindITokenTypeToPartitionTypeMapper(){
+ public Class<? extends ITokenTypeToPartitionTypeMapper> bindITokenTypeToPartitionTypeMapper() {
return BaseTokenTypeToPartitionMapper.class;
}
+ public Class<? extends DoubleClickStrategyProvider> bindDoubleClickStrategyProvider() {
+ return BaseDoubleClickStrategyProvider.class;
+ }
+
// auto format for quick fix
/*
public Class<? extends ITextEditComposer> bindITextEditComposer() {
diff --git a/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/util/UIExpressionUtil.xtend b/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/util/UIExpressionUtil.xtend
index 9c915fc9d..7f7f71ebc 100644
--- a/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/util/UIExpressionUtil.xtend
+++ b/plugins/org.eclipse.etrice.core.room.ui/src/org/eclipse/etrice/core/ui/util/UIExpressionUtil.xtend
@@ -47,7 +47,7 @@ class UIExpressionUtil {
return cache.get(mc)
}
-
+
}
static def IDetailExpressionProvider selectExpressionProvider(EObject it, GenModelAccess genModelAccess) {
@@ -56,9 +56,9 @@ class UIExpressionUtil {
if(transition !== null) {
val ac = getContainerOfType(it, ActorClass)
if(ac !== null) {
- val commonData = FsmGenExtensions.getLinkFor(genModelAccess.get(ac), transition)?.commonData
- if(commonData instanceof MessageData)
- exprProvider.transitionEventData = commonData
+ val commonData = FsmGenExtensions.getLinkFor(genModelAccess.get(ac), transition)?.commonData
+ if(commonData instanceof MessageData)
+ exprProvider.transitionEventData = commonData
}
}
@@ -72,7 +72,7 @@ class UIExpressionUtil {
static def ExpressionFeature findAtOffset(ILeafNode leafNode, int offset) {
// work in progress - show eObject for detail code
- val exprProvider = UIExpressionUtil.selectExpressionProvider(leafNode.semanticElement)
+ val exprProvider = selectExpressionProvider(leafNode.semanticElement)
// TODO explicit support for hover info in DetailExpressionAssistParser
val text = leafNode.text

Back to the top