Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-02-05 13:49:33 +0000
committerUwe Stieber2012-02-05 13:49:33 +0000
commit76ec490d3df5731990859a8a3cb9338f651c505d (patch)
treed66549a08f930281a086b0c91dfa9bbbb1be4d6f /target_explorer/plugins/org.eclipse.tcf.te.launch.core
parentda9d8d233778ca4daef83f8310bdb89459011fcb (diff)
downloadorg.eclipse.tcf-76ec490d3df5731990859a8a3cb9338f651c505d.tar.gz
org.eclipse.tcf-76ec490d3df5731990859a8a3cb9338f651c505d.tar.xz
org.eclipse.tcf-76ec490d3df5731990859a8a3cb9338f651c505d.zip
Target Explorer: Add abstract launch tab and launch tab group
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.launch.core')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/selection/RemoteContextSelectionContext.java (renamed from target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/selection/TargetSelectionContext.java)34
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/selection/interfaces/IRemoteContextSelectionContext.java (renamed from target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/selection/interfaces/ITargetSelectionContext.java)12
2 files changed, 23 insertions, 23 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/selection/TargetSelectionContext.java b/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/selection/RemoteContextSelectionContext.java
index fc274a83a..0f5ae1a52 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/selection/TargetSelectionContext.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/selection/RemoteContextSelectionContext.java
@@ -9,46 +9,46 @@
*******************************************************************************/
package org.eclipse.tcf.te.launch.core.selection;
-import org.eclipse.core.runtime.IAdaptable;
-import org.eclipse.tcf.te.launch.core.selection.interfaces.ITargetSelectionContext;
+import org.eclipse.tcf.te.launch.core.selection.interfaces.IRemoteContextSelectionContext;
+import org.eclipse.tcf.te.runtime.stepper.interfaces.IContext;
/**
- * Target selection context implementation.
+ * Remote context selection context implementation.
*/
-public class TargetSelectionContext extends AbstractSelectionContext implements ITargetSelectionContext {
- // The target context
- private IAdaptable targetCtx = null;
+public class RemoteContextSelectionContext extends AbstractSelectionContext implements IRemoteContextSelectionContext {
+ // The remote context
+ private IContext remoteCtx = null;
/**
* Constructor.
*
- * @param target The target context or <code>null</code>.
+ * @param remoteCtx The remote context or <code>null</code>.
* @param isPreferred <code>True</code> to mark the selection context the preferred context,
* <code>false</code> otherwise.
*/
- public TargetSelectionContext(IAdaptable target, boolean isPreferred) {
- this(target, null, isPreferred);
+ public RemoteContextSelectionContext(IContext remoteCtx, boolean isPreferred) {
+ this(remoteCtx, null, isPreferred);
}
/**
* Constructor.
*
- * @param target The target context or <code>null</code>.
+ * @param remoteCtx The remote context or <code>null</code>.
* @param selections The selected objects or <code>null</code>.
* @param isPreferred <code>True</code> to mark the selection context the preferred context,
* <code>false</code> otherwise.
*/
- public TargetSelectionContext(IAdaptable target, Object[] selections, boolean isPreferred) {
+ public RemoteContextSelectionContext(IContext remoteCtx, Object[] selections, boolean isPreferred) {
super(selections, isPreferred);
- this.targetCtx = target;
+ this.remoteCtx = remoteCtx;
}
/* (non-Javadoc)
- * @see org.eclipse.tcf.te.launch.core.selection.interfaces.ITargetSelectionContext#getTargetCtx()
+ * @see org.eclipse.tcf.te.launch.core.selection.interfaces.IRemoteContextSelectionContext#getRemoteCtx()
*/
@Override
- public IAdaptable getTargetCtx() {
- return targetCtx;
+ public IContext getRemoteCtx() {
+ return remoteCtx;
}
/* (non-Javadoc)
@@ -58,8 +58,8 @@ public class TargetSelectionContext extends AbstractSelectionContext implements
public String toString() {
StringBuffer toString = new StringBuffer();
- if (targetCtx != null) {
- toString.append(targetCtx.toString());
+ if (remoteCtx != null) {
+ toString.append(remoteCtx.toString());
}
toString.append(toString.length() > 0 ? " " : ""); //$NON-NLS-1$ //$NON-NLS-2$
toString.append(super.toString());
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/selection/interfaces/ITargetSelectionContext.java b/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/selection/interfaces/IRemoteContextSelectionContext.java
index ea345599e..bead6604a 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/selection/interfaces/ITargetSelectionContext.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.launch.core/src/org/eclipse/tcf/te/launch/core/selection/interfaces/IRemoteContextSelectionContext.java
@@ -9,17 +9,17 @@
*******************************************************************************/
package org.eclipse.tcf.te.launch.core.selection.interfaces;
-import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.tcf.te.runtime.stepper.interfaces.IContext;
/**
- * A selection context providing the target context for the launch.
+ * A selection context providing the remote context for the launch.
*/
-public interface ITargetSelectionContext extends ISelectionContext {
+public interface IRemoteContextSelectionContext extends ISelectionContext {
/**
- * Returns the target context.
+ * Returns the remote context.
*
- * @return The target context or <code>null</code>.
+ * @return The remote context or <code>null</code>.
*/
- public IAdaptable getTargetCtx();
+ public IContext getRemoteCtx();
}

Back to the top