aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashi2018-08-16 04:32:19 -0400
committerashi2018-08-16 04:32:19 -0400
commitdfe8608420ad02e7b92f657c4850473784762815 (patch)
treec68de96de259660f62dc32ed66bfa7e34943e191
parentf5b8410a0a65fb5ce7d8d78d12f104f137ccb65e (diff)
downloadorg.eclipse.tcf-dfe8608420ad02e7b92f657c4850473784762815.tar.gz
org.eclipse.tcf-dfe8608420ad02e7b92f657c4850473784762815.tar.xz
org.eclipse.tcf-dfe8608420ad02e7b92f657c4850473784762815.zip
bug 537980:Add a proxy or target OK button cannot enable forever.
Change-Id: Ic28056b82d5e05c7a8a7f4e3732096c71847490b Signed-off-by: ashi <Aijun.Shi@windriver.com>
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.forms/src/org/eclipse/tcf/te/ui/forms/parts/AbstractSection.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.forms/src/org/eclipse/tcf/te/ui/forms/parts/AbstractSection.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.forms/src/org/eclipse/tcf/te/ui/forms/parts/AbstractSection.java
index 798fa55e2..e595ccba9 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.forms/src/org/eclipse/tcf/te/ui/forms/parts/AbstractSection.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.forms/src/org/eclipse/tcf/te/ui/forms/parts/AbstractSection.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2011, 2014 Wind River Systems, Inc. and others. All rights reserved.
+ * Copyright (c) 2011, 2014, 2018 Wind River Systems, Inc. and others. All rights reserved.
* This program and the accompanying materials are made available under the terms
* of the Eclipse Public License v1.0 which accompanies this distribution, and is
* available at http://www.eclipse.org/legal/epl-v10.html
@@ -252,7 +252,10 @@ public abstract class AbstractSection extends SectionPart implements IAdaptable,
ITraceIds.TRACE_SECTIONS_DIRTY_STATE, this);
}
- if (dirty) markDirty();
+ if (dirty) {
+ markDirty();
+ if (getManagedForm() != null) getManagedForm().dirtyStateChanged();
+ }
else {
// For now, there is no direct way to reset the dirty state,
// and the refresh() method is setting back both flags (stale and dirty).