avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nic...@apache.org
Subject svn commit: rev 45917 - in avalon/trunk/central/laboratory/studio: . docs/src/org/apache/metro/studio/eclipse/docs
Date Sat, 11 Sep 2004 20:14:40 GMT
Author: niclas
Date: Sat Sep 11 13:14:40 2004
New Revision: 45917

Modified:
   avalon/trunk/central/laboratory/studio/docs/src/org/apache/metro/studio/eclipse/docs/DocsPlugin.java
   avalon/trunk/central/laboratory/studio/index.xml
Log:
Added 'docs/' as a project.

Modified: avalon/trunk/central/laboratory/studio/docs/src/org/apache/metro/studio/eclipse/docs/DocsPlugin.java
==============================================================================
--- avalon/trunk/central/laboratory/studio/docs/src/org/apache/metro/studio/eclipse/docs/DocsPlugin.java
(original)
+++ avalon/trunk/central/laboratory/studio/docs/src/org/apache/metro/studio/eclipse/docs/DocsPlugin.java
Sat Sep 11 13:14:40 2004
@@ -1,56 +1,86 @@
-package org.apache.metro.studio.eclipse.docs;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-import org.eclipse.ui.plugin.AbstractUIPlugin;
-
-/**
- * The main plugin class to be used in the desktop.
- */
-public class DocsPlugin extends AbstractUIPlugin {
-	//The shared instance.
-	private static DocsPlugin plugin;
-	//Resource bundle.
-	private ResourceBundle resourceBundle;
-	
-	/**
-	 * The constructor.
-	 */
-	public DocsPlugin() {
-		super();
-		plugin = this;
-		try {
-			resourceBundle   = ResourceBundle.getBundle("org.apache.metro.studio.eclipse.docs.DocsPluginResources");
-		} catch (MissingResourceException x) {
-			resourceBundle = null;
-		}
-	}
-
-	/**
-	 * Returns the shared instance.
-	 */
-	public static DocsPlugin getDefault() {
-		return plugin;
-	}
-
-	/**
-	 * Returns the string from the plugin's resource bundle,
-	 * or 'key' if not found.
-	 */
-	public static String getResourceString(String key) {
-		ResourceBundle bundle = DocsPlugin.getDefault().getResourceBundle();
-		try {
-			return (bundle != null) ? bundle.getString(key) : key;
-		} catch (MissingResourceException e) {
-			return key;
-		}
-	}
-
-	/**
-	 * Returns the plugin's resource bundle,
-	 */
-	public ResourceBundle getResourceBundle() {
-		return resourceBundle;
-	}
-}
+/*
+ *     Copyright 2004. The Apache Software Foundation.
+ *
+ *   Licensed 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.metro.studio.eclipse.docs;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+
+/**
+ * The main plugin class to be used in the desktop.
+ */
+public class DocsPlugin extends AbstractUIPlugin 
+{
+    //The shared instance.
+    private static DocsPlugin plugin;
+    
+    //Resource bundle.
+    private ResourceBundle resourceBundle;
+    
+    /**
+     * The constructor.
+     */
+    public DocsPlugin() 
+    {
+        super();
+        plugin = this;
+        
+        try 
+        {
+            resourceBundle = ResourceBundle.getBundle("org.apache.metro.studio.eclipse.docs.DocsPluginResources");
+        } catch( MissingResourceException x ) 
+        {
+            resourceBundle = null;
+        }
+    }
+
+    /**
+     * Returns the shared instance.
+     */
+    public static DocsPlugin getDefault() 
+    {
+        return plugin;
+    }
+
+    /**
+     * Returns the string from the plugin's resource bundle,
+     * or 'key' if not found.
+     */
+    public static String getResourceString(String key) 
+    {
+        ResourceBundle bundle = DocsPlugin.getDefault().getResourceBundle();
+        try 
+        {
+            if( bundle == null )
+                return key;
+                
+            return bundle.getString( key );
+        } catch( MissingResourceException e ) 
+        {
+            return key;
+        }
+    }
+
+    /**
+     * Returns the plugin's resource bundle,
+     */
+    public ResourceBundle getResourceBundle() 
+    {
+        return resourceBundle;
+    }
+}

Modified: avalon/trunk/central/laboratory/studio/index.xml
==============================================================================
--- avalon/trunk/central/laboratory/studio/index.xml	(original)
+++ avalon/trunk/central/laboratory/studio/index.xml	Sat Sep 11 13:14:40 2004
@@ -209,6 +209,20 @@
     </dependencies>
   </project>
 
+  <project basedir="docs">
+    <info>
+      <group>metro/studio/docs</group>
+      <name>metro-studio-docs</name>
+      <version>1.0.0</version>
+      <status>SNAPSHOT</status> 
+    </info>
+    <dependencies>
+      <include key="eclipse-core-runtime"/>
+      <include key="eclipse-ui-plugin-workbench"/>
+      <include key="eclipse-osgi"/>
+    </dependencies>
+  </project>
+  
   <project basedir="launch">
     <info>
       <group>metro/studio/launch</group>
@@ -225,6 +239,19 @@
     </dependencies>
   </project>
 
+  <project basedir="test">
+    <info>
+      <group>metro/studio/test</group>
+      <name>metro-studio-test</name>
+      <version>1.0.0</version>
+      <status>SNAPSHOT</status> 
+    </info>
+    <dependencies>
+      <include key="eclipse-core-resources"/>
+      <include key="metro-studio-core"/>
+    </dependencies>
+  </project>
+  
   <project basedir="ui">
     <info>
       <group>metro/studio/ui</group>

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message