You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This problem was reported by a user via e-mail. Thanks for the bug report and suggested fix!
(screen is split in two: first half blank, second half contains the editor and live-display output)
After debugging a couple of hours (I have little Java experience and no experience writing Eclipse Plugins) I traced the problem down to the parent of the Splitter containing the editor and live-display widgets. When setting parent layout to Grid the code editor moves to the left and the big gray space on the left of it disappears.
Here's the changes I did (probably needs more work to keep compatibility with older versions of Eclipse):
$ git diff -p --no-ext-diff plugin/src/live_py/LiveCodingAnalyst.java
diff --git a/plugin/src/live_py/LiveCodingAnalyst.java b/plugin/src/live_py/LiveCodingAnalyst.java
index df44be4..2a8c026 100644
--- a/plugin/src/live_py/LiveCodingAnalyst.java
+++ b/plugin/src/live_py/LiveCodingAnalyst.java
@@ -31,6 +31,7 @@ import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.osgi.framework.Bundle;
@@ -111,8 +112,14 @@ public class LiveCodingAnalyst {
* @return The new control that the editor can be created in.
*/
public Object createPartControl(Composite parent) {
- splitter = new Splitter(parent, SWT.HORIZONTAL);
+ parent.setLayout(new GridLayout());
+ parent.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+
+ splitter = new Splitter(parent,SWT.HORIZONTAL);
+ splitter.setLayout(new FillLayout());
+ splitter.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
+
Composite editorContent = new Composite(splitter, SWT.NONE);
editorContent.setLayout(new FillLayout());
GridData gridData = new GridData(SWT.FILL, SWT.FILL, true, true);
Tested on:
Eclipse Juno:
Eclipse for Mobile Developers
Version: Juno Service Release 2
Build id: 20130225-0426
Aptana:
Aptana Studio 3, build: 3.4.0.201304151603
The text was updated successfully, but these errors were encountered:
This problem was reported by a user via e-mail. Thanks for the bug report and suggested fix!
(screen is split in two: first half blank, second half contains the editor and live-display output)
After debugging a couple of hours (I have little Java experience and no experience writing Eclipse Plugins) I traced the problem down to the parent of the Splitter containing the editor and live-display widgets. When setting parent layout to Grid the code editor moves to the left and the big gray space on the left of it disappears.
Here's the changes I did (probably needs more work to keep compatibility with older versions of Eclipse):
Tested on:
Eclipse for Mobile Developers
Version: Juno Service Release 2
Build id: 20130225-0426
Aptana Studio 3, build: 3.4.0.201304151603
The text was updated successfully, but these errors were encountered: