Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Tiede2014-08-28 09:30:38 +0000
committerMarkus Tiede2014-08-28 09:30:38 +0000
commit9344a4993c1ca412e9e1da1002aeb6020cb38da3 (patch)
treebbc6ebb9383684032c8a4fd499a386af8ffe124a /org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider
parentabc5804b527a6c89c76ba99fbebd5276f507c6bf (diff)
downloadorg.eclipse.jubula.core-9344a4993c1ca412e9e1da1002aeb6020cb38da3.tar.gz
org.eclipse.jubula.core-9344a4993c1ca412e9e1da1002aeb6020cb38da3.tar.xz
org.eclipse.jubula.core-9344a4993c1ca412e9e1da1002aeb6020cb38da3.zip
Sprint task - first preparations for RC API provisioning: re-locate toolkit provider to new namespace.
Diffstat (limited to 'org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider')
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/Activator.java47
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/I18nStrings.properties7
-rw-r--r--org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/RCPToolkitProvider.java37
3 files changed, 91 insertions, 0 deletions
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/Activator.java b/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/Activator.java
new file mode 100644
index 000000000..5f59ef3ca
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/Activator.java
@@ -0,0 +1,47 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2010 BREDEX GmbH.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.toolkit.rcp.provider;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends Plugin {
+ /** The shared instance */
+ private static Activator plugin;
+
+ /** The constructor */
+ public Activator() {
+ plugin = this;
+ }
+
+ /** {@inheritDoc} */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ }
+
+ /** {@inheritDoc} */
+ 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;
+ }
+} \ No newline at end of file
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/I18nStrings.properties b/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/I18nStrings.properties
new file mode 100644
index 000000000..06cc604ab
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/I18nStrings.properties
@@ -0,0 +1,7 @@
+###############################################################################
+# Copyright (c) 2004, 2010 BREDEX GmbH.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+###############################################################################
diff --git a/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/RCPToolkitProvider.java b/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/RCPToolkitProvider.java
new file mode 100644
index 000000000..ff788b029
--- /dev/null
+++ b/org.eclipse.jubula.toolkit.rcp.provider/src/org/eclipse/jubula/toolkit/rcp/provider/RCPToolkitProvider.java
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * Copyright (c) 2004, 2010 BREDEX GmbH.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * BREDEX GmbH - initial API and implementation and/or initial documentation
+ *******************************************************************************/
+package org.eclipse.jubula.toolkit.rcp.provider;
+
+import java.net.URL;
+import java.util.ResourceBundle;
+
+import org.eclipse.jubula.toolkit.common.utils.ToolkitUtils;
+import org.eclipse.jubula.toolkit.swt.provider.SWTToolkitProvider;
+
+/**
+ * @author BREDEX GmbH
+ * @created 24.04.2007
+ */
+public class RCPToolkitProvider extends SWTToolkitProvider {
+ /** <code>I18N_PROPERTIES</code> */
+ private static final String I18N_PROPERTIES =
+ "org.eclipse.jubula.toolkit.rcp.provider.I18nStrings"; //$NON-NLS-1$
+
+ /** {@inheritDoc} */
+ public URL getComponentConfigurationFileURL() {
+ return ToolkitUtils.getURL(Activator.getDefault(), COMP_CONFIG_PATH);
+ }
+
+ /** {@inheritDoc} */
+ public ResourceBundle getI18nResourceBundle() {
+ return ResourceBundle.getBundle(I18N_PROPERTIES);
+ }
+}

Back to the top