directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r592091 [1/3] - in /directory/sandbox/felixk/studio-rcp: ./ META-INF/ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/directory/ src/main/java/org/apache/directory/studio/ src/main/java/or...
Date Mon, 05 Nov 2007 17:09:13 GMT
Author: felixk
Date: Mon Nov  5 09:08:59 2007
New Revision: 592091

URL: http://svn.apache.org/viewvc?rev=592091&view=rev
Log:
Initial studio maven-build

Added:
    directory/sandbox/felixk/studio-rcp/   (with props)
    directory/sandbox/felixk/studio-rcp/META-INF/
    directory/sandbox/felixk/studio-rcp/META-INF/MANIFEST.MF   (with props)
    directory/sandbox/felixk/studio-rcp/about.ini
    directory/sandbox/felixk/studio-rcp/plugin.properties   (with props)
    directory/sandbox/felixk/studio-rcp/plugin.xml   (with props)
    directory/sandbox/felixk/studio-rcp/plugin_customization.ini
    directory/sandbox/felixk/studio-rcp/pom.xml   (with props)
    directory/sandbox/felixk/studio-rcp/src/
    directory/sandbox/felixk/studio-rcp/src/main/
    directory/sandbox/felixk/studio-rcp/src/main/java/
    directory/sandbox/felixk/studio-rcp/src/main/java/org/
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Activator.java   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Application.java   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationActionBarAdvisor.java   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchAdvisor.java   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchWindowAdvisor.java   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Messages.java   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/AddExtensionAction.java   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/ManageConfigurationAction.java   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/OpenFileAction.java   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/PathEditorInput.java   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/ReportABugAction.java   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/UpdateAction.java   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/view/
    directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/view/ImageKeys.java   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/
    directory/sandbox/felixk/studio-rcp/src/main/resources/log4j.conf   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/org/
    directory/sandbox/felixk/studio-rcp/src/main/resources/org/apache/
    directory/sandbox/felixk/studio-rcp/src/main/resources/org/apache/directory/
    directory/sandbox/felixk/studio-rcp/src/main/resources/org/apache/directory/studio/
    directory/sandbox/felixk/studio-rcp/src/main/resources/org/apache/directory/studio/messages.properties   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/product_lg.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/about.png   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/bug-report.png   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/intro.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/linux/
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/linux/studio.xpm
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/macosx/
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/macosx/studio.icns   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/manage-configuration.png   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/preferences.png   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/progress.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/search-updates.png   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/window/
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/window/studio_128x128.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/window/studio_16x16.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/window/studio_32x32.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/window/studio_48x48.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/window/studio_64x64.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/windows/
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/icons/windows/studio.ico   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro.xml   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/background.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_aci-editor.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_aci-editor_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_apache-directory-server.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_apache-directory-server_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_apache-directory-studio.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_apache-directory-studio_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_apacheds-configuration.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_apacheds-configuration_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_community.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_community_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_developer-guide.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_developers-guide.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_developers-guide_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_ldap-browser.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_ldap-browser_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_mailing-lists.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_mailing-lists_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_new-updates.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_new-updates_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_schema-editor.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_schema-editor_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_users-guide.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_users-guide_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_workbench-basics.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/icon_workbench-basics_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/overview.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/overview_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/overview_selected.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/web_resources.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/web_resources_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/web_resources_selected.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/whats_new.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/whats_new_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/whats_new_selected.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/workbench.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/contentpages/workbench_hover.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/rootpage/
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/rootpage/overview_hover.png   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/rootpage/webresources_hover.png   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/rootpage/welcomebckgrd.png   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/rootpage/whatsnew_hover.png   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/rootpage/workbench_hover.png   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/graphics/transparent_pixel.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/overview.xhtml   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/root.xhtml   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/styles/
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/styles/content-ie.css   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/styles/content.css   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/styles/root-ie.css   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/styles/root.css   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/webresources.xhtml   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/intro/whatsnew.xhtml   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/pictures/
    directory/sandbox/felixk/studio-rcp/src/main/resources/resources/pictures/product_lg.gif   (with props)
    directory/sandbox/felixk/studio-rcp/src/main/resources/splash.bmp   (with props)
    directory/sandbox/felixk/studio-rcp/studio.png   (with props)
    directory/sandbox/felixk/studio-rcp/studio.product

Propchange: directory/sandbox/felixk/studio-rcp/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Nov  5 09:08:59 2007
@@ -0,0 +1,3 @@
+.settings
+lib
+target

Added: directory/sandbox/felixk/studio-rcp/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/META-INF/MANIFEST.MF?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/META-INF/MANIFEST.MF (added)
+++ directory/sandbox/felixk/studio-rcp/META-INF/MANIFEST.MF Mon Nov  5 09:08:59 2007
@@ -0,0 +1,16 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Apache Directory Studio RCP
+Bundle-SymbolicName: org.apache.directory.studio;singleton:=true
+Bundle-Version: 1.0.1
+Bundle-Activator: org.apache.directory.studio.Activator
+Bundle-Vendor: Apache Software Foundation
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.core.runtime,
+ org.eclipse.update.core,
+ org.eclipse.update.ui,
+ org.eclipse.ui,
+ org.eclipse.ui.intro
+Eclipse-LazyStart: true
+Bundle-ClassPath: .,
+ lib/nlog4j-1.2.25.jar

Propchange: directory/sandbox/felixk/studio-rcp/META-INF/MANIFEST.MF
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-rcp/about.ini
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/about.ini?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/about.ini (added)
+++ directory/sandbox/felixk/studio-rcp/about.ini Mon Nov  5 09:08:59 2007
@@ -0,0 +1 @@
+featureImage=studio.png
\ No newline at end of file

Added: directory/sandbox/felixk/studio-rcp/plugin.properties
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/plugin.properties?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/plugin.properties (added)
+++ directory/sandbox/felixk/studio-rcp/plugin.properties Mon Nov  5 09:08:59 2007
@@ -0,0 +1,26 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+project.name=Apache Directory Studio RCP Application
+project.version=1.0.1
+project.id=org.apache.directory.studio
+
+aboutText=Apache Directory Studio\n\n\
+Version: 1.0.1\n\n\
+(c) Copyright Apache Software Foundation - 2006, 2007. All right reserved.\n\
+Visit http://directory.apache.org/studio\n\n\
+This product is licensed under the terms of the Apache Software License 2.0.\n\n\
+Some icons from FAMFAMFAM http://www.famfamfam.com/lab/icons/silk

