Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorustieber2009-05-27 13:47:18 +0000
committerustieber2009-05-27 13:47:18 +0000
commit6fe22546a998c07bd789881de4397a4dadf4c098 (patch)
treeefeb6bafb644e2f56ba1117b42aabc06dcb575c3 /plugins/org.eclipse.tm.tcf
parent8deed5574466c496c221af40627cd94d3fc575d2 (diff)
downloadorg.eclipse.tcf-6fe22546a998c07bd789881de4397a4dadf4c098.tar.gz
org.eclipse.tcf-6fe22546a998c07bd789881de4397a4dadf4c098.tar.xz
org.eclipse.tcf-6fe22546a998c07bd789881de4397a4dadf4c098.zip
FIX Compiler warnings
Diffstat (limited to 'plugins/org.eclipse.tm.tcf')
-rw-r--r--plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/Activator.java20
-rw-r--r--plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/EventQueue.java24
2 files changed, 22 insertions, 22 deletions
diff --git a/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/Activator.java b/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/Activator.java
index 6e5b3c0b4..87fc9aef4 100644
--- a/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/Activator.java
+++ b/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/Activator.java
@@ -1,10 +1,10 @@
/*******************************************************************************
* Copyright (c) 2007, 2008 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
- *
+ * 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
*******************************************************************************/
@@ -30,7 +30,7 @@ import org.osgi.framework.BundleListener;
*/
public class Activator extends Plugin {
- public static final String PLUGIN_ID = "org.eclipse.tm.tcf";
+ public static final String PLUGIN_ID = "org.eclipse.tm.tcf"; //$NON-NLS-1$
private static Activator plugin;
private static boolean debug;
@@ -62,7 +62,7 @@ public class Activator extends Plugin {
if (x != null) x.printStackTrace();
}
if (plugin != null && getLog() != null) {
- getLog().log(new Status(IStatus.ERROR,
+ getLog().log(new Status(IStatus.ERROR,
getBundle().getSymbolicName(), IStatus.OK, msg, x));
}
}
@@ -87,7 +87,7 @@ public class Activator extends Plugin {
@SuppressWarnings("unchecked")
private void runTCFStartup() {
try {
- IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(PLUGIN_ID, "startup");
+ IExtensionPoint point = Platform.getExtensionRegistry().getExtensionPoint(PLUGIN_ID, "startup"); //$NON-NLS-1$
IExtension[] extensions = point.getExtensions();
for (int i = 0; i < extensions.length; i++) {
try {
@@ -103,12 +103,12 @@ public class Activator extends Plugin {
}
}
catch (Throwable x) {
- Protocol.log("TCF startup error", x);
+ Protocol.log("TCF startup error", x); //$NON-NLS-1$
}
}
}
catch (Exception x) {
- Protocol.log("TCF startup error", x);
+ Protocol.log("TCF startup error", x); //$NON-NLS-1$
}
}
}
diff --git a/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/EventQueue.java b/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/EventQueue.java
index c16d96099..e9fd42237 100644
--- a/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/EventQueue.java
+++ b/plugins/org.eclipse.tm.tcf/src/org/eclipse/tm/tcf/EventQueue.java
@@ -1,10 +1,10 @@
/*******************************************************************************
* Copyright (c) 2007, 2008 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
- *
+ * 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
*******************************************************************************/
@@ -34,7 +34,7 @@ class EventQueue implements IEventQueue, Runnable {
EventQueue() {
thread = new Thread(this);
thread.setDaemon(true);
- thread.setName("TCF Event Dispatch");
+ thread.setName("TCF Event Dispatch"); //$NON-NLS-1$
// Need to monitor jobs to detect congestion
Job.getJobManager().addJobChangeListener(new IJobChangeListener() {
@@ -60,11 +60,11 @@ class EventQueue implements IEventQueue, Runnable {
}
});
}
-
+
void start() {
thread.start();
}
-
+
void shutdown() {
try {
synchronized (this) {
@@ -77,12 +77,12 @@ class EventQueue implements IEventQueue, Runnable {
thread.join();
}
catch (Exception e) {
- Protocol.log("Failed to shutdown TCF event dispatch thread", e);
+ Protocol.log("Failed to shutdown TCF event dispatch thread", e); //$NON-NLS-1$
}
}
private void error(Throwable x) {
- Protocol.log("Unhandled excetion in TCF event dispatch", x);
+ Protocol.log("Unhandled excetion in TCF event dispatch", x); //$NON-NLS-1$
}
public void run() {
@@ -107,7 +107,7 @@ class EventQueue implements IEventQueue, Runnable {
public synchronized void invokeLater(final Runnable r) {
assert r != null;
- if (shutdown) throw new IllegalStateException("TCF event dispatch is shutdown");
+ if (shutdown) throw new IllegalStateException("TCF event dispatch is shutdown"); //$NON-NLS-1$
queue.add(r);
if (waiting) {
waiting = false;
@@ -118,7 +118,7 @@ class EventQueue implements IEventQueue, Runnable {
public boolean isDispatchThread() {
return Thread.currentThread() == thread;
}
-
+
public synchronized int getCongestion() {
int l0 = job_cnt / 10 - 100;
int l1 = queue.size() / 10 - 100;

Back to the top