Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Show Properties by selection in own view
Show Properties by selection in own view [message #204672] Mon, 08 September 2008 09:35 Go to next message
Hannes Niederhausen is currently offline Hannes NiederhausenFriend
Messages: 18
Registered: July 2009
Junior Member
Hi,

I'm new to the GMF and manged to create a diagram including the property
view. To the left of my editor area I placed a view, which shows the model
in a tree, to see model elements, which were removed from the diagram.

This view is implemented in an extra plugin which hast the .diagram
and .edit code as dependency.

What I want is the following: When the use klicks on an model element in my
model view the property view shows the same property pages as klicked the
same element in the diagram.

Can anybody give me a hint what do I have to do?

I tried several things but failed, because I don't understand the whole
factory/editing domain stuff which is used by the generated
PropertySection.

Thanks in advance
Hannes
Re: Show Properties by selection in own view [message #205078 is a reply to message #204672] Wed, 10 September 2008 12:58 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Hannes,

Use getSite().setSelectionProvider(<selectionProvider>); to be able to provide
selection from custom view to the workbench (inlcuding properties view).

-----------------
Alex Shatalin
Previous Topic:Model too complex for GMF
Next Topic:Accessing data from the ACTIVE tab
Goto Forum:
  


Current Time: Thu Apr 25 10:54:50 GMT 2024

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

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

Back to the top