Propchange: directory/sandbox/felixk/studio-rcp/plugin.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-rcp/plugin.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/plugin.xml?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/plugin.xml (added)
+++ directory/sandbox/felixk/studio-rcp/plugin.xml Mon Nov  5 09:08:59 2007
@@ -0,0 +1,115 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing,
+  software distributed under the License is distributed on an
+  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  KIND, either express or implied.  See the License for the
+  specific language governing permissions and limitations
+  under the License.
+-->
+<plugin>
+
+   <extension
+         id="application"
+         point="org.eclipse.core.runtime.applications">
+      <application>
+         <run
+               class="org.apache.directory.studio.Application">
+         </run>
+      </application>
+   </extension>
+   <extension
+         point="org.eclipse.ui.bindings">
+      <key
+            commandId="org.eclipse.ui.file.exit"
+            schemeId="org.eclipse.ui.defaultAcceleratorConfiguration"
+            sequence="CTRL+Q">
+      </key>
+   </extension>
+   <extension
+         id="product"
+         point="org.eclipse.core.runtime.products">
+      <product
+            application="org.apache.directory.studio.application"
+            name="Apache Directory Studio">
+         <property
+               name="aboutText"
+               value="%aboutText"/>
+         <property
+               name="aboutImage"
+               value="resources/pictures/product_lg.gif"/>
+         <property
+               name="preferenceCustomization"
+               value="plugin_customization.ini"/>
+         <property
+               name="windowImages"
+               value="resources/icons/window/studio_16x16.gif,resources/icons/window/studio_32x32.gif,resources/icons/window/studio_48x48.gif,resources/icons/window/studio_64x64.gif,resources/icons/window/studio_128x128.gif"/>
+         <property
+               name="appName"
+               value="Apache Directory Studio">
+         </property>
+         <property
+               name="startupForegroundColor"
+               value="FFFFFF">
+         </property>
+         <property
+               name="startupMessageRect"
+               value="10,237,435,20">
+         </property>
+         <property
+               name="startupProgressRect"
+               value="0,280,455,15">
+         </property>
+      </product>
+   </extension>
+   <extension
+         point="org.eclipse.ui.views">
+	  <view
+            name="Progress"
+            icon="resources/icons/progress.gif"
+            category="org.eclipse.ui"
+            class="org.eclipse.ui.ExtensionFactory:progressView"
+            id="org.eclipse.ui.views.ProgressView">
+         </view>
+   </extension>
+   
+      <extension
+         point="org.eclipse.ui.intro">
+      <intro
+            class="org.eclipse.ui.intro.config.CustomizableIntroPart"
+            icon="resources/icons/intro.gif"
+            id="studio.intro">
+      </intro>
+      <introProductBinding
+            introId="studio.intro"
+            productId="org.apache.directory.studio.product">
+      </introProductBinding>
+   </extension>
+   <extension
+         point="org.eclipse.ui.intro.config">
+      <config
+            introId="studio.intro"
+            content="resources/intro.xml"
+            id="ApacheDirectoryStudio.configId">
+         <presentation
+               home-page-id="root">
+            <implementation
+                  kind="html"
+                  os="win32,linux,macosx">
+            </implementation>
+         </presentation>
+      </config>
+   </extension>
+
+</plugin>

Propchange: directory/sandbox/felixk/studio-rcp/plugin.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-rcp/plugin_customization.ini
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/plugin_customization.ini?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/plugin_customization.ini (added)
+++ directory/sandbox/felixk/studio-rcp/plugin_customization.ini Mon Nov  5 09:08:59 2007
@@ -0,0 +1,3 @@
+org.eclipse.ui/SHOW_TRADITIONAL_STYLE_TABS=false
+org.eclipse.ui/DOCK_PERSPECTIVE_BAR=right
+org.eclipse.ui/SHOW_PROGRESS_ON_STARTUP = true
\ No newline at end of file

Added: directory/sandbox/felixk/studio-rcp/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/pom.xml?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/pom.xml (added)
+++ directory/sandbox/felixk/studio-rcp/pom.xml Mon Nov  5 09:08:59 2007
@@ -0,0 +1,178 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<!--
+    @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+    @version $Id: pom.xml 353 2007-10-28 14:59:35Z felix $
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.directory.studio</groupId>
+        <artifactId>parent</artifactId>
+        <version>1.0.2-SNAPSHOT</version>
+    </parent>
+    <artifactId>${groupId}.rcp</artifactId>
+    <name>Apache Directory Studio RCP</name>
+    <packaging>jar</packaging>
+
+    <description></description>
+
+    <!-- Set path for local repository -->
+    <properties>
+        <local-repo>${project.basedir}/../local-repository</local-repo>
+    </properties>
+
+    <profiles>
+        <profile>
+            <id>prepare-for-eclipse</id>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-dependency-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>prepare-for-eclipse</id>
+                                <phase>install</phase>
+                                <goals>
+                                    <goal>copy</goal>
+                                </goals>
+                                <configuration>
+                                    <overWrite>true</overWrite>
+                                    <outputDirectory>lib</outputDirectory>
+                                    <artifactItems>
+                                        <artifactItem>
+                                            <groupId>org.slf4j</groupId>
+                                            <artifactId>nlog4j</artifactId>
+                                        </artifactItem>
+                                    </artifactItems>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+
+    <build>
+        <resources>
+            <resource>
+                <directory>.</directory>
+                <includes>
+                    <include>plugin.properties</include>
+                    <include>plugin.xml</include>
+                    <include>about.ini</include>
+                    <include>studio.png</include>
+                    <include>plugin_customization.ini</include>
+                </includes>
+            </resource>
+            <resource>
+                <directory>src/main/resources</directory>
+            </resource>
+        </resources>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <configuration>
+                    <archive>
+                        <manifestFile>META-INF/MANIFEST.MF</manifestFile>
+                        <addMavenDescriptor>false</addMavenDescriptor>
+                    </archive>
+                </configuration>
+            </plugin>
+
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-dependency-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>copy</id>
+                        <phase>compile</phase>
+                        <goals>
+                            <goal>copy</goal>
+                        </goals>
+                        <configuration>
+                            <overWrite>true</overWrite>
+                            <outputDirectory>target/classes/lib</outputDirectory>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>org.slf4j</groupId>
+                                    <artifactId>nlog4j</artifactId>
+                                </artifactItem>
+                            </artifactItems>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.eclipse</groupId>
+            <artifactId>${swt.platformrelated.artifactId}</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>nlog4j</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.eclipse</groupId>
+            <artifactId>org.eclipse.jface</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.eclipse</groupId>
+            <artifactId>org.eclipse.ui</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.eclipse</groupId>
+            <artifactId>org.eclipse.ui.workbench</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.eclipse</groupId>
+            <artifactId>org.eclipse.core.runtime</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.eclipse</groupId>
+            <artifactId>org.eclipse.core.commands</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.eclipse</groupId>
+            <artifactId>org.eclipse.core.jobs</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.eclipse</groupId>
+            <artifactId>org.eclipse.osgi</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.eclipse</groupId>
+            <artifactId>org.eclipse.update.core</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.eclipse</groupId>
+            <artifactId>org.eclipse.equinox.common</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.eclipse</groupId>
+            <artifactId>org.eclipse.update.ui</artifactId>
+        </dependency>
+    </dependencies>
+</project>

