directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1806449 - in /directory/studio/branches/studio-value/plugins/ldapbrowser.core: plugin.properties plugin.xml src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreConstants.java
Date Mon, 28 Aug 2017 12:45:03 GMT
Author: elecharny
Date: Mon Aug 28 12:45:03 2017
New Revision: 1806449

URL: http://svn.apache.org/viewvc?rev=1806449&view=rev
Log:
o Get rid of Plugin_id in plugin.properties
o Removed the various ID defined in plugin.properties that are used only once

Modified:
    directory/studio/branches/studio-value/plugins/ldapbrowser.core/plugin.properties
    directory/studio/branches/studio-value/plugins/ldapbrowser.core/plugin.xml
    directory/studio/branches/studio-value/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreConstants.java

Modified: directory/studio/branches/studio-value/plugins/ldapbrowser.core/plugin.properties
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-value/plugins/ldapbrowser.core/plugin.properties?rev=1806449&r1=1806448&r2=1806449&view=diff
==============================================================================
--- directory/studio/branches/studio-value/plugins/ldapbrowser.core/plugin.properties (original)
+++ directory/studio/branches/studio-value/plugins/ldapbrowser.core/plugin.properties Mon
Aug 28 12:45:03 2017
@@ -14,11 +14,9 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-
-Plugin_id=org.apache.directory.studio.ldapbrowser.core
-
-ConnectionListener_BrowserConnectionListener_id=org.apache.directory.studio.ldapbrowser.core.model.impl.BrowserConnection
+#---------------------------------------------------------------------------------------------------
+# The I18n Strings
+#---------------------------------------------------------------------------------------------------
 ConnectionListener_BrowserConnectionListener_name=Browser Connection Listener
 ConnectionListener_BrowserConnectionListener_description=Opens/closes browser connection
when the underlying connection is opened/closed
 
-SearchPage_LdapSearch_id=org.apache.directory.studio.ldapbrowser.ui.search.SearchPage
\ No newline at end of file

Modified: directory/studio/branches/studio-value/plugins/ldapbrowser.core/plugin.xml
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-value/plugins/ldapbrowser.core/plugin.xml?rev=1806449&r1=1806448&r2=1806449&view=diff
==============================================================================
--- directory/studio/branches/studio-value/plugins/ldapbrowser.core/plugin.xml (original)
+++ directory/studio/branches/studio-value/plugins/ldapbrowser.core/plugin.xml Mon Aug 28
12:45:03 2017
@@ -19,18 +19,18 @@
 -->
 <?eclipse version="3.0"?>
 <plugin>
-   <extension
-         point="org.eclipse.core.runtime.preferences">
-      <initializer class="org.apache.directory.studio.ldapbrowser.core.BrowserCorePreferencesInitializer"/>
-   </extension>
-   <extension
-         point="org.apache.directory.studio.connectionlistener">
-      <connectionListener
-            class="org.apache.directory.studio.ldapbrowser.core.BrowserConnectionListener"
-            description="%ConnectionListener_BrowserConnectionListener_description"
-            id="%ConnectionListener_BrowserConnectionListener_id"
-            name="%ConnectionListener_BrowserConnectionListener_name">
-      </connectionListener>
-   </extension>
-
+  <extension
+      point="org.eclipse.core.runtime.preferences">
+    <initializer class="org.apache.directory.studio.ldapbrowser.core.BrowserCorePreferencesInitializer"/>
+  </extension>
+  
+  <extension
+      point="org.apache.directory.studio.connectionlistener">
+    <connectionListener
+      class="org.apache.directory.studio.ldapbrowser.core.BrowserConnectionListener"
+      description="%ConnectionListener_BrowserConnectionListener_description"
+      id="org.apache.directory.studio.ldapbrowser.core.model.impl.BrowserConnection"
+      name="%ConnectionListener_BrowserConnectionListener_name">
+    </connectionListener>
+  </extension>
 </plugin>

Modified: directory/studio/branches/studio-value/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-value/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreConstants.java?rev=1806449&r1=1806448&r2=1806449&view=diff
==============================================================================
--- directory/studio/branches/studio-value/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreConstants.java
(original)
+++ directory/studio/branches/studio-value/plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/BrowserCoreConstants.java
Mon Aug 28 12:45:03 2017
@@ -43,7 +43,7 @@ public final class BrowserCoreConstants
     }
 
     /** The plug-in ID */
-    public static final String PLUGIN_ID = BrowserCorePlugin.getDefault().getPluginProperties().getString(
"Plugin_id" ); //$NON-NLS-1$
+    public static final String PLUGIN_ID = BrowserCoreConstants.class.getPackage().getName();
 
     public static final String PREFERENCE_BINARY_SYNTAXES = "binarySyntaxes"; //$NON-NLS-1$
 
@@ -109,6 +109,5 @@ public final class BrowserCoreConstants
 
     public static final int SORT_ORDER_DESCENDING = 2;
 
-    public static final String LDAP_SEARCH_PAGE_ID = BrowserCorePlugin.getDefault().getPluginProperties()
-        .getString( "SearchPage_LdapSearch_id" ); //$NON-NLS-1$
+    public static final String LDAP_SEARCH_PAGE_ID = "org.apache.directory.studio.ldapbrowser.ui.search.SearchPage";
//$NON-NLS-1$
 }



Mime
View raw message