Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-04-05 09:55:38 +0000
committerUwe Stieber2012-04-05 09:56:41 +0000
commitbaf7e9de27649d62c66f030bab4d8481a18eebbe (patch)
treeb5fe1f9eac3c72a69624b98c5db7ec06dacf383e /target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui
parent501d4943db3dec38d7f30017a810ea9cc64d7df9 (diff)
downloadorg.eclipse.tcf-baf7e9de27649d62c66f030bab4d8481a18eebbe.tar.gz
org.eclipse.tcf-baf7e9de27649d62c66f030bab4d8481a18eebbe.tar.xz
org.eclipse.tcf-baf7e9de27649d62c66f030bab4d8481a18eebbe.zip
Target Explorer: Changed IChannelManager API to allow for greater flexibility in regards to future parameterization needs
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/handler/AbstractChannelCommandHandler.java2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/ProcessModel.java52
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/steps/AttachStep.java2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/steps/DetachStep.java2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/steps/TerminateStep.java4
5 files changed, 31 insertions, 31 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/handler/AbstractChannelCommandHandler.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/handler/AbstractChannelCommandHandler.java
index ceb9b4d10..396c827fd 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/handler/AbstractChannelCommandHandler.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/internal/handler/AbstractChannelCommandHandler.java
@@ -62,7 +62,7 @@ public abstract class AbstractChannelCommandHandler extends AbstractHandler {
// If the peer is available, we can open a channel to the remote peer
if (peer != null) {
// Get the channel
- Tcf.getChannelManager().openChannel(peer, false, new IChannelManager.DoneOpenChannel() {
+ Tcf.getChannelManager().openChannel(peer, null, new IChannelManager.DoneOpenChannel() {
@Override
public void doneOpenChannel(final Throwable error, final IChannel channel) {
if (error == null) {
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/ProcessModel.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/ProcessModel.java
index 18bb108ba..9a3051f62 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/ProcessModel.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/ProcessModel.java
@@ -39,8 +39,8 @@ public class ProcessModel implements IPreferenceConsts{
/**
* Get the process model stored in the peer model.
- * If there's no process model yet, create a new process model.
- *
+ * If there's no process model yet, create a new process model.
+ *
* @param peerModel The target's peer model.
* @return The process model representing the process.
*/
@@ -65,7 +65,7 @@ public class ProcessModel implements IPreferenceConsts{
}
return null;
}
-
+
// The root node of the peer model
private ProcessTreeNode root;
// The polling interval in seconds. If it is zero, then stop polling periodically.
@@ -86,7 +86,7 @@ public class ProcessModel implements IPreferenceConsts{
/**
* Get the root node of the peer model.
- *
+ *
* @return The root node.
*/
public ProcessTreeNode getRoot() {
@@ -95,7 +95,7 @@ public class ProcessModel implements IPreferenceConsts{
/**
* Set the root node of the peer model.
- *
+ *
* @param root The root node
*/
public void createRoot(IPeerModel peerModel ) {
@@ -112,9 +112,9 @@ public class ProcessModel implements IPreferenceConsts{
}
/**
- * Set the status of the polling and
+ * Set the status of the polling and
* fire a property change event.
- *
+ *
* @param stopped if the polling should be stopped.
*/
void setStopped(boolean stopped) {
@@ -158,10 +158,10 @@ public class ProcessModel implements IPreferenceConsts{
}};
pollingTimer.schedule(pollingTask, interval * 1000L);
}
-
+
/**
- * Set new interval.
- *
+ * Set new interval.
+ *
* @param interval The new interval.
*/
public void setInterval(int interval) {
@@ -181,7 +181,7 @@ public class ProcessModel implements IPreferenceConsts{
/**
* Get the current interval.
- *
+ *
* @return the current interval.
*/
public int getInterval() {
@@ -190,31 +190,31 @@ public class ProcessModel implements IPreferenceConsts{
/**
* Query the children of the given process context.
- *
+ *
* @param parentNode The process context node. Must not be <code>null</code>.
*/
public void queryChildren(ProcessTreeNode parentNode) {
Assert.isNotNull(parentNode);
parentNode.childrenQueryRunning = true;
- Tcf.getChannelManager().openChannel(parentNode.peerNode.getPeer(), false, new QueryDoneOpenChannel(parentNode));
+ Tcf.getChannelManager().openChannel(parentNode.peerNode.getPeer(), null, new QueryDoneOpenChannel(parentNode));
}
/**
* Recursively refresh the children of the given process context with a callback, which is
* called when whole process is finished.
- *
+ *
* @param parentNode The process context node. Must not be <code>null</code>.
* @param callback The callback object, or <code>null</code> when callback is not needed.
*/
public void refresh(final ProcessTreeNode parentNode, final ICallback callback) {
Assert.isNotNull(parentNode);
parentNode.childrenQueryRunning = true;
- Tcf.getChannelManager().openChannel(parentNode.peerNode.getPeer(), false, new RefreshDoneOpenChannel(callback, parentNode));
+ Tcf.getChannelManager().openChannel(parentNode.peerNode.getPeer(), null, new RefreshDoneOpenChannel(callback, parentNode));
}
/**
* Recursively refresh the children of the given process context.
- *
+ *
* @param parentNode The process context node. Must not be <code>null</code>.
*/
public void refresh(final ProcessTreeNode parentNode) {
@@ -224,7 +224,7 @@ public class ProcessModel implements IPreferenceConsts{
/**
* Recursively refresh the tree from the root node with a callback, which
* is called when the whole process is finished.
- *
+ *
* @param callback The callback object or <code>null</code> when callback is not needed.
*/
public void refresh(ICallback callback) {
@@ -246,11 +246,11 @@ public class ProcessModel implements IPreferenceConsts{
refresh(this.root, null);
}
}
-
+
/**
- * Update the most recently used interval adding
+ * Update the most recently used interval adding
* a new interval.
- *
+ *
* @param interval The new interval.
*/
public void addMRUInterval(int interval){
@@ -290,16 +290,16 @@ public class ProcessModel implements IPreferenceConsts{
/**
* If the polling has been stopped.
- *
+ *
* @return true if it is stopped.
*/
public boolean isRefreshStopped() {
return stopped;
}
-
+
/**
* Get the peer model associated with this model.
- *
+ *
* @return The peer model.
*/
IPeerModel getPeerModel() {
@@ -308,12 +308,12 @@ public class ProcessModel implements IPreferenceConsts{
/**
* Refresh the children without refreshing itself.
- *
+ *
* @param parentNode The parent whose children are to be refreshed.
*/
public void refreshChildren(ProcessTreeNode parentNode) {
Assert.isNotNull(parentNode);
- Tcf.getChannelManager().openChannel(parentNode.peerNode.getPeer(), false, new RefreshChildrenDoneOpenChannel(parentNode));
+ Tcf.getChannelManager().openChannel(parentNode.peerNode.getPeer(), null, new RefreshChildrenDoneOpenChannel(parentNode));
}
-}
+}
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/steps/AttachStep.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/steps/AttachStep.java
index 1a0162fe4..5a586b92e 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/steps/AttachStep.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/steps/AttachStep.java
@@ -103,7 +103,7 @@ public class AttachStep {
Assert.isNotNull(node);
// Open a channel
- Tcf.getChannelManager().openChannel(node.peerNode.getPeer(), false, new IChannelManager.DoneOpenChannel() {
+ Tcf.getChannelManager().openChannel(node.peerNode.getPeer(), null, new IChannelManager.DoneOpenChannel() {
@Override
public void doneOpenChannel(final Throwable error, final IChannel channel) {
if (error == null) {
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/steps/DetachStep.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/steps/DetachStep.java
index 9a56e3939..7d0ca2a02 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/steps/DetachStep.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/steps/DetachStep.java
@@ -80,7 +80,7 @@ public class DetachStep {
Assert.isNotNull(node);
// Open a channel
- Tcf.getChannelManager().openChannel(node.peerNode.getPeer(), false, new IChannelManager.DoneOpenChannel() {
+ Tcf.getChannelManager().openChannel(node.peerNode.getPeer(), null, new IChannelManager.DoneOpenChannel() {
@Override
public void doneOpenChannel(final Throwable error, final IChannel channel) {
if (error == null) {
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/steps/TerminateStep.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/steps/TerminateStep.java
index 39c132ce5..de3f410ed 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/steps/TerminateStep.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.processes.ui/src/org/eclipse/tcf/te/tcf/processes/ui/model/steps/TerminateStep.java
@@ -55,7 +55,7 @@ public class TerminateStep {
} else {
onError(node, Messages.DetachStep_error_disconnect, null, callback);
}
- }
+ }
else {
onError(node, Messages.DetachStep_error_disconnect, null, callback);
}
@@ -75,7 +75,7 @@ public class TerminateStep {
Assert.isNotNull(node);
// Open a channel
- Tcf.getChannelManager().openChannel(node.peerNode.getPeer(), false, new IChannelManager.DoneOpenChannel() {
+ Tcf.getChannelManager().openChannel(node.peerNode.getPeer(), null, new IChannelManager.DoneOpenChannel() {
@Override
public void doneOpenChannel(final Throwable error, final IChannel channel) {
if (error == null) {

Back to the top