Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2013-10-09 03:33:38 -0400
committerUwe Stieber2013-10-09 03:33:38 -0400
commit1b23929809aa60bcd0fb59accffaa33356e85649 (patch)
tree68de5d23486d68087de4585077b19abfc07346b5 /target_explorer/plugins/org.eclipse.tcf.te.runtime.notifications/src
parentdacdbd7ab4a4eacce29dbf19cd4889c761b019f3 (diff)
downloadorg.eclipse.tcf-1b23929809aa60bcd0fb59accffaa33356e85649.tar.gz
org.eclipse.tcf-1b23929809aa60bcd0fb59accffaa33356e85649.tar.xz
org.eclipse.tcf-1b23929809aa60bcd0fb59accffaa33356e85649.zip
Target Explorer: Add placeholder plugins for popup notification service, handlers and UI
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.notifications/src')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.notifications/src/org/eclipse/tcf/te/runtime/notifications/activator/CoreBundleActivator.java57
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.notifications/src/org/eclipse/tcf/te/runtime/notifications/nls/Messages.java32
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.notifications/src/org/eclipse/tcf/te/runtime/notifications/nls/Messages.properties9
3 files changed, 98 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.notifications/src/org/eclipse/tcf/te/runtime/notifications/activator/CoreBundleActivator.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.notifications/src/org/eclipse/tcf/te/runtime/notifications/activator/CoreBundleActivator.java
new file mode 100644
index 000000000..411545165
--- /dev/null
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.notifications/src/org/eclipse/tcf/te/runtime/notifications/activator/CoreBundleActivator.java
@@ -0,0 +1,57 @@
+/*******************************************************************************
+ * Copyright (c) 2013 Wind River Systems, Inc. and others. 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:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.runtime.notifications.activator;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class CoreBundleActivator implements BundleActivator {
+ // The bundle context
+ private static BundleContext context;
+
+ /**
+ * Returns the bundle context
+ *
+ * @return the bundle context
+ */
+ public static BundleContext getContext() {
+ return context;
+ }
+
+ /**
+ * Convenience method which returns the unique identifier of this plugin.
+ */
+ public static String getUniqueIdentifier() {
+ if (getContext() != null && getContext().getBundle() != null) {
+ return getContext().getBundle().getSymbolicName();
+ }
+ return "org.eclipse.tcf.te.runtime.notifications"; //$NON-NLS-1$
+ }
+
+ /* (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void start(BundleContext bundleContext) throws Exception {
+ CoreBundleActivator.context = bundleContext;
+ }
+
+ /* (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void stop(BundleContext bundleContext) throws Exception {
+ CoreBundleActivator.context = null;
+ }
+
+}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.notifications/src/org/eclipse/tcf/te/runtime/notifications/nls/Messages.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.notifications/src/org/eclipse/tcf/te/runtime/notifications/nls/Messages.java
new file mode 100644
index 000000000..0b8a7558b
--- /dev/null
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.notifications/src/org/eclipse/tcf/te/runtime/notifications/nls/Messages.java
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2013 Wind River Systems, Inc. and others. 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:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.runtime.notifications.nls;
+
+import org.eclipse.osgi.util.NLS;
+
+/**
+ * Externalized strings management.
+ */
+public class Messages extends NLS {
+
+ // The plug-in resource bundle name
+ private static final String BUNDLE_NAME = "org.eclipse.tcf.te.runtime.notifications.nls.Messages"; //$NON-NLS-1$
+
+ /**
+ * Static constructor.
+ */
+ static {
+ // Load message values from bundle file
+ NLS.initializeMessages(BUNDLE_NAME, Messages.class);
+ }
+
+ // **** Declare externalized string id's down here *****
+
+}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.notifications/src/org/eclipse/tcf/te/runtime/notifications/nls/Messages.properties b/target_explorer/plugins/org.eclipse.tcf.te.runtime.notifications/src/org/eclipse/tcf/te/runtime/notifications/nls/Messages.properties
new file mode 100644
index 000000000..6db611c92
--- /dev/null
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.notifications/src/org/eclipse/tcf/te/runtime/notifications/nls/Messages.properties
@@ -0,0 +1,9 @@
+###############################################################################
+# Copyright (c) 2013 Wind River Systems, Inc. and others. 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:
+# Wind River Systems - initial API and implementation
+###############################################################################

Back to the top