svn commit: r17612 - trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/module/XmlPropertyPanelsModule.java

Bob Tarling <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: bobtarling
Date: 2009-12-05 04:34:50-0800
New Revision: 17612

Modified:
   trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/module/XmlPropertyPanelsModule.java

Log:
When running dev module add rather than replace props tab

Modified: trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/module/XmlPropertyPanelsModule.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/module/XmlPropertyPanelsModule.java?view=diff&pathrev=17612&r1=17611&r2=17612
==============================================================================
--- trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/module/XmlPropertyPanelsModule.java	(original)
+++ trunk/src/argouml-core-umlpropertypanels/src/org/argouml/core/propertypanels/module/XmlPropertyPanelsModule.java	2009-12-05 04:34:50-0800
@@ -24,8 +24,6 @@
 
 package org.argouml.core.propertypanels.module;
 
-import javax.swing.JPanel;
-
 import org.apache.log4j.Logger;
 import org.argouml.core.propertypanels.ui.XMLPropPanelFactory;
 import org.argouml.moduleloader.ModuleInterface;
@@ -55,18 +53,9 @@
     
     private TempTabPage tempPanel;
     
-    /**
-     * It is useful during testing to view the current and new property panels
-     * side by side. This can be switched by changing this flag to replace
-     * the existing panels instead. Once XML Property Panels goes live all the
-     * code dependent on this being false can be removed and the flag itself
-     * removed.
-     */
-    private final static boolean REPLACE = true;
-    
     public boolean enable() { 
         
-        if (REPLACE) {
+        if (TabProps.replace) {
             /* Set up the property panels for UML elements: */
             try {
                 TabProps.disableCache();
@@ -89,7 +78,7 @@
     }
 
     public boolean disable() {
-        if (REPLACE) {
+        if (TabProps.replace) {
             /* Set up the property panels for UML elements: */
             try {
                 PropPanelFactory elementFactory = XMLPropPanelFactory.getInstance();

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

To unsubscribe from this discussion, e-mail: [[email protected]].
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.