Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23163/src/net/sourceforge/bprocessor/gui/treeview
Modified Files:
GenericTreeView.java
Log Message:
remove some random comments
Index: GenericTreeView.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v
retrieving revision 1.103
retrieving revision 1.104
diff -C2 -d -r1.103 -r1.104
*** GenericTreeView.java 31 Aug 2007 09:45:23 -0000 1.103
--- GenericTreeView.java 19 Sep 2007 12:07:08 -0000 1.104
***************
*** 69,75 ****
/** UID */
private static final long serialVersionUID = 1L;
-
- /** Show numbers of elements in display-string of container-nodes */
- private static final boolean SHOW_COUNTERS = false;
/** Functionalspace icon */
--- 69,72 ----
***************
*** 284,293 ****
isChanged = false;
setCellRenderer(new Renderer());
- //changed();
}
/**
* Tell the TreeView we are changed
- *
*/
public void changed() {
--- 281,288 ----
***************
*** 581,591 ****
super(space);
if (space.isInstance()) {
- // Instances
makeInstanceContent(space);
} else if (space.isContainer()) {
- // Containers both unions and soforth
makeContainerContent(space);
} else {
- // NON-container spaces
Set surfaces = space.getEnvelope();
add(new SurfaceContainer("Surfaces", surfaces));
--- 576,583 ----
***************
*** 656,660 ****
Space space = (Space)userObject;
if (space.isContainer()) {
- //the old object were a container as well
((GenericNode)getChildAt(0)).update(s.getEnvelope());
((GenericNode)getChildAt(1)).update(s.getElements());
--- 648,651 ----
***************
*** 701,705 ****
}
}
- // Update the user object
userObject = s;
if (updated == s) {
--- 692,695 ----
***************
*** 733,750 ****
return functionalspaceicon;
}
-
}
-
- // /**
- // * Context menu for this SpaceNode
- // * @return the menu
- // */
- // public JPopupMenu menu() {
- // JPopupMenu pop = PopupMenu.makeSelectionMenu();
- // if (pop == null) {
- // pop = PopupMenu.getSpaceMenu((Space)this.getUserObject());
- // }
- // return pop;
- // }
}
--- 723,727 ----
***************
*** 936,943 ****
public ElementContainer(String name, Collection elements) {
super(name, elements);
- Iterator iter = elements.iterator();
- if (iter.hasNext()) {
- Space s = (Space)iter.next();
- }
insertChildren(elements, true);
}
--- 913,916 ----
***************
*** 1271,1275 ****
*/
public void insertChildren(Collection elem) {
- //insert
int[] ins = new int[elem.size()];
int i = 0;
--- 1244,1247 ----
***************
*** 1391,1398 ****
Camera c = Project.getInstance().getCurrentCamera();
if (c.getHiddenGeometrics().contains(g)) {
- //show the thing
c.removeHiddenGeometric(g);
} else {
- //hide it
c.addHiddenGeometric(g);
}
--- 1363,1368 ----
|