Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortlandre2009-12-02 19:02:34 +0000
committertlandre2009-12-02 19:02:34 +0000
commit5ca832018601415a1db0117fe41b0a491611fc74 (patch)
tree3c3ce5361438c1e177c2a9a3b50e9ed1306e0dc2 /plugins
parenta12f21f64f08c4109878737dc3d677e98e6dd076 (diff)
downloadorg.eclipse.papyrus-5ca832018601415a1db0117fe41b0a491611fc74.tar.gz
org.eclipse.papyrus-5ca832018601415a1db0117fe41b0a491611fc74.tar.xz
org.eclipse.papyrus-5ca832018601415a1db0117fe41b0a491611fc74.zip
ASSIGNED - bug 292256: [General] Improve logs management
https://bugs.eclipse.org/bugs/show_bug.cgi?id=292256 Add the org.eclipse.papyrus.log
Diffstat (limited to 'plugins')
-rw-r--r--plugins/core/org.eclipse.papyrus.log/.classpath7
-rw-r--r--plugins/core/org.eclipse.papyrus.log/.project28
-rw-r--r--plugins/core/org.eclipse.papyrus.log/META-INF/MANIFEST.MF10
-rw-r--r--plugins/core/org.eclipse.papyrus.log/about.html28
-rw-r--r--plugins/core/org.eclipse.papyrus.log/build.properties4
-rw-r--r--plugins/core/org.eclipse.papyrus.log/src/org/eclipse/papyrus/log/LogHelper.java (renamed from plugins/uml/org.eclipse.papyrus.navigator/src/org/eclipse/papyrus/navigator/internal/LogHelper.java)2
-rw-r--r--plugins/core/org.eclipse.papyrus.log/src/org/eclipse/papyrus/log/internal/Activator.java60
-rw-r--r--plugins/core/org.eclipse.papyrus.sasheditor.di/META-INF/MANIFEST.MF3
-rw-r--r--plugins/uml/org.eclipse.papyrus.navigator/src/org/eclipse/papyrus/navigator/internal/Activator.java1
9 files changed, 141 insertions, 2 deletions
diff --git a/plugins/core/org.eclipse.papyrus.log/.classpath b/plugins/core/org.eclipse.papyrus.log/.classpath
new file mode 100644
index 00000000000..2d1a4302f04
--- /dev/null
+++ b/plugins/core/org.eclipse.papyrus.log/.classpath
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/core/org.eclipse.papyrus.log/.project b/plugins/core/org.eclipse.papyrus.log/.project
new file mode 100644
index 00000000000..36deae1cccb
--- /dev/null
+++ b/plugins/core/org.eclipse.papyrus.log/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.log</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
diff --git a/plugins/core/org.eclipse.papyrus.log/META-INF/MANIFEST.MF b/plugins/core/org.eclipse.papyrus.log/META-INF/MANIFEST.MF
new file mode 100644
index 00000000000..21566eec77e
--- /dev/null
+++ b/plugins/core/org.eclipse.papyrus.log/META-INF/MANIFEST.MF
@@ -0,0 +1,10 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Papyrus Log
+Bundle-SymbolicName: org.eclipse.papyrus.log
+Bundle-Version: 0.7.0.qualifier
+Bundle-Activator: org.eclipse.papyrus.log.internal.Activator
+Require-Bundle: org.eclipse.core.runtime
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Export-Package: org.eclipse.papyrus.log
diff --git a/plugins/core/org.eclipse.papyrus.log/about.html b/plugins/core/org.eclipse.papyrus.log/about.html
new file mode 100644
index 00000000000..dd02e0be168
--- /dev/null
+++ b/plugins/core/org.eclipse.papyrus.log/about.html
@@ -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>December 2, 2009</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
diff --git a/plugins/core/org.eclipse.papyrus.log/build.properties b/plugins/core/org.eclipse.papyrus.log/build.properties
new file mode 100644
index 00000000000..41eb6ade2b4
--- /dev/null
+++ b/plugins/core/org.eclipse.papyrus.log/build.properties
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/plugins/uml/org.eclipse.papyrus.navigator/src/org/eclipse/papyrus/navigator/internal/LogHelper.java b/plugins/core/org.eclipse.papyrus.log/src/org/eclipse/papyrus/log/LogHelper.java
index 35918e45d5f..1c4f6633d09 100644
--- a/plugins/uml/org.eclipse.papyrus.navigator/src/org/eclipse/papyrus/navigator/internal/LogHelper.java
+++ b/plugins/core/org.eclipse.papyrus.log/src/org/eclipse/papyrus/log/LogHelper.java
@@ -8,7 +8,7 @@
* Contributors:
* Atos Origin - initial API and implementation
*******************************************************************************/
-package org.eclipse.papyrus.navigator.internal;
+package org.eclipse.papyrus.log;
import java.lang.reflect.InvocationTargetException;
diff --git a/plugins/core/org.eclipse.papyrus.log/src/org/eclipse/papyrus/log/internal/Activator.java b/plugins/core/org.eclipse.papyrus.log/src/org/eclipse/papyrus/log/internal/Activator.java
new file mode 100644
index 00000000000..781c97e714e
--- /dev/null
+++ b/plugins/core/org.eclipse.papyrus.log/src/org/eclipse/papyrus/log/internal/Activator.java
@@ -0,0 +1,60 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Atos Origin.
+ * 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:
+ * Atos Origin - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.papyrus.log.internal;
+
+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 plug-in ID
+ public static final String PLUGIN_ID = "org.eclipse.papyrus.log";
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
+ */
+ 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;
+ }
+
+}
diff --git a/plugins/core/org.eclipse.papyrus.sasheditor.di/META-INF/MANIFEST.MF b/plugins/core/org.eclipse.papyrus.sasheditor.di/META-INF/MANIFEST.MF
index 503289ff0ad..f41a0940887 100644
--- a/plugins/core/org.eclipse.papyrus.sasheditor.di/META-INF/MANIFEST.MF
+++ b/plugins/core/org.eclipse.papyrus.sasheditor.di/META-INF/MANIFEST.MF
@@ -12,5 +12,6 @@ Export-Package: org.eclipse.papyrus.sashwindows.di,
org.eclipse.papyrus.sashwindows.di.impl,
org.eclipse.papyrus.sashwindows.di.util
Require-Bundle: org.eclipse.emf.ecore;visibility:=reexport,
- org.eclipse.swt;bundle-version="3.5.0";visibility:=reexport
+ org.eclipse.swt;bundle-version="3.5.0";visibility:=reexport,
+ org.eclipse.papyrus.log;visibility:=reexport
Bundle-ActivationPolicy: lazy
diff --git a/plugins/uml/org.eclipse.papyrus.navigator/src/org/eclipse/papyrus/navigator/internal/Activator.java b/plugins/uml/org.eclipse.papyrus.navigator/src/org/eclipse/papyrus/navigator/internal/Activator.java
index bd726967870..7e64a343674 100644
--- a/plugins/uml/org.eclipse.papyrus.navigator/src/org/eclipse/papyrus/navigator/internal/Activator.java
+++ b/plugins/uml/org.eclipse.papyrus.navigator/src/org/eclipse/papyrus/navigator/internal/Activator.java
@@ -16,6 +16,7 @@ import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.papyrus.log.LogHelper;
import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;

Back to the top