Propchange: directory/sandbox/felixk/studio-rcp/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Activator.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Activator.java?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Activator.java (added)
+++ directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Activator.java Mon Nov  5 09:08:59 2007
@@ -0,0 +1,92 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+
+package org.apache.directory.studio;
+
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+
+/**
+ * The main plugin class to be used in the desktop.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class Activator extends AbstractUIPlugin
+{
+
+    //The shared instance.
+    private static Activator plugin;
+
+
+    /**
+     * The constructor.
+     */
+    public Activator()
+    {
+        plugin = this;
+    }
+
+
+    /**
+     * This method is called upon plug-in activation
+     */
+    public void start( BundleContext context ) throws Exception
+    {
+        super.start( context );
+    }
+
+
+    /**
+     * This method is called when the plug-in is stopped
+     */
+    public void stop( BundleContext context ) throws Exception
+    {
+        plugin = null;
+        super.stop( context );
+    }
+
+
+    /**
+     * Returns the shared instance.
+     *
+     * @return the shared instance.
+     */
+    public static Activator getDefault()
+    {
+        return plugin;
+    }
+
+
+    /**
+     * Returns an image descriptor for the image file at the given
+     * plug-in relative path.
+     *
+     * @param path the path
+     * @return the image descriptor
+     */
+    public static ImageDescriptor getImageDescriptor( String path )
+    {
+        return AbstractUIPlugin.imageDescriptorFromPlugin( Application.PLUGIN_ID, path );
+    }
+}

Propchange: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Activator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Application.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Application.java?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Application.java (added)
+++ directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Application.java Mon Nov  5 09:08:59 2007
@@ -0,0 +1,72 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+
+package org.apache.directory.studio;
+
+
+import org.apache.log4j.Logger;
+import org.apache.log4j.PropertyConfigurator;
+import org.eclipse.core.runtime.IPlatformRunnable;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+
+
+/**
+ * This class controls all aspects of the application's execution
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class Application implements IPlatformRunnable
+{
+
+    public static final String PLUGIN_ID = "org.apache.directory.studio"; //$NON-NLS-1$
+    private static Logger logger = Logger.getLogger( Application.class );
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.core.runtime.IPlatformRunnable#run(java.lang.Object)
+     */
+    public Object run( Object args ) throws Exception
+    {
+        //Set up a simple configuration that logs on the console.
+        PropertyConfigurator.configure( Platform.getBundle( Application.PLUGIN_ID ).getResource( "log4j.conf" ) ); //$NON-NLS-1$
+        logger.info( "Entering Apache Directory Studio." ); //$NON-NLS-1$
+        Display display = PlatformUI.createDisplay();
+        
+        try
+        {
+            int returnCode = PlatformUI.createAndRunWorkbench( display, new ApplicationWorkbenchAdvisor() );
+        
+            if ( returnCode == PlatformUI.RETURN_RESTART )
+            {
+                return IPlatformRunnable.EXIT_RESTART;
+            }
+            
+            return IPlatformRunnable.EXIT_OK;
+        }
+        finally
+        {
+            display.dispose();
+            logger.info( "Exiting Apache Directory Studio." ); //$NON-NLS-1$
+        }
+    }
+}

