directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r531218 - in /directory/ldapstudio/trunk/ldapstudio-browser-common: plugin.xml src/main/java/org/apache/directory/ldapstudio/browser/common/BrowserCommonActivator.java
Date Sun, 22 Apr 2007 16:12:53 GMT
Author: seelmann
Date: Sun Apr 22 09:12:52 2007
New Revision: 531218

URL: http://svn.apache.org/viewvc?view=rev&rev=531218
Log:
Forgot filter templates at last refactorings

Modified:
    directory/ldapstudio/trunk/ldapstudio-browser-common/plugin.xml
    directory/ldapstudio/trunk/ldapstudio-browser-common/src/main/java/org/apache/directory/ldapstudio/browser/common/BrowserCommonActivator.java

Modified: directory/ldapstudio/trunk/ldapstudio-browser-common/plugin.xml
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-browser-common/plugin.xml?view=diff&rev=531218&r1=531217&r2=531218
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-browser-common/plugin.xml (original)
+++ directory/ldapstudio/trunk/ldapstudio-browser-common/plugin.xml Sun Apr 22 09:12:52 2007
@@ -260,6 +260,15 @@
           name="Open Search Result"/>
  </extension>
 
+   <extension
+         point="org.eclipse.ui.editors.templates">
+      <contextType
+            class="org.eclipse.jface.text.templates.TemplateContextType"
+            name="LDAP Filter"
+            id="org.apache.directory.ldapstudio.browser.ui.templates.filter"/>
+      <include file="resources/templates/templates.xml"/>
+   </extension>
+
  <extension
        point="org.eclipse.ui.contexts">
        <context

Modified: directory/ldapstudio/trunk/ldapstudio-browser-common/src/main/java/org/apache/directory/ldapstudio/browser/common/BrowserCommonActivator.java
URL: http://svn.apache.org/viewvc/directory/ldapstudio/trunk/ldapstudio-browser-common/src/main/java/org/apache/directory/ldapstudio/browser/common/BrowserCommonActivator.java?view=diff&rev=531218&r1=531217&r2=531218
==============================================================================
--- directory/ldapstudio/trunk/ldapstudio-browser-common/src/main/java/org/apache/directory/ldapstudio/browser/common/BrowserCommonActivator.java
(original)
+++ directory/ldapstudio/trunk/ldapstudio-browser-common/src/main/java/org/apache/directory/ldapstudio/browser/common/BrowserCommonActivator.java
Sun Apr 22 09:12:52 2007
@@ -111,10 +111,20 @@
 
         if ( filterTemplateStore == null )
         {
-
-            BrowserCorePlugin.getDefault().setAuthHandler( new BrowserCommonAuthHandler()
);
-            BrowserCorePlugin.getDefault().setReferralHandler( new BrowserCommonReferralHandler()
);
+            filterTemplateStore = new ContributionTemplateStore( getFilterTemplateContextTypeRegistry(),
+                getPreferenceStore(), "templates" );
+            try
+            {
+                filterTemplateStore.load();
+            }
+            catch ( IOException e )
+            {
+                e.printStackTrace();
+            }
         }
+
+        BrowserCorePlugin.getDefault().setAuthHandler( new BrowserCommonAuthHandler() );
+        BrowserCorePlugin.getDefault().setReferralHandler( new BrowserCommonReferralHandler()
);
     }
 
 



Mime
View raw message