Why can't i create a ScrollingGraphicalViewer in my application? [message #142343] |
Sat, 10 July 2004 03:36 |
Eclipse User |
|
|
|
Originally posted by: weiwei_3832328.sjtu.edu.cn
Hi, everyone:
I wanted to create a standalone GEF application, but i met a problem i
couldn't solve. Every time, i executed this snnipet:
ScrollingGraphicalViewer viewer = new ScrollingGraphicalViewer();
I would get a execption as follows:
java.lang.NullPointerException
at
org.eclipse.draw2d.DeferredUpdateManager.queueWork(DeferredU pdateManager.java:146)
at
org.eclipse.draw2d.DeferredUpdateManager.addDirtyRegion(Defe rredUpdateManager.java:84)
at org.eclipse.draw2d.Figure.repaint(Figure.java:1184)
at org.eclipse.draw2d.Figure.repaint(Figure.java:1176)
at org.eclipse.draw2d.Figure.repaint(Figure.java:1191)
at org.eclipse.draw2d.Figure.setOpaque(Figure.java:1435)
at
org.eclipse.draw2d.LightweightSystem.createRootFigure(Lightw eightSystem.java:177)
at org.eclipse.draw2d.LightweightSystem.init(LightweightSystem. java:196)
at org.eclipse.draw2d.LightweightSystem.<init>(LightweightSystem.java:63)
at
org.eclipse.gef.ui.parts.GraphicalViewerImpl.createLightweig htSystem(GraphicalViewerImpl.java:77)
at
org.eclipse.gef.ui.parts.GraphicalViewerImpl.<init>(GraphicalViewerImpl.java:44)
at
org.eclipse.gef.ui.parts.ScrollingGraphicalViewer.<init>(ScrollingGraphicalViewer.java:40)
at standalone.example.Test.main(Test.java:19)
I am new to GEF, so i can't understand why i can't create a
ScrollingGraphicalViewer.
I need your help, thank you!
|
|
|
Re: Why can't i create a ScrollingGraphicalViewer in my application? [message #142405 is a reply to message #142343] |
Mon, 12 July 2004 11:37 |
Eclipse User |
|
|
|
Originally posted by: justinaruja.isletsystems.com
See Thread on
1) " Cann't intialize ScrollingGraphicalViewer Object "
2) " GEF standalone application "
Justin
..
"weiwei" <weiwei_3832328@sjtu.edu.cn> wrote in message
news:ccno7o$8bs$1@eclipse.org...
> Hi, everyone:
> I wanted to create a standalone GEF application, but i met a problem i
> couldn't solve. Every time, i executed this snnipet:
> ScrollingGraphicalViewer viewer = new ScrollingGraphicalViewer();
> I would get a execption as follows:
>
> java.lang.NullPointerException
> at
>
org.eclipse.draw2d.DeferredUpdateManager.queueWork(DeferredU pdateManager.jav
a:146)
> at
>
org.eclipse.draw2d.DeferredUpdateManager.addDirtyRegion(Defe rredUpdateManage
r.java:84)
> at org.eclipse.draw2d.Figure.repaint(Figure.java:1184)
> at org.eclipse.draw2d.Figure.repaint(Figure.java:1176)
> at org.eclipse.draw2d.Figure.repaint(Figure.java:1191)
> at org.eclipse.draw2d.Figure.setOpaque(Figure.java:1435)
> at
>
org.eclipse.draw2d.LightweightSystem.createRootFigure(Lightw eightSystem.java
:177)
> at org.eclipse.draw2d.LightweightSystem.init(LightweightSystem. java:196)
> at org.eclipse.draw2d.LightweightSystem.<init>(LightweightSystem.java:63)
> at
>
org.eclipse.gef.ui.parts.GraphicalViewerImpl.createLightweig htSystem(Graphic
alViewerImpl.java:77)
> at
>
org.eclipse.gef.ui.parts.GraphicalViewerImpl.<init>(GraphicalViewerImpl.java
:44)
> at
>
org.eclipse.gef.ui.parts.ScrollingGraphicalViewer.<init>(ScrollingGraphicalV
iewer.java:40)
> at standalone.example.Test.main(Test.java:19)
>
> I am new to GEF, so i can't understand why i can't create a
> ScrollingGraphicalViewer.
> I need your help, thank you!
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02250 seconds