Author: hudsonb
Date: 2008-06-11 12:41:32-0700
New Revision: 14901
Modified:
branches/gsoc2008/work_argoeclipse1_hudsonb/argouml-app/src/org/argouml/ui/cmd/ActionAdjustGrid.java
Log:
Made buildGridAction public so that it can be accessed from ArgoEclipse
Modified: branches/gsoc2008/work_argoeclipse1_hudsonb/argouml-app/src/org/argouml/ui/cmd/ActionAdjustGrid.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2008/work_argoeclipse1_hudsonb/argouml-app/src/org/argouml/ui/cmd/ActionAdjustGrid.java?view=diff&rev=14901&p1=branches/gsoc2008/work_argoeclipse1_hudsonb/argouml-app/src/org/argouml/ui/cmd/ActionAdjustGrid.java&p2=branches/gsoc2008/work_argoeclipse1_hudsonb/argouml-app/src/org/argouml/ui/cmd/ActionAdjustGrid.java&r1=14900&r2=14901
==============================================================================
--- branches/gsoc2008/work_argoeclipse1_hudsonb/argouml-app/src/org/argouml/ui/cmd/ActionAdjustGrid.java (original)
+++ branches/gsoc2008/work_argoeclipse1_hudsonb/argouml-app/src/org/argouml/ui/cmd/ActionAdjustGrid.java 2008-06-11 12:41:32-0700
@@ -54,7 +54,6 @@
* @author Michiel
*/
public class ActionAdjustGrid extends AbstractAction {
-
private final Map<String, Comparable> myMap;
private static final String DEFAULT_ID = "03";
private static ButtonGroup myGroup;
@@ -67,7 +66,7 @@
* the spacing, paintLines and paintDots.
* @param name the name for this action
*/
- private ActionAdjustGrid(final Map<String, Comparable> map,
+ public ActionAdjustGrid(final Map<String, Comparable> map,
final String name) {
super();
myMap = map;
@@ -158,7 +157,18 @@
return result;
}
- private static Action buildGridAction(final String property,
+ /**
+ * Builder method for Grid actions
+ *
+ * @param property
+ * @param spacing
+ * @param paintLines whether or not to paint lines
+ * @param paintDots whether or not to paint dots
+ * @param id identifier action identifier
+ * @param key shortcut key
+ * @return grid action
+ */
+ public static Action buildGridAction(final String property,
final int spacing, final boolean paintLines,
final boolean paintDots, final String id, final int key) {
String name = Translator.localize(property);
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.