Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27312/src/net/sourceforge/bprocessor/gui
Modified Files:
GUI.java
Log Message:
added a alert message for tool and everything ele to use, for future visual feedback messages in the GUI
Index: GUI.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/GUI.java,v
retrieving revision 1.54
retrieving revision 1.55
diff -C2 -d -r1.54 -r1.55
*** GUI.java 3 Dec 2006 17:53:18 -0000 1.54
--- GUI.java 5 Dec 2006 09:05:57 -0000 1.55
***************
*** 85,89 ****
/** The splash */
-
private SplashWindow plash;
--- 85,88 ----
***************
*** 268,272 ****
copy.clear();
//FIXME check if it is legal to copy the selected geometry
! copy.addAll(s);
}
});
--- 267,275 ----
copy.clear();
//FIXME check if it is legal to copy the selected geometry
! if (s.size() == 1) {
! copy.addAll(s);
! } else {
! GUI.getInstance().alert("Only single geometry can be copied");
! }
}
});
***************
*** 438,441 ****
--- 441,454 ----
/**
+ * Print a alert message in the gui
+ * at the moment it just prints it on the command line
+ * @param string The alert string
+ */
+ public void alert(String string) {
+ // TODO Implement at gui alert instead
+ log.info("GUI notice: " + string);
+ }
+
+ /**
* Adds a menu to the menu bar.
* @param extraMenu the menu.
|