Skip to content
Snippets Groups Projects
Commit 9d5312d8 authored by Nelson Tavares de Sousa's avatar Nelson Tavares de Sousa
Browse files

bug fixes

parent 2cbb7540
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ public class OpenDiagramHandler extends AbstractHandler { ...@@ -53,7 +53,7 @@ public class OpenDiagramHandler extends AbstractHandler {
model = sSelection.getFirstElement(); model = sSelection.getFirstElement();
} }
DiagramViewManager.createView("teetime.configuration.dsl.klighd.ConfigurationDiagram", DiagramViewManager.createView(null,
"Configuration Diagram", model, KlighdSynthesisProperties.create()); "Configuration Diagram", model, KlighdSynthesisProperties.create());
} else if (selection instanceof ITextSelection) { } else if (selection instanceof ITextSelection) {
IXtextDocument xtextDocument = EditorUtils.getActiveXtextEditor().getDocument(); IXtextDocument xtextDocument = EditorUtils.getActiveXtextEditor().getDocument();
......
...@@ -410,9 +410,11 @@ ...@@ -410,9 +410,11 @@
<menuContribution <menuContribution
locationURI= locationURI=
"popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu?after=additions"> "popup:org.eclipse.ui.navigator.ProjectExplorer#PopupMenu?after=additions">
<menu
label="TeeTime"
icon="icons/sign-16x16.png">
<command <command
commandId="teetime.configuration.dsl.klighd.openConfigurationDiagram" commandId="teetime.configuration.dsl.klighd.openConfigurationDiagram"
icon="icons/sign-16x16.png"
label="Show Configuration" label="Show Configuration"
tooltip="Shows the configuration as image"> tooltip="Shows the configuration as image">
<visibleWhen <visibleWhen
...@@ -428,6 +430,8 @@ ...@@ -428,6 +430,8 @@
</visibleWhen> </visibleWhen>
</command> </command>
</menu>
</menuContribution> </menuContribution>
</extension> </extension>
<extension <extension
...@@ -486,7 +490,7 @@ ...@@ -486,7 +490,7 @@
relative="top"> relative="top">
</view> </view>
<view <view
id="org.eclipse.ui.views.ResourceNavigator" id="org.eclipse.ui.navigator.ProjectExplorer"
relationship="stack" relationship="stack"
relative="left"/> relative="left"/>
</perspectiveExtension> </perspectiveExtension>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment