Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/build.properties34
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/plugin.properties2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/AbstractStatusHandler.java40
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/StatusHandlerManager.java270
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/StatusHandlerUtil.java2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/activator/CoreBundleActivator.java118
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/interfaces/IStatusHandler.java68
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/interfaces/IStatusHandlerConstants.java134
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/internal/StatusHandlerBinding.java2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/internal/StatusHandlerBindingExtensionPointManager.java314
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/nls/Messages.java2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/nls/Messages.properties2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/status/QuestionStatus.java154
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/status/YesNoCancelStatus.java152
14 files changed, 647 insertions, 647 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/build.properties b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/build.properties
index e8d9fa711..61fc214f5 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/build.properties
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/build.properties
@@ -1,17 +1,17 @@
-###############################################################################
-# Copyright (c) 2012 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
-#
-# Contributors:
-# Wind River Systems - initial API and implementation
-###############################################################################
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .,\
- plugin.properties,\
- plugin.xml,\
- about.html
-src.includes = schema/
+###############################################################################
+# Copyright (c) 2012, 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 http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# Wind River Systems - initial API and implementation
+###############################################################################
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.properties,\
+ plugin.xml,\
+ about.html
+src.includes = schema/
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/plugin.properties b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/plugin.properties
index 3f984224e..f65014cb5 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/plugin.properties
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/plugin.properties
@@ -1,5 +1,5 @@
##################################################################################
-# Copyright (c) 2011, 2012 Wind River Systems, Inc. and others. All rights reserved.
+# Copyright (c) 2011, 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 http://www.eclipse.org/legal/epl-v10.html
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/AbstractStatusHandler.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/AbstractStatusHandler.java
index 1283fd4c8..0a7328060 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/AbstractStatusHandler.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/AbstractStatusHandler.java
@@ -1,20 +1,20 @@
-/*******************************************************************************
- * Copyright (c) 2011 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
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
- *******************************************************************************/
-package org.eclipse.tcf.te.runtime.statushandler;
-
-import org.eclipse.tcf.te.runtime.statushandler.interfaces.IStatusHandler;
-import org.eclipse.tcf.te.runtime.extensions.ExecutableExtension;
-
-/**
- * Abstract status handler implementation.
- */
-public abstract class AbstractStatusHandler extends ExecutableExtension implements IStatusHandler {
-
-}
+/*******************************************************************************
+ * Copyright (c) 2011, 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 http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.runtime.statushandler;
+
+import org.eclipse.tcf.te.runtime.statushandler.interfaces.IStatusHandler;
+import org.eclipse.tcf.te.runtime.extensions.ExecutableExtension;
+
+/**
+ * Abstract status handler implementation.
+ */
+public abstract class AbstractStatusHandler extends ExecutableExtension implements IStatusHandler {
+
+}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/StatusHandlerManager.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/StatusHandlerManager.java
index 89647f93d..38018f720 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/StatusHandlerManager.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/StatusHandlerManager.java
@@ -1,135 +1,135 @@
-/*******************************************************************************
- * Copyright (c) 2011 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
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
- *******************************************************************************/
-package org.eclipse.tcf.te.runtime.statushandler;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.core.runtime.Assert;
-import org.eclipse.tcf.te.runtime.statushandler.interfaces.IStatusHandler;
-import org.eclipse.tcf.te.runtime.statushandler.interfaces.IStatusHandlerConstants;
-import org.eclipse.tcf.te.runtime.statushandler.internal.StatusHandlerBinding;
-import org.eclipse.tcf.te.runtime.statushandler.internal.StatusHandlerBindingExtensionPointManager;
-import org.eclipse.tcf.te.runtime.extensions.AbstractExtensionPointManager;
-import org.eclipse.tcf.te.runtime.extensions.ExecutableExtensionProxy;
-
-/**
- * Status handler manager implementation.
- */
-public final class StatusHandlerManager extends AbstractExtensionPointManager<IStatusHandler> {
-
- /*
- * Thread save singleton instance creation.
- */
- private static class LazyInstance {
- public static StatusHandlerManager instance = new StatusHandlerManager();
- }
-
- /**
- * Constructor.
- */
- StatusHandlerManager() {
- super();
- }
-
- /**
- * Returns the singleton instance of the extension point manager.
- */
- public static StatusHandlerManager getInstance() {
- return LazyInstance.instance;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.tcf.te.runtime.extensions.AbstractExtensionPointManager#getExtensionPointId()
- */
- @Override
- protected String getExtensionPointId() {
- return "org.eclipse.tcf.te.runtime.statushandler.handlers"; //$NON-NLS-1$
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.tcf.te.runtime.extensions.AbstractExtensionPointManager#getConfigurationElementName()
- */
- @Override
- protected String getConfigurationElementName() {
- return "handler"; //$NON-NLS-1$
- }
-
- /**
- * Returns the list of all contributed status handler.
- *
- * @param unique If <code>true</code>, the method returns new instances for each
- * contributed status handler.
- *
- * @return The list of contributed status handler, or an empty array.
- */
- public IStatusHandler[] getHandlers(boolean unique) {
- List<IStatusHandler> contributions = new ArrayList<IStatusHandler>();
- Collection<ExecutableExtensionProxy<IStatusHandler>> statusHandlers = getExtensions().values();
- for (ExecutableExtensionProxy<IStatusHandler> statusHandler : statusHandlers) {
- IStatusHandler instance = unique ? statusHandler.newInstance() : statusHandler.getInstance();
- if (instance != null && !contributions.contains(instance)) {
- contributions.add(instance);
- }
- }
-
- return contributions.toArray(new IStatusHandler[contributions.size()]);
- }
-
- /**
- * Returns the status handler identified by its unique id. If no status
- * handler with the specified id is registered, <code>null</code> is returned.
- *
- * @param id The unique id of the status handler or <code>null</code>
- * @param unique If <code>true</code>, the method returns new instances of the status handler contribution.
- *
- * @return The status handler instance or <code>null</code>.
- */
- public IStatusHandler getHandler(String id, boolean unique) {
- IStatusHandler contribution = null;
- if (getExtensions().containsKey(id)) {
- ExecutableExtensionProxy<IStatusHandler> proxy = getExtensions().get(id);
- // Get the extension instance
- contribution = unique ? proxy.newInstance() : proxy.getInstance();
- }
-
- return contribution;
- }
-
- /**
- * Returns the status handler which are enabled for the given
- * handler context.
- *
- * @param context The handler context. Must not be <code>null</code>.
- * @return The list of status handler which are enabled or an empty array.
- */
- public IStatusHandler[] getHandler(Object context) {
- Assert.isNotNull(context);
-
- List<IStatusHandler> handlers = new ArrayList<IStatusHandler>();
-
- // Get the list of applicable bindings
- StatusHandlerBinding[] bindings = StatusHandlerBindingExtensionPointManager.getInstance().getApplicableBindings(context);
- for (StatusHandlerBinding binding : bindings) {
- IStatusHandler handler = getHandler(binding.getHandlerId(), false);
- if (handler != null && !handlers.contains(handler)) handlers.add(handler);
- }
-
- // If no applicable status handler is found, always return the default status handler
- if (handlers.isEmpty()) {
- IStatusHandler handler = getHandler(IStatusHandlerConstants.ID_DEFAUT_HANDLER, false);
- Assert.isNotNull(handler);
- handlers.add(handler);
- }
-
- return handlers.toArray(new IStatusHandler[handlers.size()]);
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2011, 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 http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.runtime.statushandler;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.core.runtime.Assert;
+import org.eclipse.tcf.te.runtime.statushandler.interfaces.IStatusHandler;
+import org.eclipse.tcf.te.runtime.statushandler.interfaces.IStatusHandlerConstants;
+import org.eclipse.tcf.te.runtime.statushandler.internal.StatusHandlerBinding;
+import org.eclipse.tcf.te.runtime.statushandler.internal.StatusHandlerBindingExtensionPointManager;
+import org.eclipse.tcf.te.runtime.extensions.AbstractExtensionPointManager;
+import org.eclipse.tcf.te.runtime.extensions.ExecutableExtensionProxy;
+
+/**
+ * Status handler manager implementation.
+ */
+public final class StatusHandlerManager extends AbstractExtensionPointManager<IStatusHandler> {
+
+ /*
+ * Thread save singleton instance creation.
+ */
+ private static class LazyInstance {
+ public static StatusHandlerManager instance = new StatusHandlerManager();
+ }
+
+ /**
+ * Constructor.
+ */
+ StatusHandlerManager() {
+ super();
+ }
+
+ /**
+ * Returns the singleton instance of the extension point manager.
+ */
+ public static StatusHandlerManager getInstance() {
+ return LazyInstance.instance;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.tcf.te.runtime.extensions.AbstractExtensionPointManager#getExtensionPointId()
+ */
+ @Override
+ protected String getExtensionPointId() {
+ return "org.eclipse.tcf.te.runtime.statushandler.handlers"; //$NON-NLS-1$
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.tcf.te.runtime.extensions.AbstractExtensionPointManager#getConfigurationElementName()
+ */
+ @Override
+ protected String getConfigurationElementName() {
+ return "handler"; //$NON-NLS-1$
+ }
+
+ /**
+ * Returns the list of all contributed status handler.
+ *
+ * @param unique If <code>true</code>, the method returns new instances for each
+ * contributed status handler.
+ *
+ * @return The list of contributed status handler, or an empty array.
+ */
+ public IStatusHandler[] getHandlers(boolean unique) {
+ List<IStatusHandler> contributions = new ArrayList<IStatusHandler>();
+ Collection<ExecutableExtensionProxy<IStatusHandler>> statusHandlers = getExtensions().values();
+ for (ExecutableExtensionProxy<IStatusHandler> statusHandler : statusHandlers) {
+ IStatusHandler instance = unique ? statusHandler.newInstance() : statusHandler.getInstance();
+ if (instance != null && !contributions.contains(instance)) {
+ contributions.add(instance);
+ }
+ }
+
+ return contributions.toArray(new IStatusHandler[contributions.size()]);
+ }
+
+ /**
+ * Returns the status handler identified by its unique id. If no status
+ * handler with the specified id is registered, <code>null</code> is returned.
+ *
+ * @param id The unique id of the status handler or <code>null</code>
+ * @param unique If <code>true</code>, the method returns new instances of the status handler contribution.
+ *
+ * @return The status handler instance or <code>null</code>.
+ */
+ public IStatusHandler getHandler(String id, boolean unique) {
+ IStatusHandler contribution = null;
+ if (getExtensions().containsKey(id)) {
+ ExecutableExtensionProxy<IStatusHandler> proxy = getExtensions().get(id);
+ // Get the extension instance
+ contribution = unique ? proxy.newInstance() : proxy.getInstance();
+ }
+
+ return contribution;
+ }
+
+ /**
+ * Returns the status handler which are enabled for the given
+ * handler context.
+ *
+ * @param context The handler context. Must not be <code>null</code>.
+ * @return The list of status handler which are enabled or an empty array.
+ */
+ public IStatusHandler[] getHandler(Object context) {
+ Assert.isNotNull(context);
+
+ List<IStatusHandler> handlers = new ArrayList<IStatusHandler>();
+
+ // Get the list of applicable bindings
+ StatusHandlerBinding[] bindings = StatusHandlerBindingExtensionPointManager.getInstance().getApplicableBindings(context);
+ for (StatusHandlerBinding binding : bindings) {
+ IStatusHandler handler = getHandler(binding.getHandlerId(), false);
+ if (handler != null && !handlers.contains(handler)) handlers.add(handler);
+ }
+
+ // If no applicable status handler is found, always return the default status handler
+ if (handlers.isEmpty()) {
+ IStatusHandler handler = getHandler(IStatusHandlerConstants.ID_DEFAUT_HANDLER, false);
+ Assert.isNotNull(handler);
+ handlers.add(handler);
+ }
+
+ return handlers.toArray(new IStatusHandler[handlers.size()]);
+ }
+}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/StatusHandlerUtil.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/StatusHandlerUtil.java
index 80af56237..cc5bda8d4 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/StatusHandlerUtil.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/StatusHandlerUtil.java
@@ -2,7 +2,7 @@
* StatusHandlerUtil.java
* Created on May 21, 2012
*
- * Copyright (c) 2012, 2013 Wind River Systems, Inc.
+ * Copyright (c) 2012, 2014 Wind River Systems, Inc.
*
* The right to copy, distribute, modify, or otherwise make use
* of this software may be licensed only pursuant to the terms
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/activator/CoreBundleActivator.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/activator/CoreBundleActivator.java
index 41898ce77..9d1d5544a 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/activator/CoreBundleActivator.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/activator/CoreBundleActivator.java
@@ -1,59 +1,59 @@
-/*******************************************************************************
- * Copyright (c) 2011, 2012 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
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
- *******************************************************************************/
-package org.eclipse.tcf.te.runtime.statushandler.activator;
-
-import org.osgi.framework.BundleActivator;
-import org.osgi.framework.BundleContext;
-
-/**
- * The activator class controls the plug-in life cycle
- */
-public class CoreBundleActivator implements BundleActivator {
- // The bundle context
- private static BundleContext context;
-
- /**
- * Returns the bundle context
- *
- * @return the bundle context
- */
- public static BundleContext getContext() {
- return context;
- }
-
- /**
- * Convenience method which returns the unique identifier of this plugin.
- */
- public static String getUniqueIdentifier() {
- if (getContext() != null && getContext().getBundle() != null) {
- return getContext().getBundle().getSymbolicName();
- }
- return "org.eclipse.tcf.te.runtime.statushandler"; //$NON-NLS-1$
- }
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
- */
- @Override
- public void start(BundleContext bundleContext) throws Exception {
- CoreBundleActivator.context = bundleContext;
- }
-
- /*
- * (non-Javadoc)
- * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
- */
- @Override
- public void stop(BundleContext bundleContext) throws Exception {
- CoreBundleActivator.context = null;
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2011, 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 http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.runtime.statushandler.activator;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class CoreBundleActivator implements BundleActivator {
+ // The bundle context
+ private static BundleContext context;
+
+ /**
+ * Returns the bundle context
+ *
+ * @return the bundle context
+ */
+ public static BundleContext getContext() {
+ return context;
+ }
+
+ /**
+ * Convenience method which returns the unique identifier of this plugin.
+ */
+ public static String getUniqueIdentifier() {
+ if (getContext() != null && getContext().getBundle() != null) {
+ return getContext().getBundle().getSymbolicName();
+ }
+ return "org.eclipse.tcf.te.runtime.statushandler"; //$NON-NLS-1$
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#start(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void start(BundleContext bundleContext) throws Exception {
+ CoreBundleActivator.context = bundleContext;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.osgi.framework.BundleActivator#stop(org.osgi.framework.BundleContext)
+ */
+ @Override
+ public void stop(BundleContext bundleContext) throws Exception {
+ CoreBundleActivator.context = null;
+ }
+
+}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/interfaces/IStatusHandler.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/interfaces/IStatusHandler.java
index dcf0a35b7..c0b7c4a92 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/interfaces/IStatusHandler.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/interfaces/IStatusHandler.java
@@ -1,34 +1,34 @@
-/*******************************************************************************
- * Copyright (c) 2011, 2012 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
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
- *******************************************************************************/
-package org.eclipse.tcf.te.runtime.statushandler.interfaces;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.tcf.te.runtime.interfaces.callback.ICallback;
-import org.eclipse.tcf.te.runtime.interfaces.extensions.IExecutableExtension;
-import org.eclipse.tcf.te.runtime.interfaces.properties.IPropertiesContainer;
-
-/**
- * Interface to be implemented by status handler contributions.
- */
-public interface IStatusHandler extends IExecutableExtension {
-
- /**
- * Handle the given status and invoke the callback if finished.
- * <p>
- * By design, the method behavior is asynchronous. It's up to the status handle contributor if
- * the implementation is asynchronous or synchronous. Synchronous implementations must invoke
- * the callback too if finished.
- *
- * @param status The status. Must not be <code>null</code>.
- * @param data The custom status data object, or <code>null</code> if none.
- * @param done The callback, or <code>null</code>.
- */
- public void handleStatus(IStatus status, IPropertiesContainer data, ICallback done);
-}
+/*******************************************************************************
+ * Copyright (c) 2011, 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 http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.runtime.statushandler.interfaces;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.tcf.te.runtime.interfaces.callback.ICallback;
+import org.eclipse.tcf.te.runtime.interfaces.extensions.IExecutableExtension;
+import org.eclipse.tcf.te.runtime.interfaces.properties.IPropertiesContainer;
+
+/**
+ * Interface to be implemented by status handler contributions.
+ */
+public interface IStatusHandler extends IExecutableExtension {
+
+ /**
+ * Handle the given status and invoke the callback if finished.
+ * <p>
+ * By design, the method behavior is asynchronous. It's up to the status handle contributor if
+ * the implementation is asynchronous or synchronous. Synchronous implementations must invoke
+ * the callback too if finished.
+ *
+ * @param status The status. Must not be <code>null</code>.
+ * @param data The custom status data object, or <code>null</code> if none.
+ * @param done The callback, or <code>null</code>.
+ */
+ public void handleStatus(IStatus status, IPropertiesContainer data, ICallback done);
+}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/interfaces/IStatusHandlerConstants.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/interfaces/IStatusHandlerConstants.java
index ac92e91d1..b77a88973 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/interfaces/IStatusHandlerConstants.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/interfaces/IStatusHandlerConstants.java
@@ -1,67 +1,67 @@
-/*******************************************************************************
- * Copyright (c) 2011 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
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
- *******************************************************************************/
-package org.eclipse.tcf.te.runtime.statushandler.interfaces;
-
-/**
- * Status handler constants.
- */
-public interface IStatusHandlerConstants {
-
- /**
- * The id of the default status handler.
- */
- public final static String ID_DEFAUT_HANDLER = "org.eclipse.tcf.te.statushandler.default"; //$NON-NLS-1$
-
- /**
- * The status to handle is a question (yes/no) (value 0x100).
- */
- public final static int QUESTION = 0x100;
-
- /**
- * The status to handle is a question (yes/no) with cancel (value 0x200).
- */
- public final static int YES_NO_CANCEL = 0x200;
-
- /**
- * Property: The title of the message dialog.
- * The value is expected to be a string.
- */
- public final static String PROPERTY_TITLE = "title"; //$NON-NLS-1$
-
- /**
- * Property: An string array listing the labels of the message dialog buttons.
- * If <code>null</code>, the default labeling, typically &quot;OK&quot;
- * for a single button message dialog, will be applied.
- */
- public final static String PROPERTY_BUTTON_LABEL = "buttonLabel"; //$NON-NLS-1$
-
- /**
- * Property: The context help id of the message dialog.
- * The value is expected to be a string.
- */
- public final static String PROPERTY_CONTEXT_HELP_ID = "contextHelpId"; //$NON-NLS-1$
-
- /**
- * Property: The preference slot id for the &quot;don't ask again&quot; checkbox.
- * The value is expected to be a string.
- */
- public final static String PROPERTY_DONT_ASK_AGAIN_ID = "dontAskAgainId"; //$NON-NLS-1$
-
- /**
- * Property: The caller of the status handler. The value is expected to
- * be the caller object or the callers class object.
- */
- public final static String PROPERTY_CALLER = "caller"; //$NON-NLS-1$
-
- /**
- * Property: The result of the status handling.
- */
- public final static String PROPERTY_RESULT = "result"; //$NON-NLS-1$
-}
+/*******************************************************************************
+ * Copyright (c) 2011, 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 http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.runtime.statushandler.interfaces;
+
+/**
+ * Status handler constants.
+ */
+public interface IStatusHandlerConstants {
+
+ /**
+ * The id of the default status handler.
+ */
+ public final static String ID_DEFAUT_HANDLER = "org.eclipse.tcf.te.statushandler.default"; //$NON-NLS-1$
+
+ /**
+ * The status to handle is a question (yes/no) (value 0x100).
+ */
+ public final static int QUESTION = 0x100;
+
+ /**
+ * The status to handle is a question (yes/no) with cancel (value 0x200).
+ */
+ public final static int YES_NO_CANCEL = 0x200;
+
+ /**
+ * Property: The title of the message dialog.
+ * The value is expected to be a string.
+ */
+ public final static String PROPERTY_TITLE = "title"; //$NON-NLS-1$
+
+ /**
+ * Property: An string array listing the labels of the message dialog buttons.
+ * If <code>null</code>, the default labeling, typically &quot;OK&quot;
+ * for a single button message dialog, will be applied.
+ */
+ public final static String PROPERTY_BUTTON_LABEL = "buttonLabel"; //$NON-NLS-1$
+
+ /**
+ * Property: The context help id of the message dialog.
+ * The value is expected to be a string.
+ */
+ public final static String PROPERTY_CONTEXT_HELP_ID = "contextHelpId"; //$NON-NLS-1$
+
+ /**
+ * Property: The preference slot id for the &quot;don't ask again&quot; checkbox.
+ * The value is expected to be a string.
+ */
+ public final static String PROPERTY_DONT_ASK_AGAIN_ID = "dontAskAgainId"; //$NON-NLS-1$
+
+ /**
+ * Property: The caller of the status handler. The value is expected to
+ * be the caller object or the callers class object.
+ */
+ public final static String PROPERTY_CALLER = "caller"; //$NON-NLS-1$
+
+ /**
+ * Property: The result of the status handling.
+ */
+ public final static String PROPERTY_RESULT = "result"; //$NON-NLS-1$
+}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/internal/StatusHandlerBinding.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/internal/StatusHandlerBinding.java
index 5ed6ea423..c8262cbac 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/internal/StatusHandlerBinding.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/internal/StatusHandlerBinding.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2012 Wind River Systems, Inc. and others. All rights reserved.
+ * Copyright (c) 2011, 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 http://www.eclipse.org/legal/epl-v10.html
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/internal/StatusHandlerBindingExtensionPointManager.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/internal/StatusHandlerBindingExtensionPointManager.java
index 7acbf8954..f39ba7168 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/internal/StatusHandlerBindingExtensionPointManager.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/internal/StatusHandlerBindingExtensionPointManager.java
@@ -1,157 +1,157 @@
-/*******************************************************************************
- * Copyright (c) 2011, 2012 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
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
- *******************************************************************************/
-package org.eclipse.tcf.te.runtime.statushandler.internal;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-
-import org.eclipse.core.expressions.EvaluationContext;
-import org.eclipse.core.expressions.EvaluationResult;
-import org.eclipse.core.expressions.Expression;
-import org.eclipse.core.runtime.CoreException;
-import org.eclipse.core.runtime.IConfigurationElement;
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.tcf.te.runtime.extensions.AbstractExtensionPointManager;
-import org.eclipse.tcf.te.runtime.extensions.ExecutableExtensionProxy;
-import org.eclipse.tcf.te.runtime.statushandler.activator.CoreBundleActivator;
-
-
-/**
- * Status handler binding extension point manager implementation.
- */
-public class StatusHandlerBindingExtensionPointManager extends AbstractExtensionPointManager<StatusHandlerBinding> {
-
- /*
- * Thread save singleton instance creation.
- */
- private static class LazyInstance {
- public static StatusHandlerBindingExtensionPointManager instance = new StatusHandlerBindingExtensionPointManager();
- }
-
- /**
- * Constructor.
- */
- StatusHandlerBindingExtensionPointManager() {
- super();
- }
-
- /**
- * Returns the singleton instance of the extension point manager.
- */
- public static StatusHandlerBindingExtensionPointManager getInstance() {
- return LazyInstance.instance;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.tcf.te.runtime.extensions.AbstractExtensionPointManager#getExtensionPointId()
- */
- @Override
- protected String getExtensionPointId() {
- return "org.eclipse.tcf.te.runtime.statushandler.bindings"; //$NON-NLS-1$
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.tcf.te.runtime.extensions.AbstractExtensionPointManager#getConfigurationElementName()
- */
- @Override
- protected String getConfigurationElementName() {
- return "binding"; //$NON-NLS-1$
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.tcf.te.runtime.extensions.AbstractExtensionPointManager#doCreateExtensionProxy(org.eclipse.core.runtime.IConfigurationElement)
- */
- @Override
- protected ExecutableExtensionProxy<StatusHandlerBinding> doCreateExtensionProxy(IConfigurationElement element) throws CoreException {
- return new ExecutableExtensionProxy<StatusHandlerBinding>(element) {
- /* (non-Javadoc)
- * @see org.eclipse.tcf.te.runtime.extensions.ExecutableExtensionProxy#newInstance()
- */
- @Override
- public StatusHandlerBinding newInstance() {
- StatusHandlerBinding instance = new StatusHandlerBinding();
- try {
- instance.setInitializationData(getConfigurationElement(), null, null);
- } catch (CoreException e) {
- IStatus status = new Status(IStatus.ERROR, CoreBundleActivator.getUniqueIdentifier(),
- e.getLocalizedMessage(), e);
- Platform.getLog(CoreBundleActivator.getContext().getBundle()).log(status);
- }
- return instance;
- }
- };
- }
-
- /**
- * Returns the applicable status handler bindings for the given handler context.
- *
- * @param context The handler context or <code>null</code>.
- * @return The list of applicable editor page bindings or an empty array.
- */
- public StatusHandlerBinding[] getApplicableBindings(Object context) {
- List<StatusHandlerBinding> applicable = new ArrayList<StatusHandlerBinding>();
-
- for (StatusHandlerBinding binding : getBindings()) {
- Expression enablement = binding.getEnablement();
-
- // The binding is applicable by default if no expression is specified.
- boolean isApplicable = enablement == null;
-
- if (enablement != null) {
- if (context != null) {
- // Set the default variable to the handler context.
- EvaluationContext evalContext = new EvaluationContext(null, context);
- evalContext.addVariable("context", context); //$NON-NLS-1$
- // Allow plugin activation
- evalContext.setAllowPluginActivation(true);
- // Evaluate the expression
- try {
- isApplicable = enablement.evaluate(evalContext).equals(EvaluationResult.TRUE);
- } catch (CoreException e) {
- IStatus status = new Status(IStatus.ERROR, CoreBundleActivator.getUniqueIdentifier(),
- e.getLocalizedMessage(), e);
- Platform.getLog(CoreBundleActivator.getContext().getBundle()).log(status);
- }
- } else {
- // The enablement is false by definition if no handler context is given.
- isApplicable = false;
- }
- }
-
- // Add the binding if applicable
- if (isApplicable) {
- applicable.add(binding);
- }
- }
-
- return applicable.toArray(new StatusHandlerBinding[applicable.size()]);
- }
-
- /**
- * Returns the list of all contributed status handler bindings.
- *
- * @return The list of contributed status handler bindings, or an empty array.
- */
- public StatusHandlerBinding[] getBindings() {
- List<StatusHandlerBinding> contributions = new ArrayList<StatusHandlerBinding>();
- Collection<ExecutableExtensionProxy<StatusHandlerBinding>> statusHandlerBindings = getExtensions().values();
- for (ExecutableExtensionProxy<StatusHandlerBinding> statusHandlerBinding : statusHandlerBindings) {
- StatusHandlerBinding instance = statusHandlerBinding.getInstance();
- if (instance != null && !contributions.contains(instance)) {
- contributions.add(instance);
- }
- }
-
- return contributions.toArray(new StatusHandlerBinding[contributions.size()]);
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2011, 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 http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.runtime.statushandler.internal;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+import org.eclipse.core.expressions.EvaluationContext;
+import org.eclipse.core.expressions.EvaluationResult;
+import org.eclipse.core.expressions.Expression;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IConfigurationElement;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.tcf.te.runtime.extensions.AbstractExtensionPointManager;
+import org.eclipse.tcf.te.runtime.extensions.ExecutableExtensionProxy;
+import org.eclipse.tcf.te.runtime.statushandler.activator.CoreBundleActivator;
+
+
+/**
+ * Status handler binding extension point manager implementation.
+ */
+public class StatusHandlerBindingExtensionPointManager extends AbstractExtensionPointManager<StatusHandlerBinding> {
+
+ /*
+ * Thread save singleton instance creation.
+ */
+ private static class LazyInstance {
+ public static StatusHandlerBindingExtensionPointManager instance = new StatusHandlerBindingExtensionPointManager();
+ }
+
+ /**
+ * Constructor.
+ */
+ StatusHandlerBindingExtensionPointManager() {
+ super();
+ }
+
+ /**
+ * Returns the singleton instance of the extension point manager.
+ */
+ public static StatusHandlerBindingExtensionPointManager getInstance() {
+ return LazyInstance.instance;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.tcf.te.runtime.extensions.AbstractExtensionPointManager#getExtensionPointId()
+ */
+ @Override
+ protected String getExtensionPointId() {
+ return "org.eclipse.tcf.te.runtime.statushandler.bindings"; //$NON-NLS-1$
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.tcf.te.runtime.extensions.AbstractExtensionPointManager#getConfigurationElementName()
+ */
+ @Override
+ protected String getConfigurationElementName() {
+ return "binding"; //$NON-NLS-1$
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.tcf.te.runtime.extensions.AbstractExtensionPointManager#doCreateExtensionProxy(org.eclipse.core.runtime.IConfigurationElement)
+ */
+ @Override
+ protected ExecutableExtensionProxy<StatusHandlerBinding> doCreateExtensionProxy(IConfigurationElement element) throws CoreException {
+ return new ExecutableExtensionProxy<StatusHandlerBinding>(element) {
+ /* (non-Javadoc)
+ * @see org.eclipse.tcf.te.runtime.extensions.ExecutableExtensionProxy#newInstance()
+ */
+ @Override
+ public StatusHandlerBinding newInstance() {
+ StatusHandlerBinding instance = new StatusHandlerBinding();
+ try {
+ instance.setInitializationData(getConfigurationElement(), null, null);
+ } catch (CoreException e) {
+ IStatus status = new Status(IStatus.ERROR, CoreBundleActivator.getUniqueIdentifier(),
+ e.getLocalizedMessage(), e);
+ Platform.getLog(CoreBundleActivator.getContext().getBundle()).log(status);
+ }
+ return instance;
+ }
+ };
+ }
+
+ /**
+ * Returns the applicable status handler bindings for the given handler context.
+ *
+ * @param context The handler context or <code>null</code>.
+ * @return The list of applicable editor page bindings or an empty array.
+ */
+ public StatusHandlerBinding[] getApplicableBindings(Object context) {
+ List<StatusHandlerBinding> applicable = new ArrayList<StatusHandlerBinding>();
+
+ for (StatusHandlerBinding binding : getBindings()) {
+ Expression enablement = binding.getEnablement();
+
+ // The binding is applicable by default if no expression is specified.
+ boolean isApplicable = enablement == null;
+
+ if (enablement != null) {
+ if (context != null) {
+ // Set the default variable to the handler context.
+ EvaluationContext evalContext = new EvaluationContext(null, context);
+ evalContext.addVariable("context", context); //$NON-NLS-1$
+ // Allow plugin activation
+ evalContext.setAllowPluginActivation(true);
+ // Evaluate the expression
+ try {
+ isApplicable = enablement.evaluate(evalContext).equals(EvaluationResult.TRUE);
+ } catch (CoreException e) {
+ IStatus status = new Status(IStatus.ERROR, CoreBundleActivator.getUniqueIdentifier(),
+ e.getLocalizedMessage(), e);
+ Platform.getLog(CoreBundleActivator.getContext().getBundle()).log(status);
+ }
+ } else {
+ // The enablement is false by definition if no handler context is given.
+ isApplicable = false;
+ }
+ }
+
+ // Add the binding if applicable
+ if (isApplicable) {
+ applicable.add(binding);
+ }
+ }
+
+ return applicable.toArray(new StatusHandlerBinding[applicable.size()]);
+ }
+
+ /**
+ * Returns the list of all contributed status handler bindings.
+ *
+ * @return The list of contributed status handler bindings, or an empty array.
+ */
+ public StatusHandlerBinding[] getBindings() {
+ List<StatusHandlerBinding> contributions = new ArrayList<StatusHandlerBinding>();
+ Collection<ExecutableExtensionProxy<StatusHandlerBinding>> statusHandlerBindings = getExtensions().values();
+ for (ExecutableExtensionProxy<StatusHandlerBinding> statusHandlerBinding : statusHandlerBindings) {
+ StatusHandlerBinding instance = statusHandlerBinding.getInstance();
+ if (instance != null && !contributions.contains(instance)) {
+ contributions.add(instance);
+ }
+ }
+
+ return contributions.toArray(new StatusHandlerBinding[contributions.size()]);
+ }
+}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/nls/Messages.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/nls/Messages.java
index 8715718ac..2471f84e9 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/nls/Messages.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/nls/Messages.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011 Wind River Systems, Inc. and others. All rights reserved.
+ * Copyright (c) 2011, 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 http://www.eclipse.org/legal/epl-v10.html
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/nls/Messages.properties b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/nls/Messages.properties
index dba721088..e9d2beb2d 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/nls/Messages.properties
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/nls/Messages.properties
@@ -1,5 +1,5 @@
###############################################################################
-# Copyright (c) 2012 Wind River Systems, Inc. and others. All rights reserved.
+# Copyright (c) 2012, 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 http://www.eclipse.org/legal/epl-v10.html
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/status/QuestionStatus.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/status/QuestionStatus.java
index 9bd1acd49..4fb305cad 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/status/QuestionStatus.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/status/QuestionStatus.java
@@ -1,77 +1,77 @@
-/*******************************************************************************
- * Copyright (c) 2012 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
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
- *******************************************************************************/
-package org.eclipse.tcf.te.runtime.statushandler.status;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.tcf.te.runtime.statushandler.interfaces.IStatusHandlerConstants;
-
-/**
- * Special status implementation to handle questions.
- * <p>
- * <b>Note:</b>
- * <ul>
- * <li>{@link #getSeverity()} will always return {@link IStatusHandlerConstants#QUESTION}</li>
- * <li>{@link #setSeverity(int)} will be ignored</li>
- * </ul>
- */
-public class QuestionStatus extends Status {
-
- /**
- * Constructor.
- *
- * @param pluginId The unique plugin id.
- * @param message The message.
- */
- public QuestionStatus(String pluginId, String message) {
- super(IStatus.OK, pluginId, message);
-
- }
-
- /**
- * Constructor.
- *
- * @param pluginId The unique plugin id.
- * @param message The message.
- * @param exception The exception.
- */
- public QuestionStatus(String pluginId, String message, Throwable exception) {
- super(IStatus.OK, pluginId, message, exception);
-
- }
-
- /**
- * Constructor.
- *
- * @param pluginId The unique plugin id.
- * @param code The code.
- * @param message The message.
- * @param exception The exception.
- */
- public QuestionStatus(String pluginId, int code, String message, Throwable exception) {
- super(IStatus.OK, pluginId, code, message, exception);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.core.runtime.Status#getSeverity()
- */
- @Override
- public final int getSeverity() {
- return IStatusHandlerConstants.QUESTION;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.core.runtime.Status#setSeverity(int)
- */
- @Override
- protected final void setSeverity(int severity) {
- if (IStatus.OK == severity) super.setSeverity(severity);
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2012, 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 http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.runtime.statushandler.status;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.tcf.te.runtime.statushandler.interfaces.IStatusHandlerConstants;
+
+/**
+ * Special status implementation to handle questions.
+ * <p>
+ * <b>Note:</b>
+ * <ul>
+ * <li>{@link #getSeverity()} will always return {@link IStatusHandlerConstants#QUESTION}</li>
+ * <li>{@link #setSeverity(int)} will be ignored</li>
+ * </ul>
+ */
+public class QuestionStatus extends Status {
+
+ /**
+ * Constructor.
+ *
+ * @param pluginId The unique plugin id.
+ * @param message The message.
+ */
+ public QuestionStatus(String pluginId, String message) {
+ super(IStatus.OK, pluginId, message);
+
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param pluginId The unique plugin id.
+ * @param message The message.
+ * @param exception The exception.
+ */
+ public QuestionStatus(String pluginId, String message, Throwable exception) {
+ super(IStatus.OK, pluginId, message, exception);
+
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param pluginId The unique plugin id.
+ * @param code The code.
+ * @param message The message.
+ * @param exception The exception.
+ */
+ public QuestionStatus(String pluginId, int code, String message, Throwable exception) {
+ super(IStatus.OK, pluginId, code, message, exception);
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.core.runtime.Status#getSeverity()
+ */
+ @Override
+ public final int getSeverity() {
+ return IStatusHandlerConstants.QUESTION;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.core.runtime.Status#setSeverity(int)
+ */
+ @Override
+ protected final void setSeverity(int severity) {
+ if (IStatus.OK == severity) super.setSeverity(severity);
+ }
+}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/status/YesNoCancelStatus.java b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/status/YesNoCancelStatus.java
index 56750620b..333fdfe85 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/status/YesNoCancelStatus.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.runtime.statushandler/src/org/eclipse/tcf/te/runtime/statushandler/status/YesNoCancelStatus.java
@@ -1,76 +1,76 @@
-/*******************************************************************************
- * Copyright (c) 2012 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
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
- *******************************************************************************/
-package org.eclipse.tcf.te.runtime.statushandler.status;
-
-import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Status;
-import org.eclipse.tcf.te.runtime.statushandler.interfaces.IStatusHandlerConstants;
-
-/**
- * Special status implementation to handle questions.
- * <p>
- * <b>Note:</b>
- * <ul>
- * <li>{@link #getSeverity()} will always return {@link IStatusHandlerConstants#YES_NO_CANCEL}</li>
- * <li>{@link #setSeverity(int)} will be ignored</li>
- * </ul>
- */
-public class YesNoCancelStatus extends Status {
-
- /**
- * Constructor.
- *
- * @param pluginId The unique plugin id.
- * @param message The message.
- */
- public YesNoCancelStatus(String pluginId, String message) {
- super(IStatus.OK, pluginId, message);
-
- }
-
- /**
- * Constructor.
- *
- * @param pluginId The unique plugin id.
- * @param message The message.
- * @param exception The exception.
- */
- public YesNoCancelStatus(String pluginId, String message, Throwable exception) {
- super(IStatus.OK, pluginId, message, exception);
-
- }
-
- /**
- * Constructor.
- *
- * @param pluginId The unique plugin id.
- * @param code The code.
- * @param message The message.
- * @param exception The exception.
- */
- public YesNoCancelStatus(String pluginId, int code, String message, Throwable exception) {
- super(IStatus.OK, pluginId, code, message, exception);
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.core.runtime.Status#getSeverity()
- */
- @Override
- public final int getSeverity() {
- return IStatusHandlerConstants.YES_NO_CANCEL;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.core.runtime.Status#setSeverity(int)
- */
- @Override
- protected final void setSeverity(int severity) {
- }
-}
+/*******************************************************************************
+ * Copyright (c) 2012, 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 http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.tcf.te.runtime.statushandler.status;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.tcf.te.runtime.statushandler.interfaces.IStatusHandlerConstants;
+
+/**
+ * Special status implementation to handle questions.
+ * <p>
+ * <b>Note:</b>
+ * <ul>
+ * <li>{@link #getSeverity()} will always return {@link IStatusHandlerConstants#YES_NO_CANCEL}</li>
+ * <li>{@link #setSeverity(int)} will be ignored</li>
+ * </ul>
+ */
+public class YesNoCancelStatus extends Status {
+
+ /**
+ * Constructor.
+ *
+ * @param pluginId The unique plugin id.
+ * @param message The message.
+ */
+ public YesNoCancelStatus(String pluginId, String message) {
+ super(IStatus.OK, pluginId, message);
+
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param pluginId The unique plugin id.
+ * @param message The message.
+ * @param exception The exception.
+ */
+ public YesNoCancelStatus(String pluginId, String message, Throwable exception) {
+ super(IStatus.OK, pluginId, message, exception);
+
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param pluginId The unique plugin id.
+ * @param code The code.
+ * @param message The message.
+ * @param exception The exception.
+ */
+ public YesNoCancelStatus(String pluginId, int code, String message, Throwable exception) {
+ super(IStatus.OK, pluginId, code, message, exception);
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.core.runtime.Status#getSeverity()
+ */
+ @Override
+ public final int getSeverity() {
+ return IStatusHandlerConstants.YES_NO_CANCEL;
+ }
+
+ /* (non-Javadoc)
+ * @see org.eclipse.core.runtime.Status#setSeverity(int)
+ */
+ @Override
+ protected final void setSeverity(int severity) {
+ }
+}

Back to the top