diff options
author | Uwe Stieber | 2014-05-27 08:11:38 +0000 |
---|---|---|
committer | Uwe Stieber | 2014-05-27 08:12:05 +0000 |
commit | cec947cc44e78e5a433579df83c276cef1df1d4f (patch) | |
tree | 2dbcfa8e8cfd92de5265b3b8c35b75c19b5fb79a /target_explorer/plugins/org.eclipse.tcf.te.tcf.core | |
parent | 1f361d42a4e9d5bc4d8bb3cb58017482811530a6 (diff) | |
download | org.eclipse.tcf-cec947cc44e78e5a433579df83c276cef1df1d4f.tar.gz org.eclipse.tcf-cec947cc44e78e5a433579df83c276cef1df1d4f.tar.xz org.eclipse.tcf-cec947cc44e78e5a433579df83c276cef1df1d4f.zip |
Target Explorer: Always apply path maps to newly opened channels. Skip comparisation in that case.
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.core')
2 files changed, 4 insertions, 2 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/interfaces/IPathMapService.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/interfaces/IPathMapService.java index b393047e1..d9e37f259 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/interfaces/IPathMapService.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/interfaces/IPathMapService.java @@ -74,9 +74,11 @@ public interface IPathMapService extends IService { * <b>Note:</b> This method must be called from outside the TCF event dispatch thread. * * @param context The context. Must not be <code>null</code>. + * @param force If <code>true</code> the path map will be set even if it appears not to be + * different from the path map already set. * @param callback The callback to invoke once the operation completed. Must not be <code>null</code>. */ - public void applyPathMap(Object context, ICallback callback); + public void applyPathMap(Object context, boolean force, ICallback callback); /** * Returns the current client ID used to identify path map rules handled diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/internal/ChannelManager.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/internal/ChannelManager.java index adb769657..3b9b45956 100644 --- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/internal/ChannelManager.java +++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.core/src/org/eclipse/tcf/te/tcf/core/internal/ChannelManager.java @@ -101,7 +101,7 @@ public final class ChannelManager extends PlatformObject implements IChannelMana Thread thread = new Thread(new Runnable() { @Override public void run() { - service.applyPathMap(peer, new Callback() { + service.applyPathMap(peer, true, new Callback() { @Override protected void internalDone(Object caller, IStatus status) { done.doneOpenChannel(error, channel); |