diff options
author | Uwe Stieber | 2014-07-22 06:18:07 +0000 |
---|---|---|
committer | Uwe Stieber | 2014-07-22 06:18:07 +0000 |
commit | 74e2cbe5e8e0a1d4b7a9d9c5b18b36d06133add8 (patch) | |
tree | 4573ae7ee7f3b58c00b9032af46e6e5c06724784 /target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting | |
parent | d8459b49d147c94baa877f455af893406ec9efca (diff) | |
download | org.eclipse.tcf-74e2cbe5e8e0a1d4b7a9d9c5b18b36d06133add8.tar.gz org.eclipse.tcf-74e2cbe5e8e0a1d4b7a9d9c5b18b36d06133add8.tar.xz org.eclipse.tcf-74e2cbe5e8e0a1d4b7a9d9c5b18b36d06133add8.zip |
Releng: Fix copyrights
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting')
11 files changed, 346 insertions, 346 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/build.properties b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/build.properties index 4cd2b9b9a..4cd41f8af 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/build.properties +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/build.properties @@ -1,15 +1,15 @@ -###############################################################################
-# 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,\
- about.html
+############################################################################### +# Copyright (c) 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,\ + about.html diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/plugin.properties b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/plugin.properties index 9b1891613..e09cfc4e2 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/plugin.properties +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/plugin.properties @@ -1,12 +1,12 @@ -################################################################################## -# Copyright (c) 2011, 2012 Wind River Systems, Inc. and others. All rights reserved. +############################################################################### +# Copyright (c) 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 -################################################################################## +# Wind River Systems - initial API and implementation +############################################################################### pluginName = Target Explorer, TCF Scripting Core Plug-in providerName = Eclipse.org - Target Explorer diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/activator/CoreBundleActivator.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/activator/CoreBundleActivator.java index a92352f3e..70c18f422 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/activator/CoreBundleActivator.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/activator/CoreBundleActivator.java @@ -1,73 +1,73 @@ -/*******************************************************************************
- * 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.tcf.core.scripting.activator;
-
-import org.eclipse.tcf.te.runtime.tracing.TraceHandler;
-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;
- // The trace handler instance
- private static volatile TraceHandler traceHandler;
-
- /**
- * 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.tcf.core.scripting"; //$NON-NLS-1$
- }
-
- /**
- * Returns the bundles trace handler.
- *
- * @return The bundles trace handler.
- */
- public static TraceHandler getTraceHandler() {
- if (traceHandler == null) {
- traceHandler = new TraceHandler(getUniqueIdentifier());
- }
- return traceHandler;
- }
-
- /* (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;
- traceHandler = null;
- }
-
-}
+/******************************************************************************* + * Copyright (c) 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.tcf.core.scripting.activator; + +import org.eclipse.tcf.te.runtime.tracing.TraceHandler; +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; + // The trace handler instance + private static volatile TraceHandler traceHandler; + + /** + * 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.tcf.core.scripting"; //$NON-NLS-1$ + } + + /** + * Returns the bundles trace handler. + * + * @return The bundles trace handler. + */ + public static TraceHandler getTraceHandler() { + if (traceHandler == null) { + traceHandler = new TraceHandler(getUniqueIdentifier()); + } + return traceHandler; + } + + /* (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; + traceHandler = null; + } + +} diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/events/ScriptEvent.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/events/ScriptEvent.java index 87e7ad85c..78bdddf08 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/events/ScriptEvent.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/events/ScriptEvent.java @@ -1,98 +1,98 @@ -/*******************************************************************************
- * 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.tcf.core.scripting.events;
-
-import java.util.EventObject;
-
-/**
- * Script event implementation.
- */
-public class ScriptEvent extends EventObject {
- private static final long serialVersionUID = -5350037587555199985L;
-
- /**
- * Script event types.
- */
- public static enum Type { START, OUTPUT, STOP }
-
- /**
- * Immutable script event message.
- */
- public static final class Message {
- /** The message type */
- public final char type;
- /** The message text */
- public final String text;
-
- /**
- * Constructor.
- */
- public Message(char type, String text) {
- this.type = type;
- this.text = text;
- }
-
- /* (non-Javadoc)
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- StringBuilder buffer = new StringBuilder(getClass().getName());
- buffer.append(": type = '"); //$NON-NLS-1$
- buffer.append(type);
- buffer.append("', text = '"); //$NON-NLS-1$
- buffer.append(text);
- buffer.append("'"); //$NON-NLS-1$
-
- return buffer.toString();
- }
- }
-
-
- private Type type;
- private Message message;
-
-
- /**
- * Constructor.
- *
- * @param source The source object. Must not be <code>null</code>.
- * @param type The script event type. Must not be <code>null</code>.
- * @param message The script event message or <code>null</code>.
- *
- * @exception IllegalArgumentException if type == null.
- */
- public ScriptEvent(Object source, Type type, Message message) {
- super(source);
-
- if (type == null) throw new IllegalArgumentException("null type"); //$NON-NLS-1$
- this.type = type;
-
- this.message = message;
- }
-
- /**
- * Returns the script event type.
- *
- * @return The script event type.
- */
- public Type getType() {
- return type;
- }
-
- /**
- * Returns the script event message.
- *
- * @return The script event message or <code>null</code>.
- */
- public Message getMessage() {
- return message;
- }
-}
+/******************************************************************************* + * Copyright (c) 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.tcf.core.scripting.events; + +import java.util.EventObject; + +/** + * Script event implementation. + */ +public class ScriptEvent extends EventObject { + private static final long serialVersionUID = -5350037587555199985L; + + /** + * Script event types. + */ + public static enum Type { START, OUTPUT, STOP } + + /** + * Immutable script event message. + */ + public static final class Message { + /** The message type */ + public final char type; + /** The message text */ + public final String text; + + /** + * Constructor. + */ + public Message(char type, String text) { + this.type = type; + this.text = text; + } + + /* (non-Javadoc) + * @see java.lang.Object#toString() + */ + @Override + public String toString() { + StringBuilder buffer = new StringBuilder(getClass().getName()); + buffer.append(": type = '"); //$NON-NLS-1$ + buffer.append(type); + buffer.append("', text = '"); //$NON-NLS-1$ + buffer.append(text); + buffer.append("'"); //$NON-NLS-1$ + + return buffer.toString(); + } + } + + + private Type type; + private Message message; + + + /** + * Constructor. + * + * @param source The source object. Must not be <code>null</code>. + * @param type The script event type. Must not be <code>null</code>. + * @param message The script event message or <code>null</code>. + * + * @exception IllegalArgumentException if type == null. + */ + public ScriptEvent(Object source, Type type, Message message) { + super(source); + + if (type == null) throw new IllegalArgumentException("null type"); //$NON-NLS-1$ + this.type = type; + + this.message = message; + } + + /** + * Returns the script event type. + * + * @return The script event type. + */ + public Type getType() { + return type; + } + + /** + * Returns the script event message. + * + * @return The script event message or <code>null</code>. + */ + public Message getMessage() { + return message; + } +} diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/interfaces/IScriptLauncher.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/interfaces/IScriptLauncher.java index 54c722233..77b456c5c 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/interfaces/IScriptLauncher.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/interfaces/IScriptLauncher.java @@ -1,35 +1,35 @@ -/*******************************************************************************
- * 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.tcf.core.scripting.interfaces;
-
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.tcf.protocol.IPeer;
-import org.eclipse.tcf.te.runtime.interfaces.callback.ICallback;
-import org.eclipse.tcf.te.runtime.interfaces.properties.IPropertiesContainer;
-
-/**
- * Interface to be implemented by script launcher implementations.
- */
-public interface IScriptLauncher extends IAdaptable {
-
- /**
- * Executes a script defined by the given properties at the specified peer.
- *
- * @param peer The peer. Must not be <code>null</code>.
- * @param params The script properties. Must not be <code>null</code>.
- * @param callback The callback or <code>null</code>.
- */
- public void launch(IPeer peer, IPropertiesContainer properties, ICallback callback);
-
- /**
- * Disposes the script launcher instance.
- */
- public void dispose();
-}
+/******************************************************************************* + * Copyright (c) 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.tcf.core.scripting.interfaces; + +import org.eclipse.core.runtime.IAdaptable; +import org.eclipse.tcf.protocol.IPeer; +import org.eclipse.tcf.te.runtime.interfaces.callback.ICallback; +import org.eclipse.tcf.te.runtime.interfaces.properties.IPropertiesContainer; + +/** + * Interface to be implemented by script launcher implementations. + */ +public interface IScriptLauncher extends IAdaptable { + + /** + * Executes a script defined by the given properties at the specified peer. + * + * @param peer The peer. Must not be <code>null</code>. + * @param params The script properties. Must not be <code>null</code>. + * @param callback The callback or <code>null</code>. + */ + public void launch(IPeer peer, IPropertiesContainer properties, ICallback callback); + + /** + * Disposes the script launcher instance. + */ + public void dispose(); +} diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/interfaces/IScriptLauncherProperties.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/interfaces/IScriptLauncherProperties.java index 01a9969a9..b72875d45 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/interfaces/IScriptLauncherProperties.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/interfaces/IScriptLauncherProperties.java @@ -1,23 +1,23 @@ -/*******************************************************************************
- * 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.tcf.core.scripting.interfaces;
-
-/**
- * Script launcher properties identifiers.
- */
-public interface IScriptLauncherProperties {
-
- /**
- * Property denoting the script to execute.
- * <p>
- * The property type is {@link String}.
- */
- public static String PROP_SCRIPT = "script.script"; //$NON-NLS-1$
-}
+/******************************************************************************* + * Copyright (c) 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.tcf.core.scripting.interfaces; + +/** + * Script launcher properties identifiers. + */ +public interface IScriptLauncherProperties { + + /** + * Property denoting the script to execute. + * <p> + * The property type is {@link String}. + */ + public static String PROP_SCRIPT = "script.script"; //$NON-NLS-1$ +} diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/launcher/ScriptLauncher.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/launcher/ScriptLauncher.java index 6bbae82e8..137a866f6 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/launcher/ScriptLauncher.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/launcher/ScriptLauncher.java @@ -1,11 +1,11 @@ /******************************************************************************* - * Copyright (c) 2011, 2012 Wind River Systems, Inc. and others. All rights reserved. + * Copyright (c) 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 + * Wind River Systems - initial API and implementation *******************************************************************************/ package org.eclipse.tcf.te.tcf.core.scripting.launcher; diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/nls/Messages.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/nls/Messages.java index b3e63f5cb..e775b67ee 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/nls/Messages.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/nls/Messages.java @@ -1,11 +1,11 @@ /******************************************************************************* - * Copyright (c) 2011 Wind River Systems, Inc. and others. All rights reserved. + * Copyright (c) 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 + * Wind River Systems - initial API and implementation *******************************************************************************/ package org.eclipse.tcf.te.tcf.core.scripting.nls; diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/nls/Messages.properties b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/nls/Messages.properties index 2141f54ef..7f4ef7c85 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/nls/Messages.properties +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/nls/Messages.properties @@ -1,11 +1,11 @@ ############################################################################### -# Copyright (c) 2012 Wind River Systems, Inc. and others. All rights reserved. +# Copyright (c) 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 +# Wind River Systems - initial API and implementation ############################################################################### ScriptLauncher_error_channelConnectFailed=Failed to connect channel for target ''{0}''.\n\nPossible Cause:\n{1} diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/parser/Parser.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/parser/Parser.java index 6b391b360..337a9f36e 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/parser/Parser.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/parser/Parser.java @@ -1,11 +1,11 @@ /******************************************************************************* - * Copyright (c) 2011, 2012 Wind River Systems, Inc. and others. All rights reserved. + * Copyright (c) 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 + * Wind River Systems - initial API and implementation *******************************************************************************/ package org.eclipse.tcf.te.tcf.core.scripting.parser; diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/parser/Token.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/parser/Token.java index 03f3528f4..d02ab81ad 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/parser/Token.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/parser/Token.java @@ -1,90 +1,90 @@ -/*******************************************************************************
- * 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.tcf.core.scripting.parser;
-
-import java.util.ArrayList;
-import java.util.List;
-
-import org.eclipse.core.runtime.Assert;
-
-/**
- * Script token. Created by the script parser on parsing the script.
- */
-public final class Token {
- // The service name
- private String serviceName;
- // The command name
- private String commandName;
- // The command arguments
- private List<Object> arguments;
-
- /**
- * Constructor.
- */
- public Token() {
- }
-
- /**
- * Sets the service name.
- *
- * @param serviceName The service name. Must not be <code>null</code>.
- */
- public void setServiceName(String serviceName) {
- Assert.isNotNull(serviceName);
- this.serviceName = serviceName;
- }
-
- /**
- * Gets the service name.
- *
- * @return The service name or <code>null</code>.
- */
- public String getServiceName() {
- return serviceName;
- }
-
- /**
- * Sets the command name.
- *
- * @param commandName The command name. Must not be <code>null</code>.
- */
- public void setCommandName(String commandName) {
- Assert.isNotNull(commandName);
- this.commandName = commandName;
- }
-
- /**
- * Returns the command name.
- *
- * @return The command name or <code>null</code>.
- */
- public String getCommandName() {
- return commandName;
- }
-
- /**
- * Adds an argument to the command arguments list.
- *
- * @param arg The argument or <code>null</code>.
- */
- public void addArgument(Object arg) {
- if (arguments == null) arguments = new ArrayList<Object>();
- arguments.add(arg);
- }
-
- /**
- * Returns the command arguments.
- *
- * @return The command arguments or an empty array.
- */
- public Object[] getArguments() {
- return arguments != null ? arguments.toArray() : new Object[0];
- }
-}
+/******************************************************************************* + * Copyright (c) 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.tcf.core.scripting.parser; + +import java.util.ArrayList; +import java.util.List; + +import org.eclipse.core.runtime.Assert; + +/** + * Script token. Created by the script parser on parsing the script. + */ +public final class Token { + // The service name + private String serviceName; + // The command name + private String commandName; + // The command arguments + private List<Object> arguments; + + /** + * Constructor. + */ + public Token() { + } + + /** + * Sets the service name. + * + * @param serviceName The service name. Must not be <code>null</code>. + */ + public void setServiceName(String serviceName) { + Assert.isNotNull(serviceName); + this.serviceName = serviceName; + } + + /** + * Gets the service name. + * + * @return The service name or <code>null</code>. + */ + public String getServiceName() { + return serviceName; + } + + /** + * Sets the command name. + * + * @param commandName The command name. Must not be <code>null</code>. + */ + public void setCommandName(String commandName) { + Assert.isNotNull(commandName); + this.commandName = commandName; + } + + /** + * Returns the command name. + * + * @return The command name or <code>null</code>. + */ + public String getCommandName() { + return commandName; + } + + /** + * Adds an argument to the command arguments list. + * + * @param arg The argument or <code>null</code>. + */ + public void addArgument(Object arg) { + if (arguments == null) arguments = new ArrayList<Object>(); + arguments.add(arg); + } + + /** + * Returns the command arguments. + * + * @return The command arguments or an empty array. + */ + public Object[] getArguments() { + return arguments != null ? arguments.toArray() : new Object[0]; + } +} |