Revision 1757 trunk/org.gvsig.app.document.layout2.app/org.gvsig.app.document.layout2.app.mainplugin/src/main/java/org/gvsig/app/project/documents/layout/contextmenu/gui/CutLayoutMenuEntry.java
CutLayoutMenuEntry.java | ||
---|---|---|
34 | 34 |
*/ |
35 | 35 |
public class CutLayoutMenuEntry extends AbstractLayoutContextMenuAction { |
36 | 36 |
|
37 |
@Override |
|
37 | 38 |
public String getGroup() { |
38 | 39 |
return "copypaste"; |
39 | 40 |
} |
40 | 41 |
|
42 |
@Override |
|
41 | 43 |
public int getGroupOrder() { |
42 | 44 |
return 4; |
43 | 45 |
} |
44 | 46 |
|
47 |
@Override |
|
45 | 48 |
public int getOrder() { |
46 |
return 3;
|
|
49 |
return 200;
|
|
47 | 50 |
} |
48 | 51 |
|
52 |
@Override |
|
49 | 53 |
public String getText() { |
50 | 54 |
return PluginServices.getText(this, "cut"); |
51 | 55 |
} |
52 | 56 |
|
57 |
@Override |
|
53 | 58 |
public boolean isEnabled(LayoutContext layoutContext, |
54 | 59 |
IFFrame[] selectedFrames) { |
55 | 60 |
return true; |
56 | 61 |
} |
57 | 62 |
|
63 |
@Override |
|
58 | 64 |
public boolean isVisible(LayoutContext layoutContext, |
59 | 65 |
IFFrame[] selectedFrames) { |
60 | 66 |
if (selectedFrames.length == 1 |
... | ... | |
64 | 70 |
return false; |
65 | 71 |
} |
66 | 72 |
|
73 |
@Override |
|
67 | 74 |
public void execute(LayoutContext layoutContext, IFFrame[] selectedFrames) { |
68 | 75 |
try { |
69 | 76 |
LayoutKeyEvent.cut(getLayout()); |
Also available in: Unified diff