Propchange: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Application.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationActionBarAdvisor.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationActionBarAdvisor.java?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationActionBarAdvisor.java (added)
+++ directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationActionBarAdvisor.java Mon Nov  5 09:08:59 2007
@@ -0,0 +1,393 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+
+package org.apache.directory.studio;
+
+
+import org.apache.directory.studio.actions.ManageConfigurationAction;
+import org.apache.directory.studio.actions.OpenFileAction;
+import org.apache.directory.studio.actions.ReportABugAction;
+import org.apache.directory.studio.actions.UpdateAction;
+import org.apache.directory.studio.view.ImageKeys;
+import org.eclipse.jface.action.GroupMarker;
+import org.eclipse.jface.action.IContributionItem;
+import org.eclipse.jface.action.ICoolBarManager;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.action.IToolBarManager;
+import org.eclipse.jface.action.MenuManager;
+import org.eclipse.jface.action.Separator;
+import org.eclipse.jface.action.ToolBarContributionItem;
+import org.eclipse.jface.action.ToolBarManager;
+import org.eclipse.swt.SWT;
+import org.eclipse.ui.IWorkbenchActionConstants;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.actions.ActionFactory;
+import org.eclipse.ui.actions.ContributionItemFactory;
+import org.eclipse.ui.actions.NewWizardDropDownAction;
+import org.eclipse.ui.actions.ActionFactory.IWorkbenchAction;
+import org.eclipse.ui.application.ActionBarAdvisor;
+import org.eclipse.ui.application.IActionBarConfigurer;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+
+
+/**
+ * An action bar advisor is responsible for creating, adding, and disposing of the
+ * actions added to a workbench window. Each window will be populated with
+ * new actions.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class ApplicationActionBarAdvisor extends ActionBarAdvisor
+{
+    private OpenFileAction openFileAction;
+    private IWorkbenchAction closeAction;
+    private IWorkbenchAction closeAllAction;
+    private IWorkbenchAction saveAction;
+    private IWorkbenchAction saveAsAction;
+    private IWorkbenchAction saveAllAction;
+    private IWorkbenchAction printAction;
+    private IWorkbenchAction refreshAction;
+    private IWorkbenchAction renameAction;
+    private IWorkbenchAction moveAction;
+    private IWorkbenchAction exitAction;
+    private IWorkbenchAction aboutAction;
+    private IWorkbenchAction preferencesAction;
+    private IWorkbenchAction helpAction;
+    private IWorkbenchAction dynamicHelpAction;
+    private UpdateAction updateAction;
+    private ManageConfigurationAction manageConfigurationAction;
+    private IWorkbenchAction newAction;
+    private IWorkbenchAction newDropDownAction;
+    private IWorkbenchAction importAction;
+    private IWorkbenchAction exportAction;
+    private IWorkbenchAction propertiesAction;
+    private IWorkbenchAction closePerspectiveAction;
+    private IWorkbenchAction closeAllPerspectivesAction;
+    private IWorkbenchAction undoAction;
+    private IWorkbenchAction redoAction;
+    private IWorkbenchAction cutAction;
+    private IWorkbenchAction copyAction;
+    private IWorkbenchAction pasteAction;
+    private IWorkbenchAction deleteAction;
+    private IWorkbenchAction selectAllAction;
+    private IWorkbenchAction findAction;
+    private IContributionItem perspectivesList;
+    private IContributionItem viewsList;
+    private IContributionItem reopenEditorsList;
+    private ReportABugAction reportABug;
+    private IWorkbenchAction backwardHistoryAction;
+    private IWorkbenchAction forwardHistoryAction;
+    private IWorkbenchAction nextAction;
+    private IWorkbenchAction previousAction;
+    private IWorkbenchAction introAction;
+
+
+    /**
+     * Creates a new instance of ApplicationActionBarAdvisor.
+     *
+     * @param configurer
+     *          the action bar configurer
+     */
+    public ApplicationActionBarAdvisor( IActionBarConfigurer configurer )
+    {
+        super( configurer );
+    }
+
+
+    /**
+     * Creates the actions and registers them.
+     * Registering is needed to ensure that key bindings work.
+     * The corresponding commands keybindings are defined in the plugin.xml file.
+     * Registering also provides automatic disposal of the actions when
+     * the window is closed.
+     */
+    protected void makeActions( final IWorkbenchWindow window )
+    {
+        // Creates the actions and registers them.
+        // Registering is needed to ensure that key bindings work.
+        // The corresponding commands keybindings are defined in the plugin.xml file.
+        // Registering also provides automatic disposal of the actions when
+        // the window is closed.
+
+        newAction = ActionFactory.NEW.create( window );
+        register( newAction );
+        newAction.setText( "New..." );
+
+        newDropDownAction = new NewWizardDropDownAction( window );
+        //        new NavigationHistoryAction( window, false );
+
+        openFileAction = new OpenFileAction( window );
+        register( openFileAction );
+
+        closeAction = ActionFactory.CLOSE.create( window );
+        register( closeAction );
+
+        closeAllAction = ActionFactory.CLOSE_ALL.create( window );
+        register( closeAllAction );
+
+        saveAction = ActionFactory.SAVE.create( window );
+        register( saveAction );
+
+        saveAsAction = ActionFactory.SAVE_AS.create( window );
+        register( saveAsAction );
+
+        saveAllAction = ActionFactory.SAVE_ALL.create( window );
+        register( saveAllAction );
+
+        printAction = ActionFactory.PRINT.create( window );
+        register( printAction );
+
+        moveAction = ActionFactory.MOVE.create( window );
+        register( moveAction );
+
+        renameAction = ActionFactory.RENAME.create( window );
+        register( renameAction );
+
+        refreshAction = ActionFactory.REFRESH.create( window );
+        register( refreshAction );
+
+        importAction = ActionFactory.IMPORT.create( window );
+        register( importAction );
+
+        exportAction = ActionFactory.EXPORT.create( window );
+        register( exportAction );
+
+        propertiesAction = ActionFactory.PROPERTIES.create( window );
+        register( propertiesAction );
+
+        exitAction = ActionFactory.QUIT.create( window );
+        register( exitAction );
+
+        undoAction = ActionFactory.UNDO.create( window );
+        register( undoAction );
+
+        redoAction = ActionFactory.REDO.create( window );
+        register( redoAction );
+
+        cutAction = ActionFactory.CUT.create( window );
+        register( cutAction );
+
+        copyAction = ActionFactory.COPY.create( window );
+        register( copyAction );
+
+        pasteAction = ActionFactory.PASTE.create( window );
+        register( pasteAction );
+
+        deleteAction = ActionFactory.DELETE.create( window );
+        register( deleteAction );
+
+        selectAllAction = ActionFactory.SELECT_ALL.create( window );
+        register( selectAllAction );
+
+        findAction = ActionFactory.FIND.create( window );
+        register( findAction );
+
+        closePerspectiveAction = ActionFactory.CLOSE_PERSPECTIVE.create( window );
+        register( closePerspectiveAction );
+
+        closeAllPerspectivesAction = ActionFactory.CLOSE_ALL_PERSPECTIVES.create( window );
+        register( closeAllPerspectivesAction );
+
+        aboutAction = ActionFactory.ABOUT.create( window );
+        aboutAction.setImageDescriptor( AbstractUIPlugin.imageDescriptorFromPlugin( Application.PLUGIN_ID,
+            ImageKeys.ABOUT ) );
+        register( aboutAction );
+
+        preferencesAction = ActionFactory.PREFERENCES.create( window );
+        preferencesAction.setImageDescriptor( AbstractUIPlugin.imageDescriptorFromPlugin( Application.PLUGIN_ID,
+            ImageKeys.SHOW_PREFERENCES ) );
+        register( preferencesAction );
+
+        updateAction = new UpdateAction( window );
+        updateAction.setImageDescriptor( AbstractUIPlugin.imageDescriptorFromPlugin( Application.PLUGIN_ID,
+            ImageKeys.SEARCH_UPDATES ) );
+        register( updateAction );
+
+        manageConfigurationAction = new ManageConfigurationAction( window );
+        manageConfigurationAction.setImageDescriptor( AbstractUIPlugin.imageDescriptorFromPlugin(
+            Application.PLUGIN_ID, ImageKeys.MANAGE_CONFIGURATION ) );
+        register( manageConfigurationAction );
+
+        helpAction = ActionFactory.HELP_CONTENTS.create( window );
+        register( helpAction );
+
+        dynamicHelpAction = ActionFactory.DYNAMIC_HELP.create( window );
+        register( dynamicHelpAction );
+
+        viewsList = ContributionItemFactory.VIEWS_SHORTLIST.create( window );
+        perspectivesList = ContributionItemFactory.PERSPECTIVES_SHORTLIST.create( window );
+        reopenEditorsList = ContributionItemFactory.REOPEN_EDITORS.create( window );
+
+        reportABug = new ReportABugAction( window );
+        reportABug.setImageDescriptor( AbstractUIPlugin.imageDescriptorFromPlugin( Application.PLUGIN_ID,
+            ImageKeys.REPORT_BUG ) );
+        register( reportABug );
+
+        forwardHistoryAction = ActionFactory.FORWARD_HISTORY.create( window );
+        register( forwardHistoryAction );
+
+        backwardHistoryAction = ActionFactory.BACKWARD_HISTORY.create( window );
+        register( backwardHistoryAction );
+
+        nextAction = ActionFactory.NEXT.create( window );
+        register( nextAction );
+
+        previousAction = ActionFactory.PREVIOUS.create( window );
+        register( previousAction );
+
+        introAction = ActionFactory.INTRO.create( window );
+        introAction.setImageDescriptor( AbstractUIPlugin.imageDescriptorFromPlugin( Application.PLUGIN_ID,
+            ImageKeys.INTRO ) );
+        register( introAction );
+
+    }
+
+
+    /**
+     * Populates the Menu Bar
+     */
+    protected void fillMenuBar( IMenuManager menuBar )
+    {
+        MenuManager fileMenu = new MenuManager( "&File", IWorkbenchActionConstants.M_FILE ); //$NON-NLS-1$
+        MenuManager editMenu = new MenuManager( "&Edit", IWorkbenchActionConstants.M_EDIT ); //$NON-NLS-1$
+        MenuManager navigateMenu = new MenuManager( "&Navigate", IWorkbenchActionConstants.M_NAVIGATE ); //$NON-NLS-1$
+        MenuManager windowMenu = new MenuManager( "&Window", IWorkbenchActionConstants.M_WINDOW ); //$NON-NLS-1$
+        MenuManager helpMenu = new MenuManager( "&Help", IWorkbenchActionConstants.M_HELP ); //$NON-NLS-1$
+
+        // Adding menus
+        menuBar.add( fileMenu );
+        menuBar.add( editMenu );
+        menuBar.add( navigateMenu );
+        // Add a group marker indicating where action set menus will appear.
+        menuBar.add( new GroupMarker( IWorkbenchActionConstants.MB_ADDITIONS ) );
+        menuBar.add( windowMenu );
+        menuBar.add( helpMenu );
+
+        // Populating File Menu
+        fileMenu.add( newAction );
+        fileMenu.add( new GroupMarker( IWorkbenchActionConstants.NEW_EXT ) );
+        fileMenu.add( openFileAction );
+        fileMenu.add( new GroupMarker( IWorkbenchActionConstants.OPEN_EXT ) );
+        fileMenu.add( new Separator() );
+        fileMenu.add( closeAction );
+        fileMenu.add( closeAllAction );
+        fileMenu.add( new GroupMarker( IWorkbenchActionConstants.CLOSE_EXT ) );
+        fileMenu.add( new Separator() );
+        fileMenu.add( saveAction );
+        fileMenu.add( saveAsAction );
+        fileMenu.add( saveAllAction );
+        fileMenu.add( new GroupMarker( IWorkbenchActionConstants.SAVE_EXT ) );
+        fileMenu.add( new Separator() );
+        fileMenu.add( refreshAction );
+        fileMenu.add( new Separator() );
+        fileMenu.add( printAction );
+        fileMenu.add( new GroupMarker( IWorkbenchActionConstants.PRINT_EXT ) );
+        fileMenu.add( new Separator() );
+        fileMenu.add( importAction );
+        fileMenu.add( exportAction );
+        fileMenu.add( new GroupMarker( IWorkbenchActionConstants.IMPORT_EXT ) );
+        fileMenu.add( new Separator() );
+        fileMenu.add( propertiesAction );
+        fileMenu.add( reopenEditorsList );
+        fileMenu.add( new GroupMarker( IWorkbenchActionConstants.MRU ) );
+        fileMenu.add( new Separator() );
+        fileMenu.add( exitAction );
+
+        // Populating Edit Menu
+        editMenu.add( undoAction );
+        editMenu.add( redoAction );
+        editMenu.add( new Separator() );
+        editMenu.add( cutAction );
+        editMenu.add( copyAction );
+        editMenu.add( pasteAction );
+        editMenu.add( new Separator() );
+        editMenu.add( deleteAction );
+        editMenu.add( selectAllAction );
+        editMenu.add( new Separator() );
+        editMenu.add( moveAction );
+        editMenu.add( renameAction );
+        editMenu.add( new Separator() );
+        editMenu.add( findAction );
+
+        // Populating Navigate Menu
+        navigateMenu.add( nextAction );
+        navigateMenu.add( previousAction );
+        navigateMenu.add( new Separator( IWorkbenchActionConstants.MB_ADDITIONS ) );
+        navigateMenu.add( new GroupMarker( IWorkbenchActionConstants.NAV_END ) );
+        navigateMenu.add( new Separator() );
+        navigateMenu.add( backwardHistoryAction );
+        navigateMenu.add( forwardHistoryAction );
+
+        // Window 
+        MenuManager perspectiveMenu = new MenuManager( "Open Perspective", "openPerspective" );
+        perspectiveMenu.add( perspectivesList );
+        windowMenu.add( perspectiveMenu );
+        MenuManager viewMenu = new MenuManager( "Show View" );
+        viewMenu.add( viewsList );
+        windowMenu.add( viewMenu );
+        windowMenu.add( new Separator() );
+        windowMenu.add( closePerspectiveAction );
+        windowMenu.add( closeAllPerspectivesAction );
+        windowMenu.add( new Separator() );
+        windowMenu.add( preferencesAction );
+
+        // Help
+        helpMenu.add( introAction );
+        helpMenu.add( new Separator() );
+        helpMenu.add( helpAction );
+        helpMenu.add( dynamicHelpAction );
+        helpMenu.add( reportABug );
+        helpMenu.add( new Separator() );
+        MenuManager softwareUpdates = new MenuManager( Messages
+            .getString( "ApplicationActionBarAdvisor.Software_Updates" ), "softwareUpdates" ); //$NON-NLS-1$ //$NON-NLS-2$
+        softwareUpdates.add( updateAction );
+        softwareUpdates.add( manageConfigurationAction );
+        helpMenu.add( softwareUpdates );
+        helpMenu.add( new Separator() );
+        helpMenu.add( aboutAction );
+    }
+
+
+    /**
+     * Populates the Cool Bar
+     */
+    protected void fillCoolBar( ICoolBarManager coolBar )
+    {
+        // add main tool bar
+        IToolBarManager toolbar = new ToolBarManager( SWT.FLAT | SWT.RIGHT );
+        toolbar.add( newDropDownAction );
+        toolbar.add( preferencesAction );
+        coolBar.add( new ToolBarContributionItem( toolbar, Application.PLUGIN_ID + ".toolbar" ) ); //$NON-NLS-1$
+
+        // add marker for additions
+        coolBar.add( new GroupMarker( IWorkbenchActionConstants.MB_ADDITIONS ) );
+
+        // add navigation tool bar
+        // some actions are added from org.eclipse.ui.editor to the HISTORY_GROUP
+        IToolBarManager navToolBar = new ToolBarManager( SWT.FLAT | SWT.RIGHT );
+        navToolBar.add( new Separator( IWorkbenchActionConstants.HISTORY_GROUP ) );
+        navToolBar.add( backwardHistoryAction );
+        navToolBar.add( forwardHistoryAction );
+        coolBar.add( new ToolBarContributionItem( navToolBar, IWorkbenchActionConstants.TOOLBAR_NAVIGATE ) );
+
+    }
+
+}

