File tree Expand file tree Collapse file tree 7 files changed +59
-8
lines changed
src/com/archimatetool/editor/diagram Expand file tree Collapse file tree 7 files changed +59
-8
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,10 @@ command.name.18 = Specializations Manager
84
84
command.name.19 = Open Data Folder
85
85
command.name.20 = Delete from Model
86
86
command.name.21 = Select in Model Tree
87
+ command.name.22 = Bring To Front
88
+ command.name.23 = Bring Forward
89
+ command.name.24 = Send To Back
90
+ command.name.25 = Send Backward
87
91
88
92
command.description = Show Archi Plug-ins
89
93
command.description.0 = Show as Actual Size
@@ -108,6 +112,10 @@ command.description.18 = Show the Specializations Manager
108
112
command.description.19 = Open the Archi data folder
109
113
command.description.20 = Delete selected objects from the model
110
114
command.description.21 = Select current object in the Model Tree
115
+ command.description.22 = Bring object to front
116
+ command.description.23 = Bring object forward
117
+ command.description.24 = Send object to back
118
+ command.description.25 = Send object backward
111
119
112
120
keyword.label = model tree files view filter search folder
113
121
keyword.label.1 = layout grid view palette sketch background
Original file line number Diff line number Diff line change 945
945
id =" com.archimatetool.editor.selectInModelTree"
946
946
name =" %command.name.21" >
947
947
</command >
948
+ <command
949
+ categoryId =" org.eclipse.gef.category.view"
950
+ description =" %command.description.22"
951
+ id =" com.archimatetool.editor.bringToFront"
952
+ name =" %command.name.22" >
953
+ </command >
954
+ <command
955
+ categoryId =" org.eclipse.gef.category.view"
956
+ description =" %command.description.23"
957
+ id =" com.archimatetool.editor.bringForward"
958
+ name =" %command.name.23" >
959
+ </command >
960
+ <command
961
+ categoryId =" org.eclipse.gef.category.view"
962
+ description =" %command.description.24"
963
+ id =" com.archimatetool.editor.sendToBack"
964
+ name =" %command.name.24" >
965
+ </command >
966
+ <command
967
+ categoryId =" org.eclipse.gef.category.view"
968
+ description =" %command.description.25"
969
+ id =" com.archimatetool.editor.sendBackward"
970
+ name =" %command.name.25" >
971
+ </command >
948
972
<category
949
973
description =" Archi Commands"
950
974
id =" com.archimatetool.editor.category"
Original file line number Diff line number Diff line change @@ -164,10 +164,21 @@ protected void buildActions() {
164
164
}
165
165
166
166
// Order Actions
167
- addRetargetAction (new RetargetAction (BringToFrontAction .ID , BringToFrontAction .TEXT ));
168
- addRetargetAction (new RetargetAction (BringForwardAction .ID , BringForwardAction .TEXT ));
169
- addRetargetAction (new RetargetAction (SendToBackAction .ID , SendToBackAction .TEXT ));
170
- addRetargetAction (new RetargetAction (SendBackwardAction .ID , SendBackwardAction .TEXT ));
167
+ retargetAction = new RetargetAction (BringToFrontAction .ID , BringToFrontAction .TEXT );
168
+ retargetAction .setActionDefinitionId (BringToFrontAction .ID ); // key binding
169
+ addRetargetAction (retargetAction );
170
+
171
+ retargetAction = new RetargetAction (BringForwardAction .ID , BringForwardAction .TEXT );
172
+ retargetAction .setActionDefinitionId (BringForwardAction .ID ); // key binding
173
+ addRetargetAction (retargetAction );
174
+
175
+ retargetAction = new RetargetAction (SendToBackAction .ID , SendToBackAction .TEXT );
176
+ retargetAction .setActionDefinitionId (SendToBackAction .ID ); // key binding
177
+ addRetargetAction (retargetAction );
178
+
179
+ retargetAction = new RetargetAction (SendBackwardAction .ID , SendBackwardAction .TEXT );
180
+ retargetAction .setActionDefinitionId (SendBackwardAction .ID ); // key binding
181
+ addRetargetAction (retargetAction );
171
182
172
183
// Connection Routers
173
184
addRetargetAction (new RetargetAction (ConnectionRouterAction .BendPointConnectionRouterAction .ID ,
Original file line number Diff line number Diff line change 29
29
*/
30
30
public class BringForwardAction extends SelectionAction {
31
31
32
- public static final String ID = "BringForwardAction " ; //$NON-NLS-1$
32
+ public static final String ID = "com.archimatetool.editor.bringForward " ; //$NON-NLS-1$
33
33
public static final String TEXT = Messages .BringForwardAction_0 ;
34
34
35
35
public BringForwardAction (IWorkbenchPart part ) {
36
36
super (part );
37
37
setText (TEXT );
38
38
setId (ID );
39
+ // Register for key binding
40
+ setActionDefinitionId (ID );
39
41
40
42
/*
41
43
* Set the selection provider to the viewer and not the global selection provider so that
Original file line number Diff line number Diff line change 26
26
*/
27
27
public class BringToFrontAction extends SelectionAction {
28
28
29
- public static final String ID = "BringToFrontAction " ; //$NON-NLS-1$
29
+ public static final String ID = "com.archimatetool.editor.bringToFront " ; //$NON-NLS-1$
30
30
public static final String TEXT = Messages .BringToFrontAction_0 ;
31
31
32
32
public BringToFrontAction (IWorkbenchPart part ) {
33
33
super (part );
34
34
setText (TEXT );
35
35
setId (ID );
36
+ // Register for key binding
37
+ setActionDefinitionId (ID );
36
38
}
37
39
38
40
@ Override
Original file line number Diff line number Diff line change 29
29
*/
30
30
public class SendBackwardAction extends SelectionAction {
31
31
32
- public static final String ID = "SendBackwardAction " ; //$NON-NLS-1$
32
+ public static final String ID = "com.archimatetool.editor.sendBackward " ; //$NON-NLS-1$
33
33
public static final String TEXT = Messages .SendBackwardAction_0 ;
34
34
35
35
public SendBackwardAction (IWorkbenchPart part ) {
36
36
super (part );
37
37
setText (TEXT );
38
38
setId (ID );
39
+ // Register for key binding
40
+ setActionDefinitionId (ID );
39
41
40
42
/*
41
43
* Set the selection provider to the viewer and not the global selection provider so that
Original file line number Diff line number Diff line change 26
26
*/
27
27
public class SendToBackAction extends SelectionAction {
28
28
29
- public static final String ID = "SendToBackAction " ; //$NON-NLS-1$
29
+ public static final String ID = "com.archimatetool.editor.sendToBack " ; //$NON-NLS-1$
30
30
public static final String TEXT = Messages .SendToBackAction_0 ;
31
31
32
32
public SendToBackAction (IWorkbenchPart part ) {
33
33
super (part );
34
34
setText (TEXT );
35
35
setId (ID );
36
+ // Register for key binding
37
+ setActionDefinitionId (ID );
36
38
}
37
39
38
40
@ Override
You can’t perform that action at this time.
0 commit comments