Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » PShelf on RAP
PShelf on RAP [message #649391] Wed, 19 January 2011 05:02
Sudesh Bulathsinhala is currently offline Sudesh Bulathsinhala
Messages: 180
Registered: October 2010
Senior Member
hello,

i've been trying to use nebula PShelf widget to work with RAP, as described in following URL.

http://eclipsesource.com/blogs/2010/04/20/drawing-with-rap-yup/

i've imported nebula PShelf as a "plugin from existing jar archives". i don't see any warning error, when i reference the PShelf in code.

Ex.
final PShelf shelf = new PShelf(composite, SWT.V_SCROLL);



however, when i invoke this, i get the following error.

osgi> 2011-01-19 10:26:21.057:INFO:org.mortbay.log:Logging to STDERRorg.mortbay.log via org.mortbay.log.Slf4jLog
2011-01-19 10:26:21.153:INFO::jetty-6.1.x
2011-01-19 10:26:22.092:INFO::Started SelectChannelConnector@0.0.0.0:50019
!SESSION 2011-01-19 10:26:19.271 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -dev file:C:/insight/rap/ws/.metadata/.plugins/org.eclipse.pde.core/claasic/dev.properties -os win32 -ws win32 -arch x86 -consoleLog -console -consolelog

!ENTRY org.eclipse.rap.ui 4 0 2011-01-19 10:26:40.018
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NoClassDefFoundError: org/eclipse/swt/widgets/Canvas
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(Unknown Source)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:188)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineClass(ClasspathManager.java:582)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findClassImpl(ClasspathManager.java:550)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClassImpl(ClasspathManager.java:481)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass_LockClassLoader(ClasspathManager.java:469)
	at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:449)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
	at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
	at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at com.argos.core.client.widget.provider.CustomShelfWidgetProvider.getWidgetObject(CustomShelfWidgetProvider.java:61)
	at com.argos.core.client.designer.dataset.FormDesignerEditor.createDesignerPalette(FormDesignerEditor.java:138)
	at com.argos.core.client.designer.dataset.FormDesignerEditor.initPage0(FormDesignerEditor.java:470)
	at com.argos.core.client.designer.dataset.FormDesignerEditor.createPages(FormDesignerEditor.java:188)
	at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:310)
	at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:658)
	at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:429)
	at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)
	at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:312)
	at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:185)
	at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:265)
	at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:64)
	at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:479)
	at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1267)
	at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1220)
	at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1619)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:508)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:106)
	at org.eclipse.ui.internal.PartStack.add(PartStack.java:494)
	at org.eclipse.ui.internal.EditorStack.add(EditorStack.java:115)
	at org.eclipse.ui.internal.EditorSashContainer.addEditor(EditorSashContainer.java:65)
	at org.eclipse.ui.internal.EditorAreaHelper.addToLayout(EditorAreaHelper.java:217)
	at org.eclipse.ui.internal.EditorAreaHelper.addEditor(EditorAreaHelper.java:207)
	at org.eclipse.ui.internal.EditorManager.createEditorTab(EditorManager.java:782)
	at org.eclipse.ui.internal.EditorManager.openEditorFromDescriptor(EditorManager.java:680)
	at org.eclipse.ui.internal.EditorManager.openEditor(EditorManager.java:640)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2716)
	at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2630)
	at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2622)
	at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2573)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:66)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2569)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2553)
	at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2544)
	at com.argos.core.client.shell.node.ExplorerDatasetEditorNode$2.run(ExplorerDatasetEditorNode.java:110)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:493)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:575)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:492)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:403)
	at org.eclipse.swt.internal.widgets.UntypedEventAdapter.dispatchEvent(UntypedEventAdapter.java:651)
	at org.eclipse.swt.internal.widgets.UntypedEventAdapter.widgetSelected(UntypedEventAdapter.java:88)
	at org.eclipse.swt.events.SelectionEvent.dispatchToObserver(SelectionEvent.java:196)
	at org.eclipse.rwt.internal.events.Event.processEvent(Event.java:44)
	at org.eclipse.swt.events.TypedEvent.processEvent(TypedEvent.java:163)
	at org.eclipse.swt.events.TypedEvent.executeNext(TypedEvent.java:203)
	at org.eclipse.swt.widgets.Display.runPendingMessages(Display.java:1134)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1124)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2390)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2351)
	at org.eclipse.ui.internal.Workbench.access$5(Workbench.java:2206)
	at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:424)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.jface.internal.databinding.realmadapter.RealmAdapter.run(RealmAdapter.java:44)
	at org.eclipse.rap.ui.internal.RealmAdapterHook.runWithDefault(RealmAdapterHook.java:48)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:427)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:157)
	at com.argos.entrypoint._rap.ClientEntryPoint.createUI(ClientEntryPoint.java:18)
	at org.eclipse.rwt.internal.lifecycle.EntryPointManager.createUI(EntryPointManager.java:92)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle.createUI(RWTLifeCycle.java:245)
	at org.eclipse.rwt.internal.lifecycle.RWTLifeCycle$UIThreadController.run(RWTLifeCycle.java:114)
	at java.lang.Thread.run(Unknown Source)
	at org.eclipse.rwt.internal.lifecycle.UIThread.run(UIThread.java:102)
Caused by: java.lang.ClassNotFoundException: org.eclipse.swt.widgets.Canvas
	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
	at java.lang.ClassLoader.loadClass(Unknown Source)
       .. 79 more
	




how can we utilize this PShelf widget in RAP ?

regards,
sudesh
Previous Topic:CollapsibleButtons in trim area help
Next Topic:CDateTime makes Coolbar dissapear in RCP on VISTA
Goto Forum:
  


Current Time: Thu Oct 23 13:11:43 GMT 2014

Powered by FUDForum. Page generated in 0.02396 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software