directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r660867 - /directory/studio/branches/apacheds-plugin-branch/apacheds/src/main/java/org/apache/directory/studio/apacheds/prefs/ColorsAndFontsPage.java
Date Wed, 28 May 2008 08:55:24 GMT
Author: pamarcelot
Date: Wed May 28 01:55:24 2008
New Revision: 660867

URL: http://svn.apache.org/viewvc?rev=660867&view=rev
Log:
Removed crappy debug code...

Modified:
    directory/studio/branches/apacheds-plugin-branch/apacheds/src/main/java/org/apache/directory/studio/apacheds/prefs/ColorsAndFontsPage.java

Modified: directory/studio/branches/apacheds-plugin-branch/apacheds/src/main/java/org/apache/directory/studio/apacheds/prefs/ColorsAndFontsPage.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/apacheds-plugin-branch/apacheds/src/main/java/org/apache/directory/studio/apacheds/prefs/ColorsAndFontsPage.java?rev=660867&r1=660866&r2=660867&view=diff
==============================================================================
--- directory/studio/branches/apacheds-plugin-branch/apacheds/src/main/java/org/apache/directory/studio/apacheds/prefs/ColorsAndFontsPage.java
(original)
+++ directory/studio/branches/apacheds-plugin-branch/apacheds/src/main/java/org/apache/directory/studio/apacheds/prefs/ColorsAndFontsPage.java
Wed May 28 01:55:24 2008
@@ -22,7 +22,6 @@
 
 import org.apache.directory.studio.apacheds.ApacheDsPlugin;
 import org.apache.directory.studio.apacheds.ApacheDsPluginConstants;
-import org.apache.directory.studio.apacheds.LogMessageConsole;
 import org.apache.directory.studio.apacheds.PreferenceStoreUtils;
 import org.eclipse.jface.preference.ColorSelector;
 import org.eclipse.jface.preference.PreferenceConverter;
@@ -39,9 +38,6 @@
 import org.eclipse.swt.widgets.Label;
 import org.eclipse.ui.IWorkbench;
 import org.eclipse.ui.IWorkbenchPreferencePage;
