Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2013-03-26 05:01:13 -0400
committerTobias Schwarz2013-03-26 05:01:13 -0400
commit519e92a9f1435150f293845ccdfd223694b11918 (patch)
tree5eb482fcb6399dc1e28af66c3769875ce02c7fdb /target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf
parent69d3e7072524ebdd4814435c8f2ce30451b7f8c3 (diff)
downloadorg.eclipse.tcf-519e92a9f1435150f293845ccdfd223694b11918.tar.gz
org.eclipse.tcf-519e92a9f1435150f293845ccdfd223694b11918.tar.xz
org.eclipse.tcf-519e92a9f1435150f293845ccdfd223694b11918.zip
Target Explorer: use readonly on update enablement
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/editor/sections/TransportSection.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/editor/sections/TransportSection.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/editor/sections/TransportSection.java
index 0240ccce6..28773453c 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/editor/sections/TransportSection.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.ui/src/org/eclipse/tcf/te/tcf/ui/editor/sections/TransportSection.java
@@ -61,7 +61,7 @@ public class TransportSection extends AbstractSection implements IDataExchangeNo
/* default */TransportSectionTypePanelControl transportTypePanelControl = null;
// Reference to the original data object
- /* default */IPeerModel od;
+ protected IPeerModel od;
// Reference to a copy of the original data
/* default */final IPropertiesContainer odc = new PropertiesContainer();
// Reference to the properties container representing the working copy for the section
@@ -628,7 +628,7 @@ public class TransportSection extends AbstractSection implements IDataExchangeNo
// The transport type control is enabled for static peers
if (transportTypeControl != null) {
- boolean enabled = input == null || (isStatic.get() && !isRemote.get());
+ boolean enabled = !isReadOnly() && (input == null || (isStatic.get() && !isRemote.get()));
SWTControlUtil.setEnabled(transportTypeControl.getEditFieldControl(), enabled);
if (transportTypePanelControl != null) {
IWizardConfigurationPanel panel = transportTypePanelControl

Back to the top