Skip to content
Snippets Groups Projects
Commit 8a69c699 authored by Florian Hölzl's avatar Florian Hölzl
Browse files

bugfix: refresh() did not dispose and recreate databinding context

parent 4667afc2
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage;
* @author hoelzl
* @author $Author$
* @version $Rev$
* @ConQAT.Rating RED Hash: 52DBB44E0AFA61A036B9C2A5297E3BA5
* @ConQAT.Rating RED Hash: 796851A7B16A7BEB1C3AAD577BF565CB
*/
public abstract class PropertySectionBase extends AbstractPropertySection {
......@@ -67,6 +67,8 @@ public abstract class PropertySectionBase extends AbstractPropertySection {
/** {@inheritDoc} */
@Override
public void dispose() {
dbc.dispose();
dbc = null;
super.dispose();
}
......@@ -125,4 +127,16 @@ public abstract class PropertySectionBase extends AbstractPropertySection {
gd.heightHint = Math.min(50, gd.heightHint);
control.setLayoutData(gd);
}
/**
* {@inheritDoc}
*
* <p>
* Sub-classes may override, but must call super.refresh() first.
*/
@Override
public void refresh() {
dbc.dispose();
dbc = new DataBindingContext();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment