svn commit: r15144 - trunk/src/argouml-app/src/org/argouml/ui/DetailsPane.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: dthompson
Date: 2008-07-02 12:26:43-0700
New Revision: 15144

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

Log:
Issue 5171: Removed some code to solve problem with critic text not displaying correctly.

Modified: trunk/src/argouml-app/src/org/argouml/ui/DetailsPane.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/src/org/argouml/ui/DetailsPane.java?view=diff&rev=15144&p1=trunk/src/argouml-app/src/org/argouml/ui/DetailsPane.java&p2=trunk/src/argouml-app/src/org/argouml/ui/DetailsPane.java&r1=15143&r2=15144
==============================================================================
--- trunk/src/argouml-app/src/org/argouml/ui/DetailsPane.java	(original)
+++ trunk/src/argouml-app/src/org/argouml/ui/DetailsPane.java	2008-07-02 12:26:43-0700
@@ -216,8 +216,8 @@
         enableTabs(item);
         for (JPanel t : tabPanelList) {
             if (t instanceof TabToDoTarget) {
-                topLevelTabbedPane.setSelectedComponent(t);
                 ((TabToDoTarget) t).setTarget(item);
+                topLevelTabbedPane.setSelectedComponent(t);
                 return true;
             }
         }
@@ -447,8 +447,7 @@
      */
     public void stateChanged(ChangeEvent e) {
         LOG.debug("DetailsPane state changed");
-        Component sel = topLevelTabbedPane.getSelectedComponent();
-
+        
         // update the previously selected tab
         if (lastNonNullTab >= 0) {
 	    JPanel tab = tabPanelList.get(lastNonNullTab);
@@ -459,21 +458,6 @@
 	}
         Object target = TargetManager.getInstance().getSingleTarget();
 
-        if (sel instanceof TabToDoTarget) {
-            ((TabToDoTarget) sel).setTarget(target);
-        } else if (sel instanceof TabTarget) {
-            ((TabTarget) sel).setTarget(target);
-        }
-        if (sel instanceof TargetListener) {
-            removeTargetListener((TargetListener) sel);
-            addTargetListener((TargetListener) sel);
-            // Newly selected tab may have stale target info, so generate
-            // a new set target event for it to refresh it
-            ((TargetListener) sel).targetSet(new TargetEvent(this,
-                    TargetEvent.TARGET_SET, new Object[] {},
-                    new Object[] {target}));
-        }
-
         if (target != null
             && Model.getFacade().isAUMLElement(target)
             && topLevelTabbedPane.getSelectedIndex() > 0) {
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.