Propchange: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationActionBarAdvisor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchAdvisor.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchAdvisor.java?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchAdvisor.java (added)
+++ directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchAdvisor.java Mon Nov  5 09:08:59 2007
@@ -0,0 +1,126 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+
+package org.apache.directory.studio;
+
+
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.TrayDialog;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.jface.resource.JFaceResources;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.application.IWorkbenchConfigurer;
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
+import org.eclipse.ui.application.WorkbenchAdvisor;
+import org.eclipse.ui.application.WorkbenchWindowAdvisor;
+
+
+/**
+ * This workbench advisor creates the window advisor, and specifies
+ * the perspective id for the initial window.<br />
+ * <br />
+ * - initialize  		Called first to perform any setup such as parsing the command 
+ * line, registering adapters, declaring images, etc..  	IWorkbenchConfigurer<br />
+ * - preStartup 		Called after initialization but before the first window is opened. 
+ * May be used to set options affecting which editors and views are initially opened. <br />	 
+ * - postStartup 		Called after all windows have been opened or restored, but before 
+ * the event loop starts. It can be used to start automatic processes and to open tips or 
+ * other windows.<br /> 	 
+ * - preShutdown 		Called after the event loop has terminated but before any windows 
+ * have been closed. 	 <br />
+ * - postShutdown 	Called after all windows are closed during Workbench shutdown. 
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class ApplicationWorkbenchAdvisor extends WorkbenchAdvisor
+{
+    // The initial perspective that will be shwown in the workbench
+    private static final String PERSPECTIVE_ID = Application.PLUGIN_ID + ".perspective"; //$NON-NLS-1$
+
+
+    /**
+     * Performs arbitrary initialization before the workbench starts running.<br />
+     * <br />
+     * This method is called during workbench initialization prior to any windows 
+     * being opened. Clients must not call this method directly (although super calls 
+     * are okay). The default implementation does nothing. Subclasses may override. 
+     * Typical clients will use the configurer passed in to tweak the workbench. If 
+     * further tweaking is required in the future, the configurer may be obtained using 
+     * getWorkbenchConfigurer
+     */
+    public void initialize( IWorkbenchConfigurer configurer )
+    {
+        //enable the save/restore windows size & position feature
+        configurer.setSaveAndRestore( true );
+
+        //enable help button in dialogs 
+        TrayDialog.setDialogHelpAvailable( true );
+        ImageRegistry reg = JFaceResources.getImageRegistry();
+        ImageDescriptor helpImage = PlatformUI.getWorkbench().getSharedImages().getImageDescriptor(
+            "IMGS_LCL_LINKTO_HELP" );
+        reg.put( Dialog.DLG_IMG_HELP, helpImage );
+    }
+
+
+    /**
+     * Creates a new workbench window advisor for configuring a new workbench 
+     * window via the given workbench window configurer. Clients should override 
+     * to provide their own window configurer. This method replaces all the other 
+     * window and action bar lifecycle methods on the workbench advisor.
+     */
+    public WorkbenchWindowAdvisor createWorkbenchWindowAdvisor( IWorkbenchWindowConfigurer configurer )
+    {
+        return new ApplicationWorkbenchWindowAdvisor( configurer );
+    }
+
+
+    /**
+     * Returns the id of the perspective to use for the initial workbench window, 
+     * or null if no initial perspective should be shown in the initial workbench 
+     * window.<br />
+     * <br />
+     * This method is called during startup when the workbench is creating the first 
+     * new window. Subclasses must implement.<br />
+     * <br />
+     * If the IWorkbenchPreferenceConstants.DEFAULT_PERSPECTIVE_ID preference is 
+     * specified, it supercedes the perspective specified here. 
+     */
+    public String getInitialWindowPerspectiveId()
+    {
+        return "org.apache.directory.studio.ldapbrowser.ui.perspective.BrowserPerspective";
+    }
+
+
+    /**
+     * Performs arbitrary finalization before the workbench is about to shut down.<br />
+     * <br />
+     * This method is called immediately prior to workbench shutdown before any 
+     * windows have been closed. Clients must not call this method directly (although 
+     * super calls are okay). The default implementation returns true. Subclasses may 
+     * override. 
+     */
+    public boolean preShutdown()
+    {
+        return true;
+    }
+
+}

