svn commit: r13820 - trunk/src_new/org/argouml/ui/DetailsPane.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-11-22 23:30:30-0800
New Revision: 13820

Modified:
   trunk/src_new/org/argouml/ui/DetailsPane.java

Log:
Improve compatibility for old code that doesn't use the documented API

Modified: trunk/src_new/org/argouml/ui/DetailsPane.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src_new/org/argouml/ui/DetailsPane.java?view=diff&rev=13820&p1=trunk/src_new/org/argouml/ui/DetailsPane.java&p2=trunk/src_new/org/argouml/ui/DetailsPane.java&r1=13819&r2=13820
==============================================================================
--- trunk/src_new/org/argouml/ui/DetailsPane.java	(original)
+++ trunk/src_new/org/argouml/ui/DetailsPane.java	2007-11-22 23:30:30-0800
@@ -196,7 +196,9 @@
     // TODO: Some parts of ArgoUML have preliminary support for multiple
     // details panels, but we currently only support the default South (bottom) panel
     private void loadTabs(String direction, Orientation orientation) {
-        if (Position.South.toString().equalsIgnoreCase(direction)) {
+        if (Position.South.toString().equalsIgnoreCase(direction)
+                // Special case for backward compatibility
+                || "detail".equalsIgnoreCase(direction)) {
             tabPanelList.addAll(Arrays.asList(new JPanel[] {
                 new org.argouml.cognitive.ui.TabToDo(),
                 new TabProps(),
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.