diff options
9 files changed, 23 insertions, 24 deletions
diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/ImageCache.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/ImageCache.java index 0a1e0a4cb..66aa97596 100644 --- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/ImageCache.java +++ b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/ImageCache.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2012 Wind River Systems, Inc. and others. + * Copyright (c) 2008, 2014 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 @@ -37,19 +37,19 @@ public class ImageCache { ImageDescriptor descriptor = desc_cache.get(name); if (descriptor == null) { Bundle bundle = Activator.getDefault().getBundle(); - if (bundle != null){ + if (bundle != null) { URL url = FileLocator.find(bundle, new Path(name), null); if (url != null) descriptor = ImageDescriptor.createFromURL(url); } if (descriptor == null) { bundle = Platform.getBundle("org.eclipse.tcf.debug.ui"); - if (bundle != null){ + if (bundle != null) { URL url = FileLocator.find(bundle, new Path(name), null); if (url != null) descriptor = ImageDescriptor.createFromURL(url); } if (descriptor == null) { bundle = Platform.getBundle("org.eclipse.debug.ui"); - if (bundle != null){ + if (bundle != null) { URL url = FileLocator.find(bundle, new Path(name), null); if (url != null) descriptor = ImageDescriptor.createFromURL(url); } diff --git a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java index d8856f97d..aeda007aa 100644 --- a/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java +++ b/plugins/org.eclipse.tcf.cdt.ui/src/org/eclipse/tcf/internal/cdt/ui/breakpoints/TCFThreadFilterEditor.java @@ -407,7 +407,7 @@ public class TCFThreadFilterEditor { } final IChannel channel = launch.getChannel(); - if (channel == null){ + if (channel == null) { return Messages.TCFThreadFilterEditorNoOpenChannel; } String result = new TCFTask<String>() { diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/AbstractChannel.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/AbstractChannel.java index cfd09d407..1969f293e 100644 --- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/AbstractChannel.java +++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/core/AbstractChannel.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Wind River Systems, Inc. and others. + * Copyright (c) 2007, 2014 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 @@ -1022,7 +1022,7 @@ public abstract class AbstractChannel implements IChannel { } } } - else if (TRACE){ + else if (TRACE) { Protocol.log("TCF channel opened but no one is listening.", null); } notifying_channel_opened = false; diff --git a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/protocol/Protocol.java b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/protocol/Protocol.java index 0ef8bfdf4..1bad1daba 100644 --- a/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/protocol/Protocol.java +++ b/plugins/org.eclipse.tcf.core/src/org/eclipse/tcf/protocol/Protocol.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2013 Wind River Systems, Inc. and others. + * Copyright (c) 2007, 2014 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 @@ -42,7 +42,7 @@ public final class Protocol { private static final String agent_id = UUID.randomUUID().toString(); private static int timer_cnt; - private static class Timer implements Comparable<Timer>{ + private static class Timer implements Comparable<Timer> { final int id; final long time; final Runnable run; @@ -414,7 +414,7 @@ public final class Protocol { * This method can be invoked from any thread. * @param provider - IServiceProvider implementation */ - public static void addServiceProvider(IServiceProvider provider){ + public static void addServiceProvider(IServiceProvider provider) { ServiceManager.addServiceProvider(provider); } @@ -423,7 +423,7 @@ public final class Protocol { * This method can be invoked from any thread. * @param provider - IServiceProvider implementation */ - public static void removeServiceProvider(IServiceProvider provider){ + public static void removeServiceProvider(IServiceProvider provider) { ServiceManager.removeServiceProvider(provider); } @@ -432,7 +432,7 @@ public final class Protocol { * This method can be invoked from any thread. * @param provider - ITransportProvider implementation */ - public static void addTransportProvider(ITransportProvider provider){ + public static void addTransportProvider(ITransportProvider provider) { TransportManager.addTransportProvider(provider); } @@ -441,7 +441,7 @@ public final class Protocol { * This method can be invoked from any thread. * @param provider - ITransportProvider implementation */ - public static void removeTransportProvider(ITransportProvider provider){ + public static void removeTransportProvider(ITransportProvider provider) { TransportManager.removeTransportProvider(provider); } } diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/ImageCache.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/ImageCache.java index 357bbae19..397d33a66 100644 --- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/ImageCache.java +++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/ImageCache.java @@ -92,7 +92,7 @@ public class ImageCache { for (String e : ext) { IPath path = new Path(name).removeFileExtension().addFileExtension(e); Bundle bundle = Platform.getBundle(Activator.PLUGIN_ID); - if (bundle != null){ + if (bundle != null) { URL url = FileLocator.find(bundle, path, null); if (url != null) { descriptor = ImageDescriptor.createFromURL(url); @@ -100,7 +100,7 @@ public class ImageCache { } } bundle = Platform.getBundle("org.eclipse.debug.ui"); - if (bundle != null){ + if (bundle != null) { URL url = FileLocator.find(bundle, path, null); if (url != null) { descriptor = ImageDescriptor.createFromURL(url); @@ -108,7 +108,7 @@ public class ImageCache { } } bundle = Platform.getBundle("org.eclipse.cdt.debug.ui"); - if (bundle != null){ + if (bundle != null) { URL url = FileLocator.find(bundle, path, null); if (url != null) { descriptor = ImageDescriptor.createFromURL(url); diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFDetailPane.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFDetailPane.java index e8f12b3bb..cf0c75ca0 100644 --- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFDetailPane.java +++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFDetailPane.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2013 Wind River Systems, Inc. and others. + * Copyright (c) 2008, 2014 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 @@ -126,7 +126,7 @@ public class TCFDetailPane implements IDetailPane, IPropertyChangeListener { return action_map.get(id); } - private void setGlobalAction(String id, IAction action){ + private void setGlobalAction(String id, IAction action) { if (part_site instanceof IViewSite) { ((IViewSite)part_site).getActionBars().setGlobalActionHandler(id, action); } diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEcho.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEcho.java index a3353a3a8..2d88b09b3 100644 --- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEcho.java +++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEcho.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2012 Wind River Systems, Inc. and others. + * Copyright (c) 2008, 2014 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 @@ -84,7 +84,7 @@ class TestEcho implements ITCFTest, IDiagnostics.DoneEcho { count = 0x400; } } - else if (msgs.isEmpty()){ + else if (msgs.isEmpty()) { test_suite.done(this, null); } } diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEchoERR.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEchoERR.java index 74254712f..8662ab4dc 100644 --- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEchoERR.java +++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEchoERR.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2013 Wind River Systems, Inc. and others. + * Copyright (c) 2010, 2014 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 @@ -10,7 +10,6 @@ *******************************************************************************/ package org.eclipse.tcf.internal.debug.tests; -import java.math.BigDecimal; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; diff --git a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEchoFP.java b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEchoFP.java index 8e1aeea31..ca7692542 100644 --- a/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEchoFP.java +++ b/plugins/org.eclipse.tcf.debug/src/org/eclipse/tcf/internal/debug/tests/TestEchoFP.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010, 2011 Wind River Systems, Inc. and others. + * Copyright (c) 2010, 2014 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 @@ -70,7 +70,7 @@ class TestEchoFP implements ITCFTest, IDiagnostics.DoneEchoFP { count = 0x800; } } - else if (msgs.isEmpty()){ + else if (msgs.isEmpty()) { test_suite.done(this, null); } } |