Propchange: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchAdvisor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchWindowAdvisor.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchWindowAdvisor.java?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchWindowAdvisor.java (added)
+++ directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchWindowAdvisor.java Mon Nov  5 09:08:59 2007
@@ -0,0 +1,101 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+
+package org.apache.directory.studio;
+
+
+import org.eclipse.swt.graphics.Point;
+import org.eclipse.ui.application.ActionBarAdvisor;
+import org.eclipse.ui.application.IActionBarConfigurer;
+import org.eclipse.ui.application.IWorkbenchWindowConfigurer;
+import org.eclipse.ui.application.WorkbenchWindowAdvisor;
+
+
+/**
+ * The workbench window advisor object is created in response to a workbench window 
+ * being created (one per window), and is used to configure the window.<br />
+ * <br />
+ * The following advisor methods are called at strategic points in the workbench window's 
+ * lifecycle (as with the workbench advisor, all occur within the dynamic scope of the call 
+ * to PlatformUI.createAndRunWorkbench):<br />
+ * <br />
+ *  - preWindowOpen - called as the window is being opened; use to configure aspects of the 
+ *  window other than actions bars<br />
+ *  - postWindowRestore - called after the window has been recreated from a previously saved 
+ *  state; use to adjust the restored window<br />
+ *  - postWindowCreate - called after the window has been created, either from an initial 
+ *  state or from a restored state; used to adjust the window<br />
+ *  - openIntro - called immediately before the window is opened in order to create the 
+ *  introduction component, if any.<br />
+ *  - postWindowOpen - called after the window has been opened; use to hook window listeners, 
+ *  etc.<br />
+ *  - preWindowShellClose - called when the window's shell is closed by the user; use to 
+ *  pre-screen window closings
+ *  
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ */
+public class ApplicationWorkbenchWindowAdvisor extends WorkbenchWindowAdvisor
+{
+
+    /**
+     * Default constructor
+     * @param configurer 
+     *          an object for configuring the workbench window
+     */
+    public ApplicationWorkbenchWindowAdvisor( IWorkbenchWindowConfigurer configurer )
+    {
+        super( configurer );
+    }
+
+
+    /**
+     * Creates a new action bar advisor to configure the action bars of the window via 
+     * the given action bar configurer. The default implementation returns a new instance 
+     * of ActionBarAdvisor.
+     */
+    public ActionBarAdvisor createActionBarAdvisor( IActionBarConfigurer configurer )
+    {
+        return new ApplicationActionBarAdvisor( configurer );
+    }
+
+
+    /**
+     * Performs arbitrary actions before the window is opened.<br />
+     * <br />
+     * This method is called before the window's controls have been created. Clients must 
+     * not call this method directly (although super calls are okay). The default 
+     * implementation does nothing. Subclasses may override. Typical clients will use the 
+     * window configurer to tweak the workbench window in an application-specific way; 
+     * however, filling the window's menu bar, tool bar, and status line must be done in 
+     * ActionBarAdvisor.fillActionBars, which is called immediately after this method is 
+     * called. 
+     */
+    public void preWindowOpen()
+    {
+        IWorkbenchWindowConfigurer configurer = getWindowConfigurer();
+        configurer.setInitialSize( new Point( 950, 708 ) );
+        configurer.setShowCoolBar( true );
+        configurer.setShowStatusLine( false );
+        configurer.setShowPerspectiveBar( true );
+        configurer.setShowProgressIndicator( true );
+        configurer.setShowFastViewBars( true );
+    }
+
+}

