Author: yradtsevich
Date: 2010-10-22 08:09:07 -0400 (Fri, 22 Oct 2010)
New Revision: 25991
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditorPart.java
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBar.java
Log:
https://jira.jboss.org/browse/JBIDE-7356: VPE Selection Bar is too high
- fixed layout
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditorPart.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditorPart.java 2010-10-22
10:08:39 UTC (rev 25990)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPMultiPageEditorPart.java 2010-10-22
12:09:07 UTC (rev 25991)
@@ -113,7 +113,6 @@
* Create Selection Bar Composite and set its layout
*/
selectionBar = new SelectionBar(sourcePart, parent2, SWT.NONE);
- selectionBar.setLayout(new GridLayout(1, false));
selectionBar.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, false, 2, 1));
editor.addPropertyListener(new IPropertyListener() {
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBar.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBar.java 2010-10-22
10:08:39 UTC (rev 25990)
+++
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/selection/bar/SelectionBar.java 2010-10-22
12:09:07 UTC (rev 25991)
@@ -34,6 +34,7 @@
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
+import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
@@ -120,6 +121,7 @@
.getState("org.eclipse.ui.commands.toggleState"); //$NON-NLS-1$
toggleSelBarState.addListener(this);
toggleSelBarCommand.addCommandListener(this);
+ this.setLayout(new FillLayout());
/*
* Create the Selection Bar Composite in its constructor
*/
@@ -131,7 +133,6 @@
* The parent of all children should be 'this' composite
*/
splitter = new Splitter(this, SWT.NONE);
- splitter.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, false));
/*
* The invisible Selection Bar that is used to handle
* show/hide Selection Bar actions.