directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r653442 - in /directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations: resources/icons/ src/main/java/org/apache/directory/studio/apacheds/experimentations/ src/main/java/org/apache/directory/studio/apacheds/exp...
Date Mon, 05 May 2008 12:10:31 GMT
Author: pamarcelot
Date: Mon May  5 05:10:31 2008
New Revision: 653442

URL: http://svn.apache.org/viewvc?rev=653442&view=rev
Log:
o Added icon for the new server instance action.
o Added the StudioConsoleAppender which prints the logs to the console plugin. 

Added:
    directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/resources/icons/server-instance-new.png
  (with props)
    directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/StudioConsoleAppender.java
      - copied, changed from r653436, 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
    directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/ApacheDsPluginConstants.java
    directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/actions/NewServerInstanceAction.java

Added: directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/resources/icons/server-instance-new.png
URL: http://svn.apache.org/viewvc/directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/resources/icons/server-instance-new.png?rev=653442&view=auto
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/resources/icons/server-instance-new.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

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=653442&r1=653441&r2=653442&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 05:10:31 2008
@@ -52,7 +52,7 @@
     private ServersHandler serversHandler;
 
     private static Logger logger = Logger.getLogger( ApacheDsPlugin.class );
-    private MessageConsole logMessageConsole;
+    private LogMessageConsole logMessageConsole;
 
 
     /**
@@ -115,11 +115,11 @@
      * @return
      *      the log message console
      */
-    public MessageConsole getLogMessageConsole()
+    public LogMessageConsole getLogMessageConsole()
     {
         if ( logMessageConsole == null )
         {
-            logMessageConsole = new MessageConsole( "Apache DS", null );
+            logMessageConsole = new LogMessageConsole( "Apache DS", null );
             ConsolePlugin.getDefault().getConsoleManager().addConsoles( new IConsole[]
                 { logMessageConsole } );
         }

Modified: directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/ApacheDsPluginConstants.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/ApacheDsPluginConstants.java?rev=653442&r1=653441&r2=653442&view=diff
==============================================================================
--- directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/ApacheDsPluginConstants.java
(original)
+++ directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/ApacheDsPluginConstants.java
Mon May  5 05:10:31 2008
@@ -32,6 +32,7 @@
     // IMAGES
     // -------
     public static final String IMG_SERVER_INSTANCE = "resources/icons/server-instance.png";
+    public static final String IMG_SERVER_INSTANCE_NEW = "resources/icons/server-instance-new.png";
 
     // -------
     // ACTIONS

Copied: directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/StudioConsoleAppender.java
(from r653436, directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/StudioConsoleAppender.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/StudioConsoleAppender.java?p2=directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/StudioConsoleAppender.java&p1=directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/StudioConsoleAppender.java&r1=653436&r2=653442&rev=653442&view=diff
==============================================================================
--- directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/StudioConsoleAppender.java
(original)
+++ directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/StudioConsoleAppender.java
Mon May  5 05:10:31 2008
@@ -42,8 +42,31 @@
         Level level = event.getLevel();
         Object message = event.getMessage();
 
-        ApacheDsPlugin.getDefault().getConsoleDisplayMgr()
-            .println( level + " " + message, ConsoleDisplayMgr.MSG_INFORMATION );
+        if ( level == Level.INFO )
+        {
+            ApacheDsPlugin.getDefault().getLogMessageConsole().getInfoConsoleMessageStream().println(
+                message.toString() );
+        }
+        else if ( level == Level.DEBUG )
+        {
+            ApacheDsPlugin.getDefault().getLogMessageConsole().getDebugConsoleMessageStream().println(
+                message.toString() );
+        }
+        else if ( level == Level.WARN )
+        {
+            ApacheDsPlugin.getDefault().getLogMessageConsole().getWarnConsoleMessageStream().println(
+                message.toString() );
+        }
+        else if ( level == Level.ERROR )
+        {
+            ApacheDsPlugin.getDefault().getLogMessageConsole().getErrorConsoleMessageStream().println(
+                message.toString() );
+        }
+        else if ( level == Level.FATAL )
+        {
+            ApacheDsPlugin.getDefault().getLogMessageConsole().getFatalConsoleMessageStream().println(
+                message.toString() );
+        }
     }
 
 

Modified: directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/actions/NewServerInstanceAction.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/actions/NewServerInstanceAction.java?rev=653442&r1=653441&r2=653442&view=diff
==============================================================================
--- directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/actions/NewServerInstanceAction.java
(original)
+++ directory/sandbox/pamarcelot/studio-apacheds-plugin/studio-apacheds-experimentations/src/main/java/org/apache/directory/studio/apacheds/experimentations/actions/NewServerInstanceAction.java
Mon May  5 05:10:31 2008
@@ -20,6 +20,7 @@
 package org.apache.directory.studio.apacheds.experimentations.actions;
 
 
+import org.apache.directory.studio.apacheds.experimentations.ApacheDsPlugin;
 import org.apache.directory.studio.apacheds.experimentations.ApacheDsPluginConstants;
 import org.apache.directory.studio.apacheds.experimentations.wizards.NewServerInstanceWizard;
 import org.eclipse.jface.action.Action;
@@ -48,6 +49,8 @@
         super( "New Server" );
         setToolTipText( "New Server" );
         setId( ApacheDsPluginConstants.ACTION_NEW_SERVER_INSTANCE );
+        setImageDescriptor( ApacheDsPlugin.getDefault().getImageDescriptor(
+            ApacheDsPluginConstants.IMG_SERVER_INSTANCE_NEW ) );
         setEnabled( true );
     }
 



Mime
View raw message