Commit bf2dec12 authored by claes's avatar claes

Changed JopUtility from TRACE to NAVIGATOR

parent fd0bd55b
/* /*
* Proview $Id: XttTree.java,v 1.7 2005-11-02 14:02:18 claes Exp $ * Proview $Id: XttTree.java,v 1.8 2005-11-04 11:47:58 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -1096,7 +1096,7 @@ public class XttTree extends JPanel ...@@ -1096,7 +1096,7 @@ public class XttTree extends JPanel
this.newMethod(english, LAN_EN, "LAN_EN", /*false,*/ 1, null); this.newMethod(english, LAN_EN, "LAN_EN", /*false,*/ 1, null);
this.newMethod("INCLOG", INCLOG, "INCLOG", /*false,*/ -1, "ctrl O"); this.newMethod("INCLOG", INCLOG, "INCLOG", /*false,*/ -1, "ctrl O");
this.newMethod("DECLOG", DECLOG, "DECLOG", /*false,*/ -1, "ctrl P"); this.newMethod("DECLOG", DECLOG, "DECLOG", /*false,*/ -1, "ctrl P");
this.newMethod(enterComm, COMM,"COMM",0,"ctrl C"); this.newMethod(enterComm, COMM,"COMM",0,"ctrl B");
inputMap.setParent(this.tree.getInputMap(JComponent.WHEN_FOCUSED)); inputMap.setParent(this.tree.getInputMap(JComponent.WHEN_FOCUSED));
this.tree.setInputMap(JComponent.WHEN_FOCUSED, inputMap); this.tree.setInputMap(JComponent.WHEN_FOCUSED, inputMap);
...@@ -1190,24 +1190,20 @@ public class XttTree extends JPanel ...@@ -1190,24 +1190,20 @@ public class XttTree extends JPanel
if(tp == null) return; if(tp == null) return;
DefaultMutableTreeNode tn = (DefaultMutableTreeNode)(tp.getLastPathComponent()); DefaultMutableTreeNode tn = (DefaultMutableTreeNode)(tp.getLastPathComponent());
if(tn == null) return; if(tn == null) return;
try try {
{ TreeObj obj = (TreeObj)tn.getUserObject();
TreeObj obj = (TreeObj)tn.getUserObject(); String name = obj.fullName;
String name = obj.fullName; if(name == null)
if(name == null) return;
{
return; new JopMethodsMenu( session, name,
} JopUtility.NAVIGATOR,(Component) tree,
new JopMethodsMenu( session, e.getX(), e.getY());
name,
JopUtility.TRACE,(Component) tree, }
e.getX(), e.getY()); catch(Exception ex) {
Logg.logg("Error in showCross() " + ex.toString(),0);
} }
catch(Exception ex)
{
Logg.logg("Error in showCross() " + ex.toString(),0);
}
Logg.loggToApplet(""); Logg.loggToApplet("");
// popup.show((Component)e.getSource(), e.getX(), e.getY()); // popup.show((Component)e.getSource(), e.getX(), e.getY());
} }
......
/* /*
* Proview $Id: XttTree.java,v 1.7 2005-11-02 14:02:18 claes Exp $ * Proview $Id: XttTree.java,v 1.8 2005-11-04 11:47:58 claes Exp $
* Copyright (C) 2005 SSAB Oxelsund AB. * Copyright (C) 2005 SSAB Oxelsund AB.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
...@@ -1096,7 +1096,7 @@ public class XttTree extends JPanel ...@@ -1096,7 +1096,7 @@ public class XttTree extends JPanel
this.newMethod(english, LAN_EN, "LAN_EN", /*false,*/ 1, null); this.newMethod(english, LAN_EN, "LAN_EN", /*false,*/ 1, null);
this.newMethod("INCLOG", INCLOG, "INCLOG", /*false,*/ -1, "ctrl O"); this.newMethod("INCLOG", INCLOG, "INCLOG", /*false,*/ -1, "ctrl O");
this.newMethod("DECLOG", DECLOG, "DECLOG", /*false,*/ -1, "ctrl P"); this.newMethod("DECLOG", DECLOG, "DECLOG", /*false,*/ -1, "ctrl P");
this.newMethod(enterComm, COMM,"COMM",0,"ctrl C"); this.newMethod(enterComm, COMM,"COMM",0,"ctrl B");
inputMap.setParent(this.tree.getInputMap(JComponent.WHEN_FOCUSED)); inputMap.setParent(this.tree.getInputMap(JComponent.WHEN_FOCUSED));
this.tree.setInputMap(JComponent.WHEN_FOCUSED, inputMap); this.tree.setInputMap(JComponent.WHEN_FOCUSED, inputMap);
...@@ -1190,24 +1190,20 @@ public class XttTree extends JPanel ...@@ -1190,24 +1190,20 @@ public class XttTree extends JPanel
if(tp == null) return; if(tp == null) return;
DefaultMutableTreeNode tn = (DefaultMutableTreeNode)(tp.getLastPathComponent()); DefaultMutableTreeNode tn = (DefaultMutableTreeNode)(tp.getLastPathComponent());
if(tn == null) return; if(tn == null) return;
try try {
{ TreeObj obj = (TreeObj)tn.getUserObject();
TreeObj obj = (TreeObj)tn.getUserObject(); String name = obj.fullName;
String name = obj.fullName; if(name == null)
if(name == null) return;
{
return; new JopMethodsMenu( session, name,
} JopUtility.NAVIGATOR,(Component) tree,
new JopMethodsMenu( session, e.getX(), e.getY());
name,
JopUtility.TRACE,(Component) tree, }
e.getX(), e.getY()); catch(Exception ex) {
Logg.logg("Error in showCross() " + ex.toString(),0);
} }
catch(Exception ex)
{
Logg.logg("Error in showCross() " + ex.toString(),0);
}
Logg.loggToApplet(""); Logg.loggToApplet("");
// popup.show((Component)e.getSource(), e.getX(), e.getY()); // popup.show((Component)e.getSource(), e.getX(), e.getY());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment