view & draw2d [message #60855] |
Fri, 31 January 2003 01:00 |
Eclipse User |
|
|
|
Originally posted by: sg.media.-style.comNOSPAM
Hi,
I'm sorry i have to ask a again.
I want to show a graph based on draw2d as a view, how to do that?
Based on the hints in this forum i had tried:
public void createPartControl(Composite parent) {
FigureCanvas canvas = new FigureCanvas(parent);
canvas.setContents(new ChartFigure());
}
But this does not work!
Any hints?
Thanks
Stefan
|
|
|
Re: view & draw2d [message #60869 is a reply to message #60855] |
Fri, 31 January 2003 03:43 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
why does it not work? What do you see? Do you get an error message?
Have you tried something simpler first, like displaying a List control with
a few ListItems.
"Stefan Groschupf" <sg@media.-style.comNOSPAM> wrote in message
news:b1cgkd$n4h$1@rogue.oti.com...
> Hi,
>
> I'm sorry i have to ask a again.
> I want to show a graph based on draw2d as a view, how to do that?
>
> Based on the hints in this forum i had tried:
>
> public void createPartControl(Composite parent) {
>
>
>
> FigureCanvas canvas = new FigureCanvas(parent);
>
> canvas.setContents(new ChartFigure());
>
>
>
>
> }
> But this does not work!
>
> Any hints?
>
> Thanks
>
> Stefan
>
>
>
|
|
|
Re: view & draw2d [message #61139 is a reply to message #60869] |
Fri, 31 January 2003 19:29 |
Eclipse User |
|
|
|
Originally posted by: sg.media.-style.comNOSPAM
> why does it not work? What do you see? Do you get an error message?
public void createPartControl(Composite parent) {
FigureCanvas canvas = new FigureCanvas(parent);
canvas.setContents(new ChartFigure());
}
I get a .ClassNotFoundException:
org.eclipse.jdt.internal.ui.wizards.NewTypeDropDownAction
But i never use such a class.
The figure working well in a standalone app.
Thanks!
Stefan
|
|
|
Re: view & draw2d [message #61162 is a reply to message #61139] |
Fri, 31 January 2003 20:25 |
Eclipse User |
|
|
|
Originally posted by: sg.media.-style.comNOSPAM
> org.eclipse.jdt.internal.ui.wizards.NewTypeDropDownAction
Sorry my blindness! Add the 2d libs to plugin requirements and it works ,
sorry for the traffic.
Stefan
|
|
|
Powered by
FUDForum. Page generated in 0.05452 seconds