Propchange: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/ApplicationWorkbenchWindowAdvisor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Messages.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Messages.java?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Messages.java (added)
+++ directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Messages.java Mon Nov  5 09:08:59 2007
@@ -0,0 +1,71 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+
+package org.apache.directory.studio;
+
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+import org.apache.log4j.Logger;
+
+
+/**
+ * This class is used to get Strings to display in the User Interface
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class Messages
+{
+    // The logger
+    private static Logger logger = Logger.getLogger( Messages.class );
+
+    private static final String BUNDLE_NAME = "org.apache.directory.studio.messages"; //$NON-NLS-1$
+
+    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle( BUNDLE_NAME );
+
+
+    /**
+     * Default constuctor
+     */
+    private Messages()
+    {
+    }
+
+
+    /**
+     * Returns a String associated with the key given in parameter
+     * @param key the key associated to the String 
+     * @return the corresponding String
+     */
+    public static String getString( String key )
+    {
+        try
+        {
+            return RESOURCE_BUNDLE.getString( key );
+        }
+        catch ( MissingResourceException e )
+        {
+            logger.warn( "Associated ressource not found for key {}", key ); //$NON-NLS-1$
+            return '!' + key + '!';
+        }
+    }
+}

Propchange: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/Messages.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/AddExtensionAction.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/AddExtensionAction.java?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/AddExtensionAction.java (added)
+++ directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/AddExtensionAction.java Mon Nov  5 09:08:59 2007
@@ -0,0 +1,105 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+
+package org.apache.directory.studio.actions;
+
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import org.apache.directory.studio.Messages;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.update.search.BackLevelFilter;
+import org.eclipse.update.search.EnvironmentFilter;
+import org.eclipse.update.search.UpdateSearchRequest;
+import org.eclipse.update.search.UpdateSearchScope;
+import org.eclipse.update.ui.UpdateJob;
+import org.eclipse.update.ui.UpdateManagerUI;
+
+
+/**
+ * This class implements the Add Extension Action.
+ * It uses Eclipse built-in extension system to allow users
+ * to add extensions to Apache Directory Studio.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class AddExtensionAction extends Action implements IAction
+{
+    private IWorkbenchWindow window;
+
+
+    /**
+     * Default constructor
+     * @param window
+     *          the window it is attached to
+     */
+    public AddExtensionAction( IWorkbenchWindow window )
+    {
+        this.window = window;
+        setId( "org.apache.directory.studio.newExtensions" ); //$NON-NLS-1$
+        setText( Messages.getString( "AddExtensionAction.Add_Extensions" ) ); //$NON-NLS-1$
+        setToolTipText( Messages.getString( "AddExtensionAction.Search_for_new_extensions" ) ); //$NON-NLS-1$
+    }
+
+
+    /**
+     * Runs the action
+     */
+    public void run()
+    {
+        BusyIndicator.showWhile( window.getShell().getDisplay(), new Runnable()
+        {
+            public void run()
+            {
+                UpdateJob job = new UpdateJob(
+                    Messages.getString( "AddExtensionAction.Searching_new_extensions" ), getSearchRequest() ); //$NON-NLS-1$
+                UpdateManagerUI.openInstaller( window.getShell(), job );
+            }
+
+
+            private UpdateSearchRequest getSearchRequest()
+            {
+                UpdateSearchRequest result = new UpdateSearchRequest( UpdateSearchRequest
+                    .createDefaultSiteSearchCategory(), new UpdateSearchScope() );
+                result.addFilter( new BackLevelFilter() );
+                result.addFilter( new EnvironmentFilter() );
+                UpdateSearchScope scope = new UpdateSearchScope();
+                try
+                {
+                    String homeBase = System.getProperty(
+                        "studio.homebase", Messages.getString( "AddExtensionAction.Apache_Directory_Studio_Home_Base" ) ); //$NON-NLS-1$ //$NON-NLS-2$
+                    URL url = new URL( homeBase );
+                    scope.addSearchSite( Messages.getString( "AddExtensionAction.Apache_Directory_Studio_Site" ), url, null ); //$NON-NLS-1$
+                }
+                catch ( MalformedURLException e )
+                {
+                    // TODO: handle exception
+                }
+                result.setScope( scope );
+                return result;
+            }
+        } );
+    }
+}
\ No newline at end of file

Propchange: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/AddExtensionAction.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/ManageConfigurationAction.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/ManageConfigurationAction.java?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/ManageConfigurationAction.java (added)
+++ directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/ManageConfigurationAction.java Mon Nov  5 09:08:59 2007
@@ -0,0 +1,72 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+
+package org.apache.directory.studio.actions;
+
+
+import org.apache.directory.studio.Messages;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.swt.custom.BusyIndicator;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.update.ui.UpdateManagerUI;
+
+
+/**
+ * This class implements the Manage Configuration Action.
+ * It uses Eclipse Plugin Manager to allow user to 
+ * manager their plugin configuration.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class ManageConfigurationAction extends Action implements IAction
+{
+    private IWorkbenchWindow window;
+
+
+    /**
+     * Default constructor
+     * @param window
+     *          the window it is attached to
+     */
+    public ManageConfigurationAction( IWorkbenchWindow window )
+    {
+        this.window = window;
+        setId( "org.apache.directory.studio.manageConfiguration" ); //$NON-NLS-1$
+        setText( Messages.getString( "ManageConfigurationAction.Manage_Configuration" ) ); //$NON-NLS-1$
+        setToolTipText( Messages.getString( "ManageConfigurationAction.Manage_configuration_for_LDAP_Studio" ) ); //$NON-NLS-1$
+    }
+
+
+    /**
+     * Runs the action
+     */
+    public void run()
+    {
+        BusyIndicator.showWhile( window.getShell().getDisplay(), new Runnable()
+        {
+            public void run()
+            {
+                UpdateManagerUI.openConfigurationManager( window.getShell() );
+            }
+        } );
+    }
+}

