svn commit: r13686 - trunk/src_new/org/argouml/uml/ui/TabStyle.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2007-10-21 07:52:08-0700
New Revision: 13686

Modified:
   trunk/src_new/org/argouml/uml/ui/TabStyle.java

Log:
Fix for P1 issue 4883: Presentation tabs did not follow selection.

Modified: trunk/src_new/org/argouml/uml/ui/TabStyle.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/uml/ui/TabStyle.java?view=diff&rev=13686&p1=trunk/src_new/org/argouml/uml/ui/TabStyle.java&p2=trunk/src_new/org/argouml/uml/ui/TabStyle.java&r1=13685&r2=13686
==============================================================================
--- trunk/src_new/org/argouml/uml/ui/TabStyle.java	(original)
+++ trunk/src_new/org/argouml/uml/ui/TabStyle.java	2007-10-21 07:52:08-0700
@@ -246,15 +246,9 @@
         stylePanel = findPanelFor(targetClass);
 
         if (stylePanel != null) {
-            if (stylePanel instanceof TargetListener) {
-                // TargetManager now replaces the old
-                // functionality of
-                // setTarget
-                removeTargetListener(stylePanel);
-                addTargetListener(stylePanel);
-            } else {
-                stylePanel.setTarget(target);
-            }
+            removeTargetListener(stylePanel);
+            addTargetListener(stylePanel);
+            stylePanel.setTarget(target);
             add(stylePanel, BorderLayout.NORTH);
             shouldBeEnabled = true;
             lastPanel = stylePanel;
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.