SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.
Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
by bweith » Mon May 02, 2005 6:02 am
I've discovered a problem in SWT Designer running on Fedora Core 3 (Linux gtk). I can reproduce this problem using any combination of Eclipse 3.02 or 3.1M6 along with Designer 4.0.0 or 4.0.1.
Basically, when I create a new SWT/JFace Java Project, create a JFace ApplicationWindow and subsequently add actions to the Menu and/or Coolbar, the widgets do not appear when viewing the Content pane in Designer. They only appear when previewing or running the application.
This problem only occurs when using a JFace ApplicationWindow. It does not occur with an SWT ApplicationWindow and it does not occur at all on Windows.
Any help or insight would be appreciated. Thanks...
-
bweith
-
- Posts: 6
- Joined: Wed Apr 27, 2005 8:25 pm
by jnlsbur » Mon May 02, 2005 12:32 pm
I have the same Linux config : fedora 3 / gtk 2 : and I have the same problem.
-
jnlsbur
-
- Posts: 2
- Joined: Wed Apr 20, 2005 8:03 am
- Location: Michigan
-
by Eric Clayberg » Tue May 03, 2005 4:37 pm
bweith wrote:Basically, when I create a new SWT/JFace Java Project, create a JFace ApplicationWindow and subsequently add actions to the Menu and/or Coolbar, the widgets do not appear when viewing the Content pane in Designer. They only appear when previewing or running the application. This problem only occurs when using a JFace ApplicationWindow. It does not occur with an SWT ApplicationWindow and it does not occur at all on Windows.
This was fixed in the latest v4.0.1 build.
-
Eric Clayberg
- Moderator
-
- Posts: 4503
- Joined: Tue Sep 30, 2003 6:39 am
- Location: Boston, MA USA
-
by bweith » Tue May 03, 2005 7:02 pm
Eric Clayberg wrote:This was fixed in the latest v4.0.1 build.
I downloaded the latest build (Build ID 2005.05.03) and installed into a clean copy of Eclipse 3.1M6 but I'm still experiencing the same problem.
Running on Fedora Core 3 with JDK 1.5.0_01...
-
bweith
-
- Posts: 6
- Joined: Wed Apr 27, 2005 8:25 pm
by Eric Clayberg » Wed May 04, 2005 3:38 am
bweith wrote:I downloaded the latest build (Build ID 2005.05.03) and installed into a clean copy of Eclipse 3.1M6 but I'm still experiencing the same problem. Running on Fedora Core 3 with JDK 1.5.0_01
In that case, can yuou send us a test case?
-
Eric Clayberg
- Moderator
-
- Posts: 4503
- Joined: Tue Sep 30, 2003 6:39 am
- Location: Boston, MA USA
-
by bweith » Thu May 05, 2005 6:40 pm
Eric Clayberg wrote:In that case, can yuou send us a test case?
Here's the test case. Just a standard JFace ApplicationWindow with one MenuManager and one Action...
- Code: Select all
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.CoolBarManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.StatusLineManager;
import org.eclipse.jface.action.ToolBarManager;
import org.eclipse.jface.window.ApplicationWindow;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
public class MainWindow extends ApplicationWindow {
private Action action;
public MainWindow() {
super(null);
createActions();
addCoolBar(SWT.FLAT);
addMenuBar();
addStatusLine();
}
protected Control createContents(Composite parent) {
Composite container = new Composite(parent, SWT.NONE);
return container;
}
private void createActions() {
action = new Action("E&xit") {
public void run() {
}
};
}
protected MenuManager createMenuManager() {
MenuManager result = new MenuManager("menu");
final MenuManager menuManager = new MenuManager("&File");
result.add(menuManager);
menuManager.add(action);
return result;
}
protected CoolBarManager createCoolBarManager(int style) {
CoolBarManager coolBarManager = new CoolBarManager(style);
final ToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT);
coolBarManager.add(toolBarManager);
toolBarManager.add(action);
return coolBarManager;
}
protected StatusLineManager createStatusLineManager() {
StatusLineManager statusLineManager = new StatusLineManager();
statusLineManager.setMessage(null, "");
return statusLineManager;
}
public static void main(String args[]) {
try {
MainWindow window = new MainWindow();
window.setBlockOnOpen(true);
window.open();
Display.getCurrent().dispose();
} catch (Exception e) {
e.printStackTrace();
}
}
protected void configureShell(Shell newShell) {
super.configureShell(newShell);
newShell.setText("New Application");
}
protected Point getInitialSize() {
return new Point(500, 375);
}
}
Using Designer Build ID 2005.05.05 now and still experiencing the same problem (Running Fedora Core 3 with JDK 1.5.0_01).
-
bweith
-
- Posts: 6
- Joined: Wed Apr 27, 2005 8:25 pm
by bweith » Tue May 10, 2005 10:50 pm
Eric,
Were you able to reproduce this problem on Linux GTK?
Any chance this will be fixed in the M7 release? Still exists with the 5/7 build.
Thanks...
-
bweith
-
- Posts: 6
- Joined: Wed Apr 27, 2005 8:25 pm
by bweith » Thu Jul 14, 2005 9:39 pm
This problem still exists using Eclipse 3.1 GA with the latest SWT Designer 4.1.0 build.
Can anybody help me?
-
bweith
-
- Posts: 6
- Joined: Wed Apr 27, 2005 8:25 pm
Return to SWT Designer
Who is online
Users browsing this forum: No registered users and 1 guest