Author: thn
Date: 2012-01-31 06:15:09-0800
New Revision: 19870

Modified:
   trunk/src/argouml-app/src/org/argouml/i18n/label.properties
   trunk/src/argouml-app/src/org/argouml/uml/ui/SourcePathDialog.java

Log:
make the "generate code for project" feature more self explaining (showing hint 
to use "Set source path" in explorer popup)

Modified: trunk/src/argouml-app/src/org/argouml/i18n/label.properties
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/i18n/label.properties?view=diff&pathrev=19870&r1=19869&r2=19870
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/i18n/label.properties (original)
+++ trunk/src/argouml-app/src/org/argouml/i18n/label.properties 2012-01-31 
06:15:09-0800
@@ -9,6 +9,7 @@
 # Contributors:
 #    Bob Tarling
 #    Michiel van der Wulp
+#    Thomas Neustupny
 #******************************************************************************
 #
 # Some portions of this file was previously release using the BSD License:
@@ -214,6 +215,7 @@
 label.fonts.normal = Normal size
 label.generalization = Generalization
 label.generalizations = Generalizations:
+label.generate-code-for-project = Use the "Set Source Path..." option in the 
model tree to add items.
 label.goal.unspecified = Unspecified
 label.graphics-export-resolution.warning = <html>Graphics export resolutions \
         higher than standard<br> are very experimental. Use at your own 
risk.</html>

Modified: trunk/src/argouml-app/src/org/argouml/uml/ui/SourcePathDialog.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/uml/ui/SourcePathDialog.java?view=diff&pathrev=19870&r1=19869&r2=19870
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/uml/ui/SourcePathDialog.java  
(original)
+++ trunk/src/argouml-app/src/org/argouml/uml/ui/SourcePathDialog.java  
2012-01-31 06:15:09-0800
@@ -8,6 +8,7 @@
  *
  * Contributors:
  *    tfmorris
+ *    Thomas Neustupny
  *****************************************************************************
  *
  * Some portions of this file was previously release using the BSD License:
@@ -38,12 +39,15 @@
 
 package org.argouml.uml.ui;
 
+import java.awt.BorderLayout;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.util.LinkedList;
 
 import javax.swing.JButton;
+import javax.swing.JLabel;
 import javax.swing.JOptionPane;
+import javax.swing.JPanel;
 import javax.swing.JScrollPane;
 import javax.swing.JTable;
 import javax.swing.ListSelectionModel;
@@ -93,6 +97,12 @@
         elemCol.setMinWidth(0);
         elemCol.setMaxWidth(0);
 
+        JPanel contentPane = new JPanel(new BorderLayout());
+        JLabel label = new JLabel(
+                Translator.localize("label.generate-code-for-project"));
+        contentPane.add(label, "North");
+        contentPane.add(new JScrollPane(srcPathTable), "Center");
+        
         delButton = new JButton(Translator.localize("button.delete"));
         delButton.setEnabled(false);
         addButton(delButton, 0);
@@ -101,7 +111,7 @@
         rowSM.addListSelectionListener(new SelectionListener());
         delButton.addActionListener(this);
 
-        setContent(new JScrollPane(srcPathTable));
+        setContent(contentPane);
     }
 
     ////////////////////////////////////////////////////////////////

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

To unsubscribe from this discussion, e-mail: 
[[email protected]].

Reply via email to