Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Properties View and Draw2d
Properties View and Draw2d [message #184456] Tue, 14 June 2005 04:50 Go to next message
Eclipse UserFriend
Originally posted by: josep.bsil.com

Hi All,

I am using only draw2d and don't gave GEF MVC system.
See the following code .

LightweightSystem lws = new LightweightSystem();
FigureCanvas figureCanvas = new FigureCanvas(parent, lws);
lws.setControl(figureCanvas);

//ExcelLikePane is a class which extends draw2d Panel.
ExcelLikePane excelLikePane = new ExcelLikePane(figureCanvas);
figureCanvas.setContents(excelLikePane);
getSite().setSelectionProvider(excelLikePane);



Also I have added some Figure objects to ExcelLikePane.
Figure objects added implements IAdaptable.

Now my requirement is when I select any figure in the panel I should
be able to show the properties of the Figure.

I am able to select the figure,but not sure how to show it in Properties
View.
getAdapter() is not called when I give the object as return value when
getSelection is called.

Please guide me.

Best Regards,
Jose
Re: Properties View and Draw2d [message #185247 is a reply to message #184456] Thu, 23 June 2005 18:43 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ngocdannytn.sbcglobal.net

Try this example.
http://www.eclipse.org/articles/Article-Properties-View/prop erties-view.html
Regards,
Danny
"Jose Paul" <josep@bsil.com> wrote in message
news:3b3fdc1b5919c7a42bb6bd0c3924494d$1@www.eclipse.org...
> Hi All,
>
> I am using only draw2d and don't gave GEF MVC system.
> See the following code .
>
> LightweightSystem lws = new LightweightSystem();
> FigureCanvas figureCanvas = new FigureCanvas(parent, lws);
> lws.setControl(figureCanvas);
>
> //ExcelLikePane is a class which extends draw2d Panel.
> ExcelLikePane excelLikePane = new ExcelLikePane(figureCanvas);
> figureCanvas.setContents(excelLikePane);
> getSite().setSelectionProvider(excelLikePane);
>
>
>
> Also I have added some Figure objects to ExcelLikePane.
> Figure objects added implements IAdaptable.
>
> Now my requirement is when I select any figure in the panel I should
> be able to show the properties of the Figure.
>
> I am able to select the figure,but not sure how to show it in Properties
> View.
> getAdapter() is not called when I give the object as return value when
> getSelection is called.
>
> Please guide me.
>
> Best Regards,
> Jose
>
>
>
Re: Properties View and Draw2d [message #185560 is a reply to message #185247] Mon, 27 June 2005 06:03 Go to previous message
Eclipse UserFriend
Originally posted by: josep.bsil.com

Hi Danny,

Thanks Danny for the link.

I went through the help ,I found some difference
between the example and my case.

In the example there is a viewer(List).

In my program there is no such component .
Please let me know how to implement it
in this scenario.

Best Regards,
jose
Previous Topic:Creating an GEF-Application
Next Topic:ContextMenu in PropertySheet
Goto Forum:
  


Current Time: Fri Dec 13 03:53:31 GMT 2024

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

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

Back to the top