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 avier5 » Sun Jul 25, 2004 11:51 pm
Hi All,
I tried to build a SWT windowApplication and added to it action(for the menu and tool bar). Also a status line was added.
When I run the application from eclipse Few thing happened:
1. Status line didn't apper on the window.
2. When I press on the menu or toolBar the exception :
java.lang.NoClassDefFoundError: org/osgi/framework/InvalidSyntaxException
at org.eclipse.core.runtime.Platform.isRunning(Platform.java:1228)
at org.eclipse.jface.util.Policy.getDebugOption(Policy.java:100)
at org.eclipse.jface.util.Policy.<clinit>(Policy.java:51)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:909)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866)
at org.eclipse.jface.action.ActionContributionItem$8.handleEvent(ActionContributionItem.java:824)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2772)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2431)
at MainGUIpage.run(MainGUIpage.java:185)
at MainGUIpage.main(MainGUIpage.java:199)
Why is that?
Thanks,
HBC
-
avier5
-
- Posts: 41
- Joined: Thu Jul 22, 2004 12:12 am
by admin » Mon Jul 26, 2004 2:06 am
I think you mean JFace ApplicationWindow.
For Eclipse 3.0 you need to have also core.jar from org.eclipse.osgi_3.0.0 plugin in classpath.
-
admin
- Moderator
-
- Posts: 166
- Joined: Thu Jul 24, 2003 12:25 am
-
by avier5 » Mon Jul 26, 2004 2:19 am
Thanks A LOT admin.o
:lol
It works fine now.
BUT still the status bar doesn't appear in the application ...
What can I do about it?
HBD
-
avier5
-
- Posts: 41
- Joined: Thu Jul 22, 2004 12:12 am
by admin » Mon Jul 26, 2004 2:42 am
Add this line to beginning of createContents method:
- Code: Select all
getStatusLineManager().setMessage(null, "status message");
-
admin
- Moderator
-
- Posts: 166
- Joined: Thu Jul 24, 2003 12:25 am
-
by avier5 » Mon Jul 26, 2004 3:28 am
Once More Thank you!!!
-
avier5
-
- Posts: 41
- Joined: Thu Jul 22, 2004 12:12 am
by avier5 » Mon Jul 26, 2004 4:12 am
Once More Thank you!!!
-
avier5
-
- Posts: 41
- Joined: Thu Jul 22, 2004 12:12 am
Return to SWT Designer
Who is online
Users browsing this forum: No registered users and 1 guest