Revision: 5847
          http://sourceforge.net/p/jump-pilot/code/5847
Author:   michaudm
Date:     2018-06-06 07:02:34 +0000 (Wed, 06 Jun 2018)
Log Message:
-----------
Add some javadoc and replace deprecated log

Modified Paths:
--------------
    core/trunk/src/com/vividsolutions/jump/workbench/plugin/AbstractPlugIn.java

Modified: 
core/trunk/src/com/vividsolutions/jump/workbench/plugin/AbstractPlugIn.java
===================================================================
--- core/trunk/src/com/vividsolutions/jump/workbench/plugin/AbstractPlugIn.java 
2018-06-06 07:01:55 UTC (rev 5846)
+++ core/trunk/src/com/vividsolutions/jump/workbench/plugin/AbstractPlugIn.java 
2018-06-06 07:02:34 UTC (rev 5847)
@@ -202,6 +202,11 @@
         getShortcutModifiers()) : null;
   }
 
+  /**
+   * Use reflection to find an EnableCheck object defined by old method
+   * createEnableCheck in this plugin.
+   * @return the EnableCheck defined the old way
+   */
   public EnableCheck getEnableCheck() {
     //System.out.println("ap look for "+this.getName());
     // find old method
@@ -232,6 +237,12 @@
     return getIcon(new Dimension(height, height));
   }
 
+  /**
+   * Use reflection to find the icon defined the old way by method
+   * getIcon or by attribute ICON.
+   * @param dim dimension of the icon
+   * @return the Icon of this PlugIn
+   */
   public Icon getIcon(Dimension dim) {
     Icon icon = null;
     Class c = this.getClass();
@@ -314,13 +325,7 @@
         try {
           if (workbenchContext.getWorkbench() != null) {
             workbenchContext.getWorkbench().getFrame().setStatusMessage("");
-            workbenchContext
-                .getWorkbench()
-                .getFrame()
-                .log(
-                    I18N.get("plugin.AbstractPlugIn.executing") + " "
-                        + plugIn.getName());
-
+            Logger.info(I18N.get("plugin.AbstractPlugIn.executing") + " " + 
plugIn.getName());
           }
 
           PlugInContext plugInContext = workbenchContext.createPlugInContext();
@@ -354,13 +359,9 @@
           }
 
           if (workbenchContext.getWorkbench() != null) {
-            workbenchContext
-                .getWorkbench()
-                .getFrame()
-                .log(
-                    
I18N.get("plugin.AbstractPlugIn.done-current-committed-memory")
-                        + workbenchContext.getWorkbench().getFrame()
-                            .getMBCommittedMemory() + " MB");
+            
Logger.info(I18N.get("plugin.AbstractPlugIn.done-current-committed-memory")
+                    + workbenchContext.getWorkbench().getFrame()
+                    .getMBCommittedMemory() + " MB");
           }
         } catch (Throwable t) {
           workbenchContext.getErrorHandler().handleThrowable(t);


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to