Add an IStartup to the new kernel.core plugin
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Mon, 5 Jun 2017 19:48:27 +0000 (15:48 -0400)
committerAlexandre Montplaisir <alexmonthy@efficios.com>
Tue, 27 Jun 2017 19:47:30 +0000 (15:47 -0400)
This plugin does not provide any analysis or anything, so nothing refers
to it. Use an IStartup extension point to activate it.

(Why is IStartup in eclipse.ui though?)

Change-Id: Ie26f39a9a657810ff0a16f04b14df7fa56dc9213
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
lttng/org.lttng.scope.lttng.kernel.core/META-INF/MANIFEST.MF
lttng/org.lttng.scope.lttng.kernel.core/build.properties
lttng/org.lttng.scope.lttng.kernel.core/plugin.xml [new file with mode: 0644]
lttng/org.lttng.scope.lttng.kernel.core/src/org/lttng/scope/lttng/kernel/core/activator/internal/Startup.java [new file with mode: 0644]

index d7abfd8490dacf99fa8e7d267b0ac62609940599..b8dfb9b41da1deda79a7f5b706f769520931dd0d 100644 (file)
@@ -15,7 +15,9 @@ Require-Bundle: org.eclipse.core.runtime,
  org.eclipse.tracecompass.common.core,
  org.eclipse.tracecompass.analysis.os.linux.core,
  org.eclipse.tracecompass.tmf.ctf.core,
- org.eclipse.tracecompass.statesystem.core
+ org.eclipse.tracecompass.statesystem.core,
+ org.eclipse.ui.ide,
+ org.eclipse.ui
 Export-Package: org.lttng.scope.lttng.kernel.core.activator.internal;x-internal:=true,
  org.lttng.scope.lttng.kernel.core.views.timegraph,
  org.lttng.scope.lttng.kernel.core.views.timegraph.resources,
index 3d6e28736a80fa4b1f14a2593cdb356bdcb79934..a906526d424a4615053b6e2f76f4ec78548230a2 100644 (file)
@@ -12,7 +12,8 @@ output.. = bin/
 bin.includes = META-INF/,\
                .,\
                about.html,\
-               plugin.properties
+               plugin.properties,\
+               plugin.xml
 src.includes = about.html
 additional.bundles = org.eclipse.jdt.annotation
 jars.extra.classpath = platform:/plugin/org.eclipse.jdt.annotation
diff --git a/lttng/org.lttng.scope.lttng.kernel.core/plugin.xml b/lttng/org.lttng.scope.lttng.kernel.core/plugin.xml
new file mode 100644 (file)
index 0000000..e620221
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+   <extension
+         point="org.eclipse.ui.startup">
+      <startup
+            class="org.lttng.scope.lttng.kernel.core.activator.internal.Startup">
+      </startup>
+   </extension>
+
+</plugin>
diff --git a/lttng/org.lttng.scope.lttng.kernel.core/src/org/lttng/scope/lttng/kernel/core/activator/internal/Startup.java b/lttng/org.lttng.scope.lttng.kernel.core/src/org/lttng/scope/lttng/kernel/core/activator/internal/Startup.java
new file mode 100644 (file)
index 0000000..b9446c9
--- /dev/null
@@ -0,0 +1,24 @@
+/*
+ * Copyright (C) 2017 EfficiOS Inc., Alexandre Montplaisir <alexmonthy@efficios.com>
+ *
+ * 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
+ */
+
+package org.lttng.scope.lttng.kernel.core.activator.internal;
+
+import org.eclipse.ui.IStartup;
+
+/**
+ * Plugin startup
+ */
+public class Startup implements IStartup {
+
+    @Override
+    public void earlyStartup() {
+        // Nothing to do, just load the plugin plz
+    }
+
+}
This page took 0.0266 seconds and 5 git commands to generate.