directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r653437 - in /directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations: ApacheDsPlugin.java StudioConsoleAppender.java
Date Mon, 05 May 2008 11:46:31 GMT
Author: pamarcelot
Date: Mon May  5 04:46:31 2008
New Revision: 653437

URL: http://svn.apache.org/viewvc?rev=653437&view=rev
Log:
Cleaning.
Removed unused code.
Added Javadoc.

Removed:
    directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/StudioConsoleAppender.java
Modified:
    directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/ApacheDsPlugin.java

Modified: directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/ApacheDsPlugin.java
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/ApacheDsPlugin.java?rev=653437&r1=653436&r2=653437&view=diff
==============================================================================
--- directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/ApacheDsPlugin.java
(original)
+++ directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/ApacheDsPlugin.java
Mon May  5 04:46:31 2008
@@ -21,26 +21,13 @@
 
 
 import java.net.URL;
-import java.util.ArrayList;
-import java.util.List;
 
 import org.apache.directory.studio.apacheds.experimentations.model.ServersHandler;
 import org.apache.log4j.Logger;
 import org.apache.log4j.PropertyConfigurator;
 import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.core.runtime.IPath;
 import org.eclipse.core.runtime.Path;
 import org.eclipse.core.runtime.Platform;
-import org.eclipse.debug.core.DebugPlugin;
-import org.eclipse.debug.core.ILaunchConfiguration;
-import org.eclipse.debug.core.ILaunchConfigurationType;
-import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
-import org.eclipse.debug.core.ILaunchManager;
-import org.eclipse.debug.ui.DebugUITools;
-import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants;
-import org.eclipse.jdt.launching.IRuntimeClasspathEntry;
-import org.eclipse.jdt.launching.IVMInstall;
-import org.eclipse.jdt.launching.JavaRuntime;
 import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.swt.graphics.Image;
 import org.eclipse.ui.console.ConsolePlugin;
@@ -65,7 +52,6 @@
     private ServersHandler serversHandler;
 
     private static Logger logger = Logger.getLogger( ApacheDsPlugin.class );
-    private ConsoleDisplayMgr consoleDisplayMgr;
     private MessageConsole logMessageConsole;
 
 
@@ -77,6 +63,17 @@
     }
 
 
+    /**
+     * Returns the shared instance
+     *
+     * @return the shared instance
+     */
+    public static ApacheDsPlugin getDefault()
+    {
+        return plugin;
+    }
+
+
     /*
      * (non-Javadoc)
      * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
@@ -98,35 +95,6 @@
         // Configuring Log4J
         PropertyConfigurator.configure( Platform.getBundle( PLUGIN_ID ).getResource( "conf/log4j.properties"
) ); //$NON-NLS-1$
         logger.info( "Entering Apache Directory Studio." ); //$NON-NLS-1$
-
-        // Testing the Console capabilities
-        consoleDisplayMgr = new ConsoleDisplayMgr( "Testing Console..." );
-
-        consoleDisplayMgr.println( "MSG_INFORMATION", ConsoleDisplayMgr.MSG_INFORMATION );
-        consoleDisplayMgr.println( "MSG_WARNING", ConsoleDisplayMgr.MSG_WARNING );
-        consoleDisplayMgr.println( "MSG_ERROR", ConsoleDisplayMgr.MSG_ERROR );
-
-        
-
-    }
-
-
-    public ConsoleDisplayMgr getConsoleDisplayMgr()
-    {
-        return consoleDisplayMgr;
-    }
-
-
-    public MessageConsole getLogMessageConsole()
-    {
-        if ( logMessageConsole == null )
-        {
-            logMessageConsole = new MessageConsole( "Apache DS", null );
-            ConsolePlugin.getDefault().getConsoleManager().addConsoles( new IConsole[]
-                { logMessageConsole } );
-        }
-
-        return logMessageConsole;
     }
 
 
@@ -142,13 +110,21 @@
 
 
     /**
-     * Returns the shared instance
+     * Gets the log message console.
      *
-     * @return the shared instance
+     * @return
+     *      the log message console
      */
-    public static ApacheDsPlugin getDefault()
+    public MessageConsole getLogMessageConsole()
     {
-        return plugin;
+        if ( logMessageConsole == null )
+        {
+            logMessageConsole = new MessageConsole( "Apache DS", null );
+            ConsolePlugin.getDefault().getConsoleManager().addConsoles( new IConsole[]
+                { logMessageConsole } );
+        }
+
+        return logMessageConsole;
     }
 
 



Mime
View raw message