Author: bobtarling
Date: 2010-05-03 14:17:19-0700
New Revision: 18361

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

Log:
Remove deprecated and redundant code

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=18361&r1=18360&r2=18361
==============================================================================
--- 
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
    2010-05-03 14:17:19-0700
@@ -41,12 +41,8 @@
 import org.apache.log4j.Logger;
 import org.argouml.core.propertypanels.ui.XMLPropPanelFactory;
 import org.argouml.moduleloader.ModuleInterface;
-import org.argouml.ui.DetailsPane;
-import org.argouml.ui.ProjectBrowser;
-import org.argouml.ui.targetmanager.TargetManager;
 import org.argouml.uml.ui.PropPanelFactory;
 import org.argouml.uml.ui.PropPanelFactoryManager;
-import org.argouml.uml.ui.TabProps;
 
 /**
  * Defines the XMLPropertyPanels module
@@ -61,11 +57,8 @@
     private static final Logger LOG =
         Logger.getLogger(XmlPropertyPanelsModule.class);
     
-    private TempTabPage tempPanel;
-    
     public boolean enable() { 
         try {
-            TabProps.disableCache();
             PropPanelFactory elementFactory = 
XMLPropPanelFactory.getInstance();
             PropPanelFactoryManager.addPropPanelFactory(elementFactory);
             return true;
@@ -76,20 +69,14 @@
     }
 
     public boolean disable() {
-        if (TabProps.replace) {
-            /* Set up the property panels for UML elements: */
-            try {
-                PropPanelFactory elementFactory = 
XMLPropPanelFactory.getInstance();
-                PropPanelFactoryManager.removePropPanelFactory(elementFactory);
-                return true;
-            } catch (Exception e) {
-                LOG.error("Exception caught", e);
-                return false;
-            }
-        } else {
-            DetailsPane detailsPane = (DetailsPane) 
ProjectBrowser.getInstance().getDetailsPane();
-            detailsPane.removeTab(tempPanel);
+        /* Set up the property panels for UML elements: */
+        try {
+            PropPanelFactory elementFactory = 
XMLPropPanelFactory.getInstance();
+            PropPanelFactoryManager.removePropPanelFactory(elementFactory);
             return true;
+        } catch (Exception e) {
+            LOG.error("Exception caught", e);
+            return false;
         }
     }
 
@@ -111,5 +98,4 @@
     public String getName() {        
         return "Xml Property Panels Module";
     }
-
 }

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

To unsubscribe from this discussion, e-mail: 
[[email protected]].

Reply via email to