Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » view & draw2d
view & draw2d [message #60855] Fri, 31 January 2003 01:00 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Selection problem
Next Topic:Layout in Circuit Figure
Goto Forum:
  


Current Time: Wed Jan 15 06:33:16 GMT 2025

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

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

Back to the top