Return-Path: Delivered-To: apmail-avalon-cvs-archive@www.apache.org Received: (qmail 37185 invoked from network); 11 Sep 2004 20:14:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Sep 2004 20:14:43 -0000 Received: (qmail 45147 invoked by uid 500); 11 Sep 2004 20:14:42 -0000 Delivered-To: apmail-avalon-cvs-archive@avalon.apache.org Received: (qmail 45082 invoked by uid 500); 11 Sep 2004 20:14:42 -0000 Mailing-List: contact cvs-help@avalon.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon CVS List" Reply-To: "Avalon Developers List" Delivered-To: mailing list cvs@avalon.apache.org Received: (qmail 45069 invoked by uid 99); 11 Sep 2004 20:14:42 -0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Sat, 11 Sep 2004 13:14:41 -0700 Received: (qmail 37129 invoked by uid 65534); 11 Sep 2004 20:14:40 -0000 Date: 11 Sep 2004 20:14:40 -0000 Message-ID: <20040911201440.37126.qmail@minotaur.apache.org> From: niclas@apache.org To: cvs@avalon.apache.org Subject: svn commit: rev 45917 - in avalon/trunk/central/laboratory/studio: . docs/src/org/apache/metro/studio/eclipse/docs X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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 @@ + + + metro/studio/docs + metro-studio-docs + 1.0.0 + SNAPSHOT + + + + + + + + metro/studio/launch @@ -225,6 +239,19 @@ + + + metro/studio/test + metro-studio-test + 1.0.0 + SNAPSHOT + + + + + + + metro/studio/ui --------------------------------------------------------------------- To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org For additional commands, e-mail: cvs-help@avalon.apache.org