Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2013-12-17 08:33:03 -0500
committerTobias Schwarz2013-12-17 08:33:03 -0500
commit8384bf58f9acf5778d1f88ffee9764f7c3622ad1 (patch)
treeb21cdd8028e1631289cd4b91825df0b67cd9412f /target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views
parent9c70311b440b7192b6af02fd9dd5fc806492b66a (diff)
downloadorg.eclipse.tcf-8384bf58f9acf5778d1f88ffee9764f7c3622ad1.tar.gz
org.eclipse.tcf-8384bf58f9acf5778d1f88ffee9764f7c3622ad1.tar.xz
org.eclipse.tcf-8384bf58f9acf5778d1f88ffee9764f7c3622ad1.zip
Target Explorer: split peer and ocator model
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/actions/PeersSubMenuAction.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/actions/PeersSubMenuAction.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/actions/PeersSubMenuAction.java
index 63fcb819f..7ca72e643 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/actions/PeersSubMenuAction.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui.views/src/org/eclipse/tcf/te/tcf/ui/views/scriptpad/actions/PeersSubMenuAction.java
@@ -63,7 +63,7 @@ public class PeersSubMenuAction extends Action implements IMenuCreator, IViewAct
public void locatorModelChanged(IPeerModel model, IPeerNode peer, boolean added) {
// Re-evaluate the enablement
if (actionProxy != null) {
- final IPeerNode[] peers = Model.getModel().getPeerNodes();
+ final IPeerNode[] peers = Model.getPeerModel().getPeerNodes();
actionProxy.setEnabled(peers != null && peers.length > 0);
// If the peer is not set to the view yet, but the action get's
@@ -83,7 +83,7 @@ public class PeersSubMenuAction extends Action implements IMenuCreator, IViewAct
Protocol.invokeLater(new Runnable() {
@Override
public void run() {
- Model.getModel().addListener(listener);
+ Model.getPeerModel().addListener(listener);
}
});
}
@@ -104,7 +104,7 @@ public class PeersSubMenuAction extends Action implements IMenuCreator, IViewAct
// If the action proxy is already set, it means that the init(IAction)
// has been called before. Re-trigger the action enablement.
if (actionProxy != null) {
- listener.locatorModelChanged(Model.getModel(), null, false);
+ listener.locatorModelChanged(Model.getPeerModel(), null, false);
}
}
@@ -119,7 +119,7 @@ public class PeersSubMenuAction extends Action implements IMenuCreator, IViewAct
// Determine the enablement. The action is disabled
// if no peers are available.
- IPeerNode[] peers = Model.getModel().getPeerNodes();
+ IPeerNode[] peers = Model.getPeerModel().getPeerNodes();
if (peers != null && peers.length > 0) {
action.setEnabled(true);
if (view instanceof ScriptPad) ((ScriptPad)view).setPeerModel(peers[0]);
@@ -160,7 +160,7 @@ public class PeersSubMenuAction extends Action implements IMenuCreator, IViewAct
Protocol.invokeLater(new Runnable() {
@Override
public void run() {
- Model.getModel().removeListener(listener);
+ Model.getPeerModel().removeListener(listener);
listener = null;
}
});
@@ -209,7 +209,7 @@ public class PeersSubMenuAction extends Action implements IMenuCreator, IViewAct
boolean selectFirst = selected == null;
- IPeerNode[] peerNodes = Model.getModel().getPeerNodes();
+ IPeerNode[] peerNodes = Model.getPeerModel().getPeerNodes();
if (peerNodes != null && peerNodes.length > 0) {
for (IPeerNode peerNode : peerNodes) {
if (isValueAdd(peerNode)) continue;

Back to the top