Преглед изворни кода

Added SWT.BORDER flag to property's swt Text widgets

Andreas Mülder пре 13 година
родитељ
комит
18ab1de0a4

+ 1 - 0
plugins/org.yakindu.sct.simulation.ui/src/org/yakindu/sct/simulation/ui/view/SimulationView.java

@@ -83,6 +83,7 @@ public class SimulationView extends ViewPart implements IDebugContextListener,
 		DebugUITools.getDebugContextManager().addDebugContextListener(this);
 		DebugPlugin.getDefault().addDebugEventListener(this);
 		kit = new FormToolkit(Display.getDefault());
+		kit.setBorderStyle(SWT.BORDER);
 		font = new Font(Display.getDefault(), new FontData("Courier", 10,
 				SWT.BOLD));
 		clockUpdater = new ClockUpdater();

+ 2 - 1
plugins/org.yakindu.sct.ui.editor/src/org/yakindu/sct/ui/editor/propertysheets/AbstractEditorPropertySection.java

@@ -87,10 +87,11 @@ public abstract class AbstractEditorPropertySection extends
 	@Override
 	public final void createControls(Composite parent,
 			TabbedPropertySheetPage aTabbedPropertySheetPage) {
+		toolkit = new FormToolkit(parent.getDisplay());
+		toolkit.setBorderStyle(SWT.BORDER);
 		super.createControls(parent, aTabbedPropertySheetPage);
 		GridDataFactory.fillDefaults().grab(true, true).applyTo(parent);
 		parent.setLayout(new GridLayout(1, true));
-		toolkit = new FormToolkit(parent.getDisplay());
 		form = toolkit.createForm(parent);
 		toolkit.decorateFormHeading(form);
 		GridDataFactory.fillDefaults().grab(true, true).applyTo(form);