Skip to content
Snippets Groups Projects
Commit 34a8f453 authored by Dongyue Mou's avatar Dongyue Mou
Browse files

moved the bug fix code to the general section base class

parent 63c48f4c
No related branches found
No related tags found
No related merge requests found
......@@ -80,6 +80,15 @@ public abstract class PropertySectionBase extends AbstractPropertySection {
composite = getWidgetFactory().createFlatFormComposite(parent);
composite.setLayout(new GridLayout(2, false));
/*
* TODO: workaround for bug #1863@af3-redmine & #383750@eclipse-bug-tracker
* if the first control in a multi-tab property view is a list, the bug will not be
* triggered.
*/
getWidgetFactory().createList(composite, SWT.NONE).setLayoutData(new GridData(1, 1));
getWidgetFactory().createLabel(composite, "1", SWT.NONE).setLayoutData(new GridData(1, 1));
}
/** {@inheritDoc} */
......
......@@ -22,7 +22,6 @@ import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.databinding.swt.SWTObservables;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.List;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage;
import org.fortiss.tooling.kernel.model.FortissToolingKernelPackage;
......@@ -61,13 +60,6 @@ public class NamedCommentedPropertySection extends PropertySectionBase {
public void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage) {
super.createControls(parent, aTabbedPropertySheetPage);
/*
* TODO: workaround for bug #1863@af3-redmine & #383750@eclipse-bug-tracker
* if the first control in a multi-tab property view is a list, the bug will not be
* triggered.
*/
new List(parent, SWT.NONE);
nameText = createFormText("Name");
commentText = createFormText("Comment");
}
......
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