directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r1037910 - in /directory/studio/trunk/plugins: apacheds.configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/ apacheds/src/main/java/org/apache/directory/studio/apacheds/ common.core/src/main/java/org/apache/direct...
Date Mon, 22 Nov 2010 22:11:22 GMT
Author: felixk
Date: Mon Nov 22 22:11:21 2010
New Revision: 1037910

URL: http://svn.apache.org/viewvc?rev=1037910&view=rev
Log:
Transform constant interface pattern to class.

Modified:
    directory/studio/trunk/plugins/apacheds.configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/ApacheDSConfigurationPluginConstants.java
    directory/studio/trunk/plugins/apacheds/src/main/java/org/apache/directory/studio/apacheds/ApacheDsPluginConstants.java
    directory/studio/trunk/plugins/common.core/src/main/java/org/apache/directory/studio/common/core/jobs/CommonCoreConstants.java
    directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIConstants.java
    directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java
    directory/studio/trunk/plugins/connection.ui/src/main/java/org/apache/directory/studio/connection/ui/ConnectionUIConstants.java
    directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonConstants.java
    directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetTableMetadata.java
    directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreConstants.java
    directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
    directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersPluginConstants.java
    directory/studio/trunk/plugins/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java
    directory/studio/trunk/plugins/ldifparser/src/main/java/org/apache/directory/studio/ldifparser/LdifParserConstants.java
    directory/studio/trunk/plugins/rcp/src/main/java/org/apache/directory/studio/PluginConstants.java
    directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/PluginConstants.java
    directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorsConstants.java

Modified: directory/studio/trunk/plugins/apacheds.configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/ApacheDSConfigurationPluginConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/apacheds.configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/ApacheDSConfigurationPluginConstants.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds.configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/ApacheDSConfigurationPluginConstants.java
(original)
+++ directory/studio/trunk/plugins/apacheds.configuration/src/main/java/org/apache/directory/studio/apacheds/configuration/ApacheDSConfigurationPluginConstants.java
Mon Nov 22 22:11:21 2010
@@ -21,12 +21,22 @@ package org.apache.directory.studio.apac
 
 
 /**
- * This interface contains all the Constants used in the Plugin.
+ * This class contains all the Constants used in the Plugin.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface ApacheDSConfigurationPluginConstants
+public final class ApacheDSConfigurationPluginConstants
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private ApacheDSConfigurationPluginConstants()
+    {
+    }
+
     /** The plug-in ID */
     public static final String PLUGIN_ID = ApacheDSConfigurationPlugin.getDefault().getPluginProperties().getString(
         "Plugin_id" ); //$NON-NLS-1$

Modified: directory/studio/trunk/plugins/apacheds/src/main/java/org/apache/directory/studio/apacheds/ApacheDsPluginConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/apacheds/src/main/java/org/apache/directory/studio/apacheds/ApacheDsPluginConstants.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/apacheds/src/main/java/org/apache/directory/studio/apacheds/ApacheDsPluginConstants.java
(original)
+++ directory/studio/trunk/plugins/apacheds/src/main/java/org/apache/directory/studio/apacheds/ApacheDsPluginConstants.java
Mon Nov 22 22:11:21 2010
@@ -21,12 +21,22 @@ package org.apache.directory.studio.apac
 
 
 /**
- * This interface stores all the constants used in the plugin.
+ * This class stores all the constants used in the plugin.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface ApacheDsPluginConstants
+public final class ApacheDsPluginConstants
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private ApacheDsPluginConstants()
+    {
+    }
+
     /** The plug-in ID */
     public static final String PLUGIN_ID = ApacheDsPlugin.getDefault().getPluginProperties().getString(
"Plugin_id" );
 

Modified: directory/studio/trunk/plugins/common.core/src/main/java/org/apache/directory/studio/common/core/jobs/CommonCoreConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/common.core/src/main/java/org/apache/directory/studio/common/core/jobs/CommonCoreConstants.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/common.core/src/main/java/org/apache/directory/studio/common/core/jobs/CommonCoreConstants.java
(original)
+++ directory/studio/trunk/plugins/common.core/src/main/java/org/apache/directory/studio/common/core/jobs/CommonCoreConstants.java
Mon Nov 22 22:11:21 2010
@@ -23,11 +23,21 @@ package org.apache.directory.studio.comm
 
 /**
  * Constants used in the Apache Directory Studio Common Core plugin.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface CommonCoreConstants
+public final class CommonCoreConstants
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private CommonCoreConstants()
+    {
+    }
+
     /** The plug-in ID */
     public static final String PLUGIN_ID = "org.apache.directory.studio.common.core";
     

Modified: directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIConstants.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIConstants.java
(original)
+++ directory/studio/trunk/plugins/common.ui/src/main/java/org/apache/directory/studio/common/ui/CommonUIConstants.java
Mon Nov 22 22:11:21 2010
@@ -23,11 +23,21 @@ package org.apache.directory.studio.comm
 
 /**
  * Constants used in the connection UI plugin.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface CommonUIConstants
+public final class CommonUIConstants
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private CommonUIConstants()
+    {
+    }
+
     /** The plug-in ID */
     public static final String PLUGIN_ID = CommonUIPlugin.getDefault().getPluginProperties().getString(
"Plugin_id" ); //$NON-NLS-1$
 