-import org.eclipse.ui.console.ConsolePlugin;
-import org.eclipse.ui.console.IConsole;
-import org.eclipse.ui.console.MessageConsoleStream;
 
 
 /**
@@ -170,25 +166,29 @@
         // Info
         fontDatas = PreferenceConverter.getFontDataArray( getPreferenceStore(),
             ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_INFO_FONT );
-        rgb = PreferenceConverter.getColor( getPreferenceStore(), ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_INFO_COLOR
);
+        rgb = PreferenceConverter.getColor( getPreferenceStore(),
+            ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_INFO_COLOR );
         setInfo( fontDatas, rgb );
 
         // Warn
         fontDatas = PreferenceConverter.getFontDataArray( getPreferenceStore(),
             ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_WARN_FONT );
-        rgb = PreferenceConverter.getColor( getPreferenceStore(), ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_WARN_COLOR
);
+        rgb = PreferenceConverter.getColor( getPreferenceStore(),
+            ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_WARN_COLOR );
         setWarn( fontDatas, rgb );
 
         // Error
         fontDatas = PreferenceConverter.getFontDataArray( getPreferenceStore(),
             ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_ERROR_FONT );
-        rgb = PreferenceConverter.getColor( getPreferenceStore(), ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_ERROR_COLOR
);
+        rgb = PreferenceConverter.getColor( getPreferenceStore(),
+            ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_ERROR_COLOR );
         setError( fontDatas, rgb );
 
         // Fatal
         fontDatas = PreferenceConverter.getFontDataArray( getPreferenceStore(),
             ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_FATAL_FONT );
-        rgb = PreferenceConverter.getColor( getPreferenceStore(), ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_FATAL_COLOR
);
+        rgb = PreferenceConverter.getColor( getPreferenceStore(),
+            ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_FATAL_COLOR );
         setFatal( fontDatas, rgb );
     }
 
@@ -255,8 +255,8 @@
         fontDatas = PreferenceConverter.getFontDataArray( getPreferenceStore(),
             ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_INFO_FONT );
         setFontData( fontDatas, infoBoldCheckbox, infoItalicCheckbox );
-        PreferenceConverter
-            .setValue( getPreferenceStore(), ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_INFO_FONT,
fontDatas );
+        PreferenceConverter.setValue( getPreferenceStore(), ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_INFO_FONT,
+            fontDatas );
         PreferenceConverter.setValue( getPreferenceStore(), ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_INFO_COLOR,
             infoColorButton.getColorValue() );
 
@@ -264,8 +264,8 @@
         fontDatas = PreferenceConverter.getFontDataArray( getPreferenceStore(),
             ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_WARN_FONT );
         setFontData( fontDatas, warnBoldCheckbox, warnItalicCheckbox );
-        PreferenceConverter
-            .setValue( getPreferenceStore(), ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_WARN_FONT,
fontDatas );
+        PreferenceConverter.setValue( getPreferenceStore(), ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_WARN_FONT,
+            fontDatas );
         PreferenceConverter.setValue( getPreferenceStore(), ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_WARN_COLOR,
             warnColorButton.getColorValue() );
 
@@ -278,7 +278,7 @@
         PreferenceConverter.setValue( getPreferenceStore(), ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_ERROR_COLOR,
             errorColorButton.getColorValue() );
 
-        // Error
+        // Fatal
         fontDatas = PreferenceConverter.getFontDataArray( getPreferenceStore(),
             ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_FATAL_FONT );
         setFontData( fontDatas, fatalBoldCheckbox, fatalItalicCheckbox );
@@ -287,36 +287,6 @@
         PreferenceConverter.setValue( getPreferenceStore(), ApacheDsPluginConstants.PREFS_COLORS_AND_FONTS_FATAL_COLOR,
             fatalColorButton.getColorValue() );
 
-        LogMessageConsole logMessageConsole = new LogMessageConsole( "toto" );
-        ConsolePlugin.getDefault().getConsoleManager().addConsoles( new IConsole[]
-            { logMessageConsole } );
-
-        RGB rgbBlue = new RGB( 0, 0, 192 );
-        RGB rgbGreen = new RGB( 63, 127, 95 );
-        RGB rgbOrange = new RGB( 255, 127, 0 );
-        RGB rgbRed = new RGB( 255, 0, 0 );
-        RGB rgbDarkRed = new RGB( 127, 0, 0 );
-
-        MessageConsoleStream messageConsoleStream = logMessageConsole.getDebugConsoleMessageStream();
-        messageConsoleStream
-            .println( "[11:23:01] DEBUG [org.apache.directory.server.core.DefaultDirectoryService]
- You didn't change the admin password of directory service instance 'default'.  Please update
the admin password as soon as possible to prevent a possible security breach." );
-
-        messageConsoleStream = logMessageConsole.getInfoConsoleMessageStream();
-        messageConsoleStream
-            .println( "[11:23:01] INFO [org.apache.directory.server.core.DefaultDirectoryService]
- You didn't change the admin password of directory service instance 'default'.  Please update
the admin password as soon as possible to prevent a possible security breach." );
-
-        messageConsoleStream = logMessageConsole.getWarnConsoleMessageStream();
-        messageConsoleStream
-            .println( "[11:23:01] WARN [org.apache.directory.server.core.DefaultDirectoryService]
- You didn't change the admin password of directory service instance 'default'.  Please update
the admin password as soon as possible to prevent a possible security breach." );
-
-        messageConsoleStream = logMessageConsole.getErrorConsoleMessageStream();
-        messageConsoleStream
-            .println( "[11:23:01] ERROR [org.apache.directory.server.core.DefaultDirectoryService]
- You didn't change the admin password of directory service instance 'default'.  Please update
the admin password as soon as possible to prevent a possible security breach." );
-
-        messageConsoleStream = logMessageConsole.getFatalConsoleMessageStream();
-        messageConsoleStream
-            .println( "[11:23:01] FATAL [org.apache.directory.server.core.DefaultDirectoryService]
- You didn't change the admin password of directory service instance 'default'.  Please update
the admin password as soon as possible to prevent a possible security breach." );
-
         return super.performOk();
     }
 



Mime
View raw message