Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /gef/src/org/tigris/gef/graph/presentation/JGraph.java

gef
Discussion topic

Back to topic list

CVS update: /gef/src/org/tigris/gef/graph/presentation/JGraph.java

Reply

Author bobtarling
Full name Bob Tarling
Date 2006-08-26 15:27:35 PDT
Message User: bobtarling
Date: 2006-08-26 15:27:35-0700
Log:
 Remove key binding for reordering and grouping

File Changes:

Directory: /gef/src/org/tigris/​gef/graph/presentati​on/
====================​====================​==============

File [changed]: JGraph.java
Url: http://gef.tigris.or​g/source/browse/gef/​src/org/tigris/gef/g​raph/presentation/JG​raph.java?r1=1.28​&r2=1.29
Delta lines: +0 -18
--------------------
--- JGraph.java 2006-08-26 03:04:08-0700 1.28
+++ JGraph.java 2006-08-26 15:27:32-0700 1.29
@@ -52,7 +52,6 @@
 import javax.swing.ToolTipManager;
 
 import org.tigris.gef.base.CmdZoom;
-import org.tigris.gef.base.​GroupAction;
 import org.tigris.gef.base.​NudgeAction;
 import org.tigris.gef.base.​CmdSelectNext;
 import org.tigris.gef.base.Diagram;
@@ -60,9 +59,7 @@
 import org.tigris.gef.base.Globals;
 import org.tigris.gef.base.Layer;
 import org.tigris.gef.base.​LayerDiagram;
-import org.tigris.gef.base.​ReorderAction;
 import org.tigris.gef.base.​SelectNearAction;
-import org.tigris.gef.base.​UngroupAction;
 import org.tigris.gef.event​.GraphSelectionListe​ner;
 import org.tigris.gef.event​.ModeChangeListener;​
 import org.tigris.gef.graph​.ConnectionConstrain​er;
@@ -237,26 +234,11 @@
     /* Set up some standard keystrokes and the Cmds that they invoke. */
     public void initKeys() {
         int shift = KeyEvent.SHIFT_MASK;
- int ctrl = KeyEvent.CTRL_MASK;
- int ctrlShift = KeyEvent.CTRL_MASK | KeyEvent.SHIFT_MASK;
         int alt = KeyEvent.ALT_MASK;
         int meta = KeyEvent.META_MASK;
 
         bindKey(new CmdSelectNext(true), KeyEvent.VK_TAB, 0);
         bindKey(new CmdSelectNext(false), KeyEvent.VK_TAB, shift);
-
- //bindKey(new CmdDelete(), KeyEvent.VK_DELETE, 0);
- //bindKey(new CmdDispose(), KeyEvent.VK_D, ctrl);
-
- bindKey(new GroupAction(), KeyEvent.VK_G, ctrl);
- bindKey(new UngroupAction(), KeyEvent.VK_U, ctrl);
-
- bindKey(new ReorderAction(Reorde​rAction.SEND_BACKWAR​D), KeyEvent.VK_B, ctrl);
- bindKey(new ReorderAction(Reorde​rAction.BRING_FORWAR​D), KeyEvent.VK_F, ctrl);
- bindKey(new ReorderAction(Reorde​rAction.SEND_TO_BACK​), KeyEvent.VK_B,
- ctrlShift);
- bindKey(new ReorderAction(Reorde​rAction.BRING_TO_FRO​NT), KeyEvent.VK_F,
- ctrlShift);
 
         bindKey(new NudgeAction(NudgeAction.LEFT), KeyEvent.VK_LEFT, 0);
         bindKey(new NudgeAction(NudgeAction.RIGHT), KeyEvent.VK_RIGHT, 0);

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

CVS update: /gef/src/org/tigris/gef/graph/presentation/JGraph.java bobtarling Bob Tarling 2006-08-26 15:27:35 PDT
Messages per page: