Skip to main content



      Home
Home » Eclipse Projects » GEF » Can GEF be used in one of the pages of multi-page editor?
Can GEF be used in one of the pages of multi-page editor? [message #55526] Fri, 17 January 2003 11:54 Go to next message
Eclipse UserFriend
My application is mulitpage editor. In one of the pages, I want to show
the GEF view. Can I use it for GEF for this purpose and how I can use it?

thanks,
shimsha
Re: Can GEF be used in one of the pages of multi-page editor? [message #55580 is a reply to message #55526] Fri, 17 January 2003 12:11 Go to previous messageGo to next message
Eclipse UserFriend
In this multipage editor, I am displaying 3 table views, 1 text view. Now,
I want to display 2 diagram views. So, How can I do it?

thanks
shimsha

Shimsha wrote:

> My application is mulitpage editor. In one of the pages, I want to show
> the GEF view. Can I use it for GEF for this purpose and how I can use it?

> thanks,
> shimsha
Re: Can GEF be used in one of the pages of multi-page editor? [message #55606 is a reply to message #55580] Fri, 17 January 2003 13:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: someone.us.ibm.com

Sure, you can use GEF in your multi-page editor. I believe all you need to
do is create a LightweightSystem with the right Control, and then you can
put whatever Figures you want in there.

Pratik Shah

"Shimsha" <shimsha_r@yahoo.com> wrote in message
news:b09dfr$aml$1@rogue.oti.com...
> In this multipage editor, I am displaying 3 table views, 1 text view. Now,
> I want to display 2 diagram views. So, How can I do it?
>
> thanks
> shimsha
>
> Shimsha wrote:
>
> > My application is mulitpage editor. In one of the pages, I want to show
> > the GEF view. Can I use it for GEF for this purpose and how I can use
it?
>
> > thanks,
> > shimsha
>
>
>
>
Re: Can GEF be used in one of the pages of multi-page editor? [message #55633 is a reply to message #55606] Fri, 17 January 2003 13:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi Pratik,
Thanks for your reply. I am using the following code to add this
graphical page to my multipage editor. But, I get run-time error, \'Unable
to instantiate editor:
java.lang.NoClassDefFoundError:org/eclipse/draw2d/IFigure\'.

void createPage4()
{
Canvas canvas = new Canvas(getContainer(), SWT.NONE);
FillLayout layout = new FillLayout();
canvas.setLayout(layout);

LightweightSystem lws = new LightweightSystem(canvas);
IFigure label = new Label(\"Hello World\");
lws.setContents(label);

int index = addPage(canvas);
setPageText(index,\"SW Diagram\");
}

Please, could tell me the problem in my code?
thanks

Pratik Shah wrote:

> Sure, you can use GEF in your multi-page editor. I believe all you need to
> do is create a LightweightSystem with the right Control, and then you can
> put whatever Figures you want in there.

> Pratik Shah
Re: Can GEF be used in one of the pages of multi-page editor? [message #55850 is a reply to message #55633] Fri, 17 January 2003 16:59 Go to previous message
Eclipse UserFriend
I got the answer.
org.eclipse.draw2d was missing in the plugin.xml

thanks
Previous Topic:Logic Example I20030116 not working in 2.0.2 or 2.1 M4
Next Topic:graph?
Goto Forum:
  


Current Time: Thu May 08 02:32:41 EDT 2025

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

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

Back to the top