commit from SVN
authorChad Peckham <chad.peckham@nokia.com>
Mon, 31 Aug 2009 16:32:51 -0500
changeset 84 7f7234222666
parent 83 eb76ac5926e9
child 85 82bf8c1b3d38
commit from SVN
dsdp/tm/tcf_0_3_x/org.eclipse.tm.tcf.core/about.html
dsdp/tm/tcf_0_3_x/org.eclipse.tm.tcf.core/activator/org/eclipse/tm/internal/tcf/Activator.java
dsdp/tm/tcf_0_3_x/org.eclipse.tm.tcf.core/plugin.properties
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dsdp/tm/tcf_0_3_x/org.eclipse.tm.tcf.core/about.html	Mon Aug 31 16:32:51 2009 -0500
@@ -0,0 +1,28 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+ 
+<p>January 10, 2008</p>	
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;).  Unless otherwise 
+indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;).  A copy of the EPL is available 
+at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is 
+being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
+apply to your use of any object code in the Content.  Check the Redistributor's license that was 
+provided with the Content.  If no such license exists, contact the Redistributor.  Unless otherwise
+indicated below, the terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dsdp/tm/tcf_0_3_x/org.eclipse.tm.tcf.core/activator/org/eclipse/tm/internal/tcf/Activator.java	Mon Aug 31 16:32:51 2009 -0500
@@ -0,0 +1,36 @@
+package org.eclipse.tm.internal.tcf;
+
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+import org.osgi.service.packageadmin.PackageAdmin;
+import org.osgi.util.tracker.ServiceTracker;
+
+public class Activator implements  BundleActivator {
+    
+    private static final String TCF_INTEGRATION_BUNDLE_ID = "org.eclipse.tm.tcf";
+
+    public void start(BundleContext context) throws Exception {
+        /*
+         * Activate TCF Eclipse integration bundle "org.eclipse.tm.tcf".
+         * It must be activated explicitly, because default activation through
+         * class loading may never happen - most client don't need classes from that bundle.
+         */
+        ServiceTracker tracker = new ServiceTracker(context, PackageAdmin.class.getName(), null);
+        tracker.open();
+        Bundle[] bundles = ((PackageAdmin)tracker.getService()).getBundles(TCF_INTEGRATION_BUNDLE_ID, null);
+        int cnt = 0;
+        if (bundles != null) {
+            for (Bundle bundle : bundles) {
+                if ((bundle.getState() & (Bundle.INSTALLED | Bundle.UNINSTALLED)) == 0) {
+                    bundle.start(Bundle.START_TRANSIENT);
+                    cnt++;
+                }
+            }
+        }
+        if (cnt != 1) throw new Exception("Invalid or missing bundle: " + TCF_INTEGRATION_BUNDLE_ID);
+    }
+
+    public void stop(BundleContext context) throws Exception {
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dsdp/tm/tcf_0_3_x/org.eclipse.tm.tcf.core/plugin.properties	Mon Aug 31 16:32:51 2009 -0500
@@ -0,0 +1,13 @@
+###############################################################################
+# Copyright (c) 2007, 2009 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 implementation
+###############################################################################
+pluginName = Target Communication Framework (TCF) Core (Incubation)  
+providerName = Eclipse.org
+