Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-01-14 10:27:01 +0000
committerEike Stepper2012-01-14 10:27:01 +0000
commit0266166cb9ff9535c150250073ea1e57b42d2693 (patch)
treec006a3bc0ba1f6e1d8a2bc032eedc346f71eab0d /plugins/org.eclipse.net4j.debug/src
parent7416443692cdda72d1f704ea4fc5ececcc669df7 (diff)
downloadcdo-0266166cb9ff9535c150250073ea1e57b42d2693.tar.gz
cdo-0266166cb9ff9535c150250073ea1e57b42d2693.tar.xz
cdo-0266166cb9ff9535c150250073ea1e57b42d2693.zip
Adjusted copyrights to 2012
Diffstat (limited to 'plugins/org.eclipse.net4j.debug/src')
-rw-r--r--plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/RemoteTraceManager.java138
-rw-r--r--plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/bundle/OM.java134
-rw-r--r--plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/messages/Messages.java80
-rw-r--r--plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/messages/messages.properties33
4 files changed, 197 insertions, 188 deletions
diff --git a/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/RemoteTraceManager.java b/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/RemoteTraceManager.java
index 61b17212d8..f90e36d927 100644
--- a/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/RemoteTraceManager.java
+++ b/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/RemoteTraceManager.java
@@ -1,69 +1,69 @@
-/*
- * Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) 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:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.net4j.internal.debug;
-
-import org.eclipse.net4j.internal.debug.views.RemoteTraceView;
-import org.eclipse.net4j.util.lifecycle.Lifecycle;
-import org.eclipse.net4j.util.om.trace.RemoteTraceServer;
-import org.eclipse.net4j.util.om.trace.RemoteTraceServer.Event;
-import org.eclipse.net4j.util.om.trace.RemoteTraceServer.Listener;
-
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * @author Eike Stepper
- */
-public class RemoteTraceManager extends Lifecycle implements Listener
-{
- // @Singleton
- public static final RemoteTraceManager INSTANCE = new RemoteTraceManager();
-
- private RemoteTraceServer server;
-
- private List<Event> events = new ArrayList<Event>();
-
- public RemoteTraceManager()
- {
- }
-
- public Event[] getEvents()
- {
- return events.toArray(new Event[events.size()]);
- }
-
- public void clearEvents()
- {
- events.clear();
- }
-
- public void notifyRemoteTrace(Event event)
- {
- events.add(event);
- RemoteTraceView.notifyNewTrace();
- }
-
- @Override
- protected void doActivate() throws Exception
- {
- super.doActivate();
- server = new RemoteTraceServer();
- server.addListener(this);
- }
-
- @Override
- protected void doDeactivate() throws Exception
- {
- server.removeListener(this);
- server.close();
- super.doDeactivate();
- }
-}
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.net4j.internal.debug;
+
+import org.eclipse.net4j.internal.debug.views.RemoteTraceView;
+import org.eclipse.net4j.util.lifecycle.Lifecycle;
+import org.eclipse.net4j.util.om.trace.RemoteTraceServer;
+import org.eclipse.net4j.util.om.trace.RemoteTraceServer.Event;
+import org.eclipse.net4j.util.om.trace.RemoteTraceServer.Listener;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @author Eike Stepper
+ */
+public class RemoteTraceManager extends Lifecycle implements Listener
+{
+ // @Singleton
+ public static final RemoteTraceManager INSTANCE = new RemoteTraceManager();
+
+ private RemoteTraceServer server;
+
+ private List<Event> events = new ArrayList<Event>();
+
+ public RemoteTraceManager()
+ {
+ }
+
+ public Event[] getEvents()
+ {
+ return events.toArray(new Event[events.size()]);
+ }
+
+ public void clearEvents()
+ {
+ events.clear();
+ }
+
+ public void notifyRemoteTrace(Event event)
+ {
+ events.add(event);
+ RemoteTraceView.notifyNewTrace();
+ }
+
+ @Override
+ protected void doActivate() throws Exception
+ {
+ super.doActivate();
+ server = new RemoteTraceServer();
+ server.addListener(this);
+ }
+
+ @Override
+ protected void doDeactivate() throws Exception
+ {
+ server.removeListener(this);
+ server.close();
+ super.doDeactivate();
+ }
+}
diff --git a/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/bundle/OM.java b/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/bundle/OM.java
index c1293855d2..5391ee5f96 100644
--- a/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/bundle/OM.java
+++ b/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/bundle/OM.java
@@ -1,67 +1,67 @@
-/*
- * Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) 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:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.net4j.internal.debug.bundle;
-
-import org.eclipse.net4j.internal.debug.RemoteTraceManager;
-import org.eclipse.net4j.util.om.OMBundle;
-import org.eclipse.net4j.util.om.OMPlatform;
-import org.eclipse.net4j.util.om.log.OMLogger;
-import org.eclipse.net4j.util.om.trace.OMTracer;
-import org.eclipse.net4j.util.ui.UIActivator;
-
-/**
- * The <em>Operations & Maintenance</em> class of this bundle.
- *
- * @author Eike Stepper
- */
-public abstract class OM
-{
- public static final String BUNDLE_ID = "org.eclipse.net4j.debug"; //$NON-NLS-1$
-
- public static final OMBundle BUNDLE = OMPlatform.INSTANCE.bundle(BUNDLE_ID, OM.class);
-
- public static final OMTracer DEBUG = BUNDLE.tracer("debug"); //$NON-NLS-1$
-
- public static final OMLogger LOG = BUNDLE.logger();
-
- static void start() throws Exception
- {
- if (isRemoteTracing())
- {
- RemoteTraceManager.INSTANCE.activate();
- }
- }
-
- static void stop() throws Exception
- {
- if (isRemoteTracing())
- {
- RemoteTraceManager.INSTANCE.deactivate();
- }
- }
-
- private static boolean isRemoteTracing()
- {
- // TODO Make configurable
- return true;
- }
-
- /**
- * @author Eike Stepper
- */
- public static final class Activator extends UIActivator
- {
- public Activator()
- {
- super(BUNDLE);
- }
- }
-}
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.net4j.internal.debug.bundle;
+
+import org.eclipse.net4j.internal.debug.RemoteTraceManager;
+import org.eclipse.net4j.util.om.OMBundle;
+import org.eclipse.net4j.util.om.OMPlatform;
+import org.eclipse.net4j.util.om.log.OMLogger;
+import org.eclipse.net4j.util.om.trace.OMTracer;
+import org.eclipse.net4j.util.ui.UIActivator;
+
+/**
+ * The <em>Operations & Maintenance</em> class of this bundle.
+ *
+ * @author Eike Stepper
+ */
+public abstract class OM
+{
+ public static final String BUNDLE_ID = "org.eclipse.net4j.debug"; //$NON-NLS-1$
+
+ public static final OMBundle BUNDLE = OMPlatform.INSTANCE.bundle(BUNDLE_ID, OM.class);
+
+ public static final OMTracer DEBUG = BUNDLE.tracer("debug"); //$NON-NLS-1$
+
+ public static final OMLogger LOG = BUNDLE.logger();
+
+ static void start() throws Exception
+ {
+ if (isRemoteTracing())
+ {
+ RemoteTraceManager.INSTANCE.activate();
+ }
+ }
+
+ static void stop() throws Exception
+ {
+ if (isRemoteTracing())
+ {
+ RemoteTraceManager.INSTANCE.deactivate();
+ }
+ }
+
+ private static boolean isRemoteTracing()
+ {
+ // TODO Make configurable
+ return true;
+ }
+
+ /**
+ * @author Eike Stepper
+ */
+ public static final class Activator extends UIActivator
+ {
+ public Activator()
+ {
+ super(BUNDLE);
+ }
+ }
+}
diff --git a/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/messages/Messages.java b/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/messages/Messages.java
index bd01a1178e..ff2a20303e 100644
--- a/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/messages/Messages.java
+++ b/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/messages/Messages.java
@@ -1,40 +1,40 @@
-/*
- * Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany) 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:
- * Eike Stepper - initial API and implementation
- */
-package org.eclipse.net4j.internal.debug.messages;
-
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-/**
- * @author Eike Stepper
- */
-public class Messages
-{
- private static final String BUNDLE_NAME = "org.eclipse.net4j.internal.debug.messages.messages"; //$NON-NLS-1$
-
- private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
-
- private Messages()
- {
- }
-
- public static String getString(String key)
- {
- try
- {
- return RESOURCE_BUNDLE.getString(key);
- }
- catch (MissingResourceException e)
- {
- return '!' + key + '!';
- }
- }
-}
+/*
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.net4j.internal.debug.messages;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+/**
+ * @author Eike Stepper
+ */
+public class Messages
+{
+ private static final String BUNDLE_NAME = "org.eclipse.net4j.internal.debug.messages.messages"; //$NON-NLS-1$
+
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
+
+ private Messages()
+ {
+ }
+
+ public static String getString(String key)
+ {
+ try
+ {
+ return RESOURCE_BUNDLE.getString(key);
+ }
+ catch (MissingResourceException e)
+ {
+ return '!' + key + '!';
+ }
+ }
+}
diff --git a/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/messages/messages.properties b/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/messages/messages.properties
index 1e56ba7e21..8ebe17e515 100644
--- a/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/messages/messages.properties
+++ b/plugins/org.eclipse.net4j.debug/src/org/eclipse/net4j/internal/debug/messages/messages.properties
@@ -1,12 +1,21 @@
-RemoteTraceView.0=ID
-RemoteTraceView.1=Time Stamp
-RemoteTraceView.10=Clear
-RemoteTraceView.11=Double-click detected on
-RemoteTraceView.12=Remote Traces
-RemoteTraceView.2=Agent ID
-RemoteTraceView.3=Bundle ID
-RemoteTraceView.4=Tracer Name
-RemoteTraceView.5=Context
-RemoteTraceView.6=Message
-RemoteTraceView.7=Throwable
-RemoteTraceView.9=Clear
+# Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) 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:
+# Eike Stepper - initial API and implementation
+
+RemoteTraceView.0=ID
+RemoteTraceView.1=Time Stamp
+RemoteTraceView.10=Clear
+RemoteTraceView.11=Double-click detected on
+RemoteTraceView.12=Remote Traces
+RemoteTraceView.2=Agent ID
+RemoteTraceView.3=Bundle ID
+RemoteTraceView.4=Tracer Name
+RemoteTraceView.5=Context
+RemoteTraceView.6=Message
+RemoteTraceView.7=Throwable
+RemoteTraceView.9=Clear

Back to the top