diff options
author | Uwe Stieber | 2011-12-14 09:11:03 +0000 |
---|---|---|
committer | Uwe Stieber | 2011-12-14 09:11:03 +0000 |
commit | 3feceeebed629568a597abc1a2526fa3b0b8ecff (patch) | |
tree | 5c1eb2f87b9e847eab92c16219eb2fe5d1fca8d8 /target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/interfaces | |
parent | dd980d901b6e2501640d1c732776d4baed021752 (diff) | |
download | org.eclipse.tcf-3feceeebed629568a597abc1a2526fa3b0b8ecff.tar.gz org.eclipse.tcf-3feceeebed629568a597abc1a2526fa3b0b8ecff.tar.xz org.eclipse.tcf-3feceeebed629568a597abc1a2526fa3b0b8ecff.zip |
Target Explorer: Added scripting core plugin and updated features
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/interfaces')
2 files changed, 58 insertions, 0 deletions
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 new file mode 100644 index 000000000..54c722233 --- /dev/null +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/interfaces/IScriptLauncher.java @@ -0,0 +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();
+}
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 new file mode 100644 index 000000000..01a9969a9 --- /dev/null +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core.scripting/src/org/eclipse/tcf/te/tcf/core/scripting/interfaces/IScriptLauncherProperties.java @@ -0,0 +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$
+}
|