[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: Updating properties view
|
- From: david_michonneau@xxxxxxxxxxx (David Michonneau)
- Date: Wed, 14 Jan 2004 18:47:38 +0000 (UTC)
- Newsgroups: eclipse.tools.gef
- Organization: http://news.eclipse.org
- User-agent: NewsPortal/0.25 (http://florian-amrhein.de/newsportal/)
I assume you refer to the logic sample provided with GEF. The
LogicEditor.getAdapter code is
public Object getAdapter(Class type){
if (type == CommandStackInspectorPage.class)
return new CommandStackInspectorPage(getCommandStack());
if (type == IContentOutlinePage.class)
return new OutlinePage(new TreeViewer());
if (type == ZoomManager.class)
return (
(ScalableFreeformRootEditPart) getGraphicalViewer()
.getRootEditPart())
.getZoomManager();
return super.getAdapter(type);
}
Could you please be more specific? I hardly see the relationship with the
propertysheet here.
Thank you!
David
Randy Hudson wrote:
> We have a special propertysheet entry which refreshes every time a Command
> is executed or undone/redone.
> See LogicEditor.getAdapter()
> "David Michonneau" <david_michonneau@xxxxxxxxxxx> wrote in message
> news:bu2b9s$3sk$1@xxxxxxxxxxxxxx
> > Hi,
> >
> > I am implementing a GEF editor with the recommend MVC pattern, and have
> > the following issue:
> >
> > Each figure in the editor has x,y coordinates, and so has the
> > corresponding model. My model implements IPropertySource, so I can see x,y
> > in the properties view of eclipse. But when I move the figure, x,y doesn't
> > get updated in the properties view (although it does in the model), it
> > gets updated all right when I deselect and select the figure again. I have
> > seen some samples doing that, but I couldn't find out what mechanism they
> > use to automatically refresh the values in the properties view.
> >
> > Does anybody know how to do that?
> >
> > Thanks,
> >
> > David
> >
> >
> >