<
From version < 14.1 >
edited by chsch
on 2013/11/15 14:04
To version < 15.1 >
edited by chsch
on 2015/02/18 17:03
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -71,9 +71,31 @@
71 71  1*. implement an own {{code language="none"}}IAction{{/code}} that manipulates the current diagram by changing colors, adding or removing elements, hiding and showing single nodes or edges, ... , and register it
72 72  1*. associate it with a diagram part of your choice and test it
73 73  1. Run your action via a menu contribution
74 -1*. open the {{code language="none"}}xml{{/code}} view of {{code language="none"}}de.cau.cs.kieler.klighd.ui{{/code}}'s {{code language="none"}}plugin.xml{{/code}}
75 -1*. find the deactivated entry at the and of the file, copy it to a {{code language="none"}}plugin.xml{{/code}} of your projects and activate it
76 -1*. change the label, enter your action's id (see the action's registration), feel free to put it at a different location, e.g. the context menu
74 +1*. (((
75 +copy the following snippet into a {{code language="none"}}plugin.xml{{/code}} of your projects, replace{{code language="none"}} ##YOUR_PLUGINS_ID##{{/code}} and {{code language="none"}}##YOUR_ACTIONS_ID##{{/code}} by the corresponding strings
76 +
77 +{{code}}
78 + <extension
79 + id="##YOUR_PLUGINS_ID##.internal.commands.handler"
80 + point="org.eclipse.ui.menus">
81 + <menuContribution
82 + allPopups="false"
83 + locationURI="toolbar:de.cau.cs.kieler.layout.toolbar">
84 + <command
85 + commandId="de.cau.cs.kieler.klighd.ui.actionExecution"
86 + label="TestContribution"
87 + style="push">
88 + <parameter
89 + name="de.cau.cs.kieler.klighd.ui.action"
90 + value="##YOUR_ACTIONS_ID##">
91 + </parameter>
92 + </command>
93 + </menuContribution>
94 + </extension>
95 +
96 +{{/code}}
97 +)))
98 +1*. change {{code language="none"}}##YOUR_PLUGINS_ID##{{/code}} part of{{code language="none"}} {{/code}}the label, enter your action's id ({{code language="none"}}##YOUR_ACTIONS_ID##{{/code}}), feel free to put it at a different location, e.g. the context menu
77 77  1*. test it by selecting a diagram node or edge and hitting your menu entry
78 78  
79 79  
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -10751229
1 +10751231
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/10751229/Student Tutorial on KIELER Lightweight Diagrams
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/10751231/Student Tutorial on KIELER Lightweight Diagrams