svn commit: r16714 - trunk/src/argouml-app/src/org/argouml/ui/cmd/CmdSetPreferredSize.java

Tom Morris <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2009-01-27 08:53:30-0800
New Revision: 16714

Modified:
   trunk/src/argouml-app/src/org/argouml/ui/cmd/CmdSetPreferredSize.java

Log:
Issue 5668 - wrap long lines and delete dead code

Modified: trunk/src/argouml-app/src/org/argouml/ui/cmd/CmdSetPreferredSize.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/ui/cmd/CmdSetPreferredSize.java?view=diff&pathrev=16714&r1=16713&r2=16714
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/ui/cmd/CmdSetPreferredSize.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/ui/cmd/CmdSetPreferredSize.java	2009-01-27 08:53:30-0800
@@ -1,5 +1,5 @@
 // $Id$
-// Copyright (c) 1996-2007 The Regents of the University of California. All
+// Copyright (c) 1996-2009 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
 // software and its documentation without fee, and without a written
 // agreement is hereby granted, provided that the above copyright notice
@@ -86,9 +86,8 @@
         if (figs == null) {
             SelectionManager sm = ce.getSelectionManager();
             if (sm.getLocked()) {
-//                Globals.showStatus("Cannot Modify Locked Objects");
                 Globals.showStatus(
-                        Translator.localize("action.locked-objects-not-modify"));
+                    Translator.localize("action.locked-objects-not-modify"));
                 return;
             }
             figs = sm.getFigs();
@@ -114,9 +113,8 @@
                             || fi.getEnclosedFigs().size() == 0)) {
                 fi.setSize(fi.getMinimumSize());
                 /* TODO: Beautify the 2nd part of this string: */
-//                Globals.showStatus("Setting size for " + fi);
-                Object[] args = {fi};
-                Globals.showStatus(Translator.localize("action.setting-size", args));
+                Globals.showStatus(Translator.localize("action.setting-size", 
+                        new Object[] {fi}));
             }
             fi.endTrans();
         }

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=1059481

To unsubscribe from this discussion, e-mail: [[email protected]].
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.