Modified: directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java
(original)
+++ directory/studio/trunk/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/ConnectionCoreConstants.java
Mon Nov 22 22:11:21 2010
@@ -22,11 +22,21 @@ package org.apache.directory.studio.conn
 
 /**
  * Constants for the connection core plugin.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface ConnectionCoreConstants
+public final class ConnectionCoreConstants
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private ConnectionCoreConstants()
+    {
+    }
+
     /** The plug-in ID */
     public static final String PLUGIN_ID = ConnectionCorePlugin.getDefault().getPluginProperties().getString(
         "Plugin_id" ); //$NON-NLS-1$

Modified: directory/studio/trunk/plugins/connection.ui/src/main/java/org/apache/directory/studio/connection/ui/ConnectionUIConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/connection.ui/src/main/java/org/apache/directory/studio/connection/ui/ConnectionUIConstants.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/connection.ui/src/main/java/org/apache/directory/studio/connection/ui/ConnectionUIConstants.java
(original)
+++ directory/studio/trunk/plugins/connection.ui/src/main/java/org/apache/directory/studio/connection/ui/ConnectionUIConstants.java
Mon Nov 22 22:11:21 2010
@@ -23,11 +23,21 @@ package org.apache.directory.studio.conn
 
 /**
  * Constants used in the connection UI plugin.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface ConnectionUIConstants
+public final class ConnectionUIConstants
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private ConnectionUIConstants()
+    {
+    }
+
     /** The plug-in ID */
     public static final String PLUGIN_ID = ConnectionUIPlugin.getDefault().getPluginProperties()
         .getString( "Plugin_id" ); //$NON-NLS-1$

Modified: directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonConstants.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonConstants.java
(original)
+++ directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/BrowserCommonConstants.java
Mon Nov 22 22:11:21 2010
@@ -19,9 +19,23 @@
  */
 package org.apache.directory.studio.ldapbrowser.common;
 
-
-public interface BrowserCommonConstants
+/**
+ * 
+ * Final reference -> class shouldn't be extended
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public final class BrowserCommonConstants
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private BrowserCommonConstants()
+    {
+    }
+
     /** The plug-in ID */
     public static final String PLUGIN_ID = BrowserCommonActivator.getDefault().getPluginProperties().getString(
         "Plugin_id" ); //$NON-NLS-1$

Modified: directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetTableMetadata.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetTableMetadata.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetTableMetadata.java
(original)
+++ directory/studio/trunk/plugins/ldapbrowser.common/src/main/java/org/apache/directory/studio/ldapbrowser/common/widgets/entryeditor/EntryEditorWidgetTableMetadata.java
Mon Nov 22 22:11:21 2010
@@ -22,14 +22,24 @@ package org.apache.directory.studio.ldap
 
 
 /**
- * The EntryEditorWidgetTableMetadata interface contains some constants used
+ * The EntryEditorWidgetTableMetadata class contains some constants used
  * by the entry editor widget.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface EntryEditorWidgetTableMetadata
+public final class EntryEditorWidgetTableMetadata
 {
 
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private EntryEditorWidgetTableMetadata()
+    {
+    }
+
     /** The Constant KEY_COLUMN_INDEX. */
     public static final int KEY_COLUMN_INDEX = 0;
 

Modified: directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreConstants.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreConstants.java
(original)
+++ directory/studio/trunk/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreConstants.java
Mon Nov 22 22:11:21 2010
@@ -27,11 +27,21 @@ import java.io.OutputStreamWriter;
 
 /**
  * This class contains all the constants used by the Browser Core Plugin
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface BrowserCoreConstants
+public final class BrowserCoreConstants
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private BrowserCoreConstants()
+    {
+    }
+
     /** The plug-in ID */
     public static final String PLUGIN_ID = BrowserCorePlugin.getDefault().getPluginProperties().getString(
"Plugin_id" );
 

Modified: directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
(original)
+++ directory/studio/trunk/plugins/ldapbrowser.ui/src/main/java/org/apache/directory/studio/ldapbrowser/ui/BrowserUIConstants.java
Mon Nov 22 22:11:21 2010
@@ -23,11 +23,21 @@ package org.apache.directory.studio.ldap
 
 /**
  * This class contains all the constants used by the Browser UI Plugin
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface BrowserUIConstants
+public final class BrowserUIConstants
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private BrowserUIConstants()
+    {
+    }
+
     /** The plug-in ID */
     public static final String PLUGIN_ID = BrowserUIPlugin.getDefault().getPluginProperties().getString(
"Plugin_id" ); //$NON-NLS-1$
 

Modified: directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersPluginConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersPluginConstants.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersPluginConstants.java
(original)
+++ directory/studio/trunk/plugins/ldapservers/src/main/java/org/apache/directory/studio/ldapservers/LdapServersPluginConstants.java
Mon Nov 22 22:11:21 2010
@@ -25,11 +25,21 @@ package org.apache.directory.studio.ldap
 
 /**
  * Constants used in the LDAP Servers plugin.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface LdapServersPluginConstants
+public final class LdapServersPluginConstants
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private LdapServersPluginConstants()
+    {
+    }
+
     /** The plug-in ID */
     public static final String PLUGIN_ID = LdapServersPlugin.getDefault().getPluginProperties().getString(
"Plugin_id" ); //$NON-NLS-1$
 

Modified: directory/studio/trunk/plugins/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java
(original)
+++ directory/studio/trunk/plugins/ldifeditor/src/main/java/org/apache/directory/studio/ldifeditor/LdifEditorConstants.java
Mon Nov 22 22:11:21 2010
@@ -22,11 +22,21 @@ package org.apache.directory.studio.ldif
 
 /**
  * Constants for the LDIF editor.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface LdifEditorConstants
+public final class LdifEditorConstants
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private LdifEditorConstants()
+    {
+    }
+
     /** The plug-in ID */
     public static final String PLUGIN_ID = LdifEditorActivator.getDefault().getPluginProperties().getString(
         "Plugin_id" ); //$NON-NLS-1$

Modified: directory/studio/trunk/plugins/ldifparser/src/main/java/org/apache/directory/studio/ldifparser/LdifParserConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/ldifparser/src/main/java/org/apache/directory/studio/ldifparser/LdifParserConstants.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/ldifparser/src/main/java/org/apache/directory/studio/ldifparser/LdifParserConstants.java
(original)
+++ directory/studio/trunk/plugins/ldifparser/src/main/java/org/apache/directory/studio/ldifparser/LdifParserConstants.java
Mon Nov 22 22:11:21 2010
@@ -23,12 +23,22 @@ package org.apache.directory.studio.ldif
 
 /**
  * Constants for the LDIF Parser.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface LdifParserConstants
+public final class LdifParserConstants
 {
 
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private LdifParserConstants()
+    {
+    }
+
     /** The system specific line separator. */
     public static final String LINE_SEPARATOR = System.getProperty( "line.separator" ); //$NON-NLS-1$
 

Modified: directory/studio/trunk/plugins/rcp/src/main/java/org/apache/directory/studio/PluginConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/rcp/src/main/java/org/apache/directory/studio/PluginConstants.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/rcp/src/main/java/org/apache/directory/studio/PluginConstants.java
(original)
+++ directory/studio/trunk/plugins/rcp/src/main/java/org/apache/directory/studio/PluginConstants.java
Mon Nov 22 22:11:21 2010
@@ -21,13 +21,23 @@ package org.apache.directory.studio;
 
 
 /**
- * This interface contains all the Constants used in the Plugin.
+ * This class contains all the Constants used in the Plugin.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface PluginConstants
+public final class PluginConstants
 {
 
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private PluginConstants()
+    {
+    }
+
     /** The Add Extension Action ID */
     public static final String ACTION_ADD_EXTENSION_ID = Activator.getDefault().getPluginProperties().getString(
         "Action_AddExtension_id" ); //$NON-NLS-1$

Modified: directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/PluginConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/PluginConstants.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/PluginConstants.java
(original)
+++ directory/studio/trunk/plugins/schemaeditor/src/main/java/org/apache/directory/studio/schemaeditor/PluginConstants.java
Mon Nov 22 22:11:21 2010
@@ -26,12 +26,22 @@ import org.apache.directory.studio.schem
 
 
 /**
- * This interface contains all the Constants used in the Plugin.
+ * This class contains all the Constants used in the Plugin.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface PluginConstants
+public final class PluginConstants
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private PluginConstants()
+    {
+    }
+
     /** The plug-in ID */
     public static final String PLUGIN_ID = Activator.getDefault().getPluginProperties().getString(
"Plugin_id" );
 

Modified: directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorsConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorsConstants.java?rev=1037910&r1=1037909&r2=1037910&view=diff
==============================================================================
--- directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorsConstants.java
(original)
+++ directory/studio/trunk/plugins/valueeditors/src/main/java/org/apache/directory/studio/valueeditors/ValueEditorsConstants.java
Mon Nov 22 22:11:21 2010
@@ -22,11 +22,21 @@ package org.apache.directory.studio.valu
 
 /**
  * Contains constants for the value editors.
+ * Final reference -> class shouldn't be extended
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public interface ValueEditorsConstants
+public final class ValueEditorsConstants
 {
+    /**
+     *  Ensures no construction of this class, also ensures there is no need for final keyword
above
+     *  (Implicit super constructor is not visible for default constructor),
+     *  but is still self documenting.
+     */
+    private ValueEditorsConstants()
+    {
+    }
+
     /** The plug-in ID */
     public static final String PLUGIN_ID = ValueEditorsActivator.getDefault().getPluginProperties().getString(
         "Plugin_id" ); //$NON-NLS-1$



Mime
View raw message