svn commit: r14980 - branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/ProjectSettingsDialog.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: maurelio1234
Date: 2008-06-17 04:55:46-0700
New Revision: 14980

Modified:
   branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/ProjectSettingsDialog.java

Log:
allowing setting selected tab

Modified: branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/ProjectSettingsDialog.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/ProjectSettingsDialog.java?view=diff&rev=14980&p1=branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/ProjectSettingsDialog.java&p2=branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/ProjectSettingsDialog.java&r1=14979&r2=14980
==============================================================================
--- branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/ProjectSettingsDialog.java	(original)
+++ branches/gsoc2008/work_criticsprofiles_maurelio1234/src/org/argouml/ui/ProjectSettingsDialog.java	2008-06-17 04:55:46-0700
@@ -46,7 +46,7 @@
  * 
  * @author michiel
  */
-class ProjectSettingsDialog extends ArgoDialog implements WindowListener {
+public class ProjectSettingsDialog extends ArgoDialog implements WindowListener {
 
     private JButton applyButton;
     private JButton resetToDefaultButton;
@@ -248,4 +248,17 @@
         handleCancel();
     }
 
+    /**
+     * Show the dialog with the tab as selected
+     * @param profilesTab tab to be selected
+     */
+    public void showDialog(ProjectSettingsTabProfile profilesTab) {
+        try {
+            tabs.setSelectedComponent(profilesTab);           
+        } catch(Throwable t) {
+            
+        }
+        showDialog();
+    }
+
 }
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.