Propchange: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/ManageConfigurationAction.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/OpenFileAction.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/OpenFileAction.java?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/OpenFileAction.java (added)
+++ directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/OpenFileAction.java Mon Nov  5 09:08:59 2007
@@ -0,0 +1,189 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+
+package org.apache.directory.studio.actions;
+
+
+import java.io.File;
+import java.text.MessageFormat;
+
+import org.apache.directory.studio.Messages;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.viewers.ISelection;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.FileDialog;
+import org.eclipse.ui.IEditorDescriptor;
+import org.eclipse.ui.IEditorRegistry;
+import org.eclipse.ui.IPathEditorInput;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.IWorkbenchWindowActionDelegate;
+import org.eclipse.ui.PartInitException;
+
+
+/**
+ * The Action is used to open files from file system. 
+ * It creates IPathEditorInput inputs.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class OpenFileAction extends Action implements IWorkbenchWindowActionDelegate
+{
+
+    /** The workbench window */
+    private IWorkbenchWindow workbenchWindow;
+
+
+    /**
+     * Creates a new instance of OpenFileAction.
+     */
+    public OpenFileAction()
+    {
+        setId( "org.apache.directory.studio.openFile" ); //$NON-NLS-1$
+        setText( Messages.getString( "OpenFileAction.Open_File" ) ); //$NON-NLS-1$
+        setToolTipText( Messages.getString( "OpenFileAction.Open_file_from_filesystem" ) ); //$NON-NLS-1$
+        setEnabled( true );
+    }
+
+
+    /**
+     * Creates a new instance of OpenFileAction.
+     *
+     * @param window the workbench window
+     */
+    public OpenFileAction( IWorkbenchWindow window )
+    {
+        this();
+        init( window );
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public void dispose()
+    {
+        workbenchWindow = null;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public void init( IWorkbenchWindow window )
+    {
+        workbenchWindow = window;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public void run( IAction action )
+    {
+        run();
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public void selectionChanged( IAction action, ISelection selection )
+    {
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public void run()
+    {
+        // get path
+        FileDialog dialog = new FileDialog( workbenchWindow.getShell(), SWT.OPEN );
+        dialog.setText( Messages.getString( "OpenFileAction.Open_File" ) ); //$NON-NLS-1$
+        String path = dialog.open();
+        if ( path == null || path.length() == 0 )
+        {
+            // canceled
+            return;
+        }
+
+        // check file 
+        File file = new File( path );
+        if ( !file.exists() )
+        {
+            String msg = MessageFormat.format(
+                Messages.getString( "OpenFileAction.File_x_does_not_exist" ), new Object[] //$NON-NLS-1$
+                    { file.getName() } );
+            MessageDialog.openWarning( workbenchWindow.getShell(), Messages
+                .getString( "OpenFileAction.Warning_message" ), msg ); //$NON-NLS-1$
+            return;
+        }
+        if ( !file.canRead() )
+        {
+            String msg = MessageFormat.format(
+                Messages.getString( "OpenFileAction.File_x_is_not_readable" ), new Object[] //$NON-NLS-1$
+                    { file.getName() } );
+            MessageDialog.openWarning( workbenchWindow.getShell(), Messages
+                .getString( "OpenFileAction.Warning_message" ), msg ); //$NON-NLS-1$
+            return;
+        }
+
+        // get editor for this file
+        IWorkbench workbench = workbenchWindow.getWorkbench();
+        IEditorRegistry editorRegistry = workbench.getEditorRegistry();
+        IEditorDescriptor descriptor = editorRegistry.getDefaultEditor( file.getName() );
+
+        if ( descriptor == null )
+        {
+            String msg = MessageFormat.format(
+                Messages.getString( "OpenFileAction.No_appropriate_editor_found_for_x" ), new Object[] //$NON-NLS-1$
+                { file.getName() } );
+            MessageDialog.openWarning( workbenchWindow.getShell(), Messages
+                .getString( "OpenFileAction.Warning_message" ), msg ); //$NON-NLS-1$
+            return;
+        }
+
+        // create IEdiorInput
+        IPath location = new Path( file.getAbsolutePath() );
+        ImageDescriptor imageDescriptor = descriptor.getImageDescriptor();
+        IPathEditorInput input = new PathEditorInput( location, imageDescriptor );
+
+        // activate editor
+        IWorkbenchPage page = workbenchWindow.getActivePage();
+        String editorId = descriptor.getId();
+        try
+        {
+            page.openEditor( input, editorId );
+        }
+        catch ( PartInitException e )
+        {
+            e.printStackTrace();
+        }
+    }
+
+}
\ No newline at end of file

Propchange: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/OpenFileAction.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/PathEditorInput.java
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/PathEditorInput.java?rev=592091&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/PathEditorInput.java (added)
+++ directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/PathEditorInput.java Mon Nov  5 09:08:59 2007
@@ -0,0 +1,174 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+
+package org.apache.directory.studio.actions;
+
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.ui.IPathEditorInput;
+import org.eclipse.ui.IPersistableElement;
+
+
+/**
+ * This IEditorInput is used to open files that are located in the local file system.
+ * 
+ * Inspired from org.eclipse.ui.internal.editors.text.NonExistingFileEditorInput.java
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class PathEditorInput implements IPathEditorInput
+{
+
+    /** The absolute path in local file system */
+    private IPath path;
+
+    /** The image for the input file */
+    private ImageDescriptor imageDescriptor;
+
+
+    /**
+     * 
+     * Creates a new instance of PathEditorInput.
+     *
+     * @param path the absolute path
+     * @param imageDescriptor the image for the input file
+     */
+    public PathEditorInput( IPath path, ImageDescriptor imageDescriptor )
+    {
+        if ( path == null )
+        {
+            throw new IllegalArgumentException();
+        }
+
+        this.path = path;
+        this.imageDescriptor = imageDescriptor;
+    }
+
+
+    /**
+     * Returns hash code of the path.
+     */
+    public int hashCode()
+    {
+        return path.hashCode();
+    }
+
+
+    /** 
+     * This implemention just compares the paths
+     */
+    public boolean equals( Object o )
+    {
+        if ( this == o )
+        {
+            return true;
+        }
+
+        if ( o instanceof PathEditorInput )
+        {
+            PathEditorInput input = ( PathEditorInput ) o;
+            return path.equals( input.path );
+        }
+
+        return false;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public boolean exists()
+    {
+        return path.toFile().exists();
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public ImageDescriptor getImageDescriptor()
+    {
+        return imageDescriptor;
+    }
+
+
+    /**
+     * Returns the file name only.
+     */
+    public String getName()
+    {
+        return path.toFile().getName();
+        //return path.toString();
+    }
+
+
+    /**
+     * Returns the complete path. 
+     */
+    public String getToolTipText()
+    {
+        return path.makeRelative().toOSString();
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public IPath getPath()
+    {
+        return path;
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public Object getAdapter( Class adapter )
+    {
+        return Platform.getAdapterManager().getAdapter( this, adapter );
+    }
+
+
+    /**
+     * {@inheritDoc}
+     */
+    public IPersistableElement getPersistable()
+    {
+        return null;
+    }
+
+
+    /**
+     * Returns the path.
+     */
+    public IPath getPath( Object element )
+    {
+        if ( element instanceof PathEditorInput )
+        {
+            PathEditorInput input = ( PathEditorInput ) element;
+            return input.getPath();
+        }
+
+        return null;
+    }
+}

Propchange: directory/sandbox/felixk/studio-rcp/src/main/java/org/apache/directory/studio/actions/PathEditorInput.java
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message