Skip to main content



      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 05:35 Go to next message
Eclipse UserFriend
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 08:58 Go to previous message
Eclipse UserFriend
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: Mon Nov 10 10:46:34 EST 2025

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

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

Back to the top