Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » [Model Focusing Tool]"Not a valid landmark"
[Model Focusing Tool]"Not a valid landmark" [message #885237] Tue, 12 June 2012 16:51 Go to next message
Aurelien Pupier is currently offline Aurelien PupierFriend
Messages: 579
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi,

I'm currently trying the Model Focusing Tool with a gmf diagram (the geoshape example) in order to make a demo tomorrow during Eclipse Democamp Grenoble.

I created a Mylyn local task and activate it.

I have the file correctly added to the context (I see only this file)

When I try to "remove a figure on the diagram from the context" or try to "Mark Model as a landmark", I have an information message dialog with the title "Interest Manipulation" and the message "Not a valid landmark, select an element within this resource instead"

I'm on Juno RC2.
Eclipse Modeling Focusing Tool version: 0.9.0I20120314-1750
Eclipse Mylyn tasks: 3.8.0.I20120605-2216

Do you have any ideas on what is happening?

Regards,


Aurélien Pupier - Bonitasoft S.A.
My company Eclipse-related blog
Re: [Model Focusing Tool]"Not a valid landmark" [message #885666 is a reply to message #885237] Wed, 13 June 2012 12:12 Go to previous messageGo to next message
Carsten Reckord is currently offline Carsten ReckordFriend
Messages: 19
Registered: June 2012
Junior Member
Hi Aurelien,

comments below.

On 12.06.2012 18:51, Aurelien Pupier wrote:
> Hi,
>
> I'm currently trying the Model Focusing Tool with a gmf diagram (the geoshape example) in order to make a demo tomorrow during Eclipse Democamp Grenoble.

What is your setup regarding MFT and the geoshape example? MFT currently
doesn't support arbitrary metamodels or GMF editors out of the box.

Did you create a custom StructureBridge for the geoshape model? If so, what
node and edge base classes did you specify?

> I created a Mylyn local task and activate it.
>
> I have the file correctly added to the context (I see only this file)
>
> When I try to "remove a figure on the diagram from the context" or try to "Mark Model as a landmark", I have an information message dialog with the title "Interest Manipulation" and the message "Not a valid landmark, select an element within this resource instead"

This indicates that either the wrong StructureBridge was found for the model
element for some reason or that the bridge does not allow this type of model
element to become a landmark.

The exact cause is a bit hard to guess at without knowing what bridges are
active in your runtime.

In your own bridge you could have a look at canBeLandmark(...) and see if it
gets called with the expected element.

You can also figure out which bridge actually gets used in the debugger by
setting a breakpoint in

InteractionContextManager.manipulateInterestForElementHelper(...)

>
> I'm on Juno RC2.
> Eclipse Modeling Focusing Tool version: 0.9.0I20120314-1750
> Eclipse Mylyn tasks: 3.8.0.I20120605-2216
>
> Do you have any ideas on what is happening?
>
> Regards,
[SOLVED]Re: [Model Focusing Tool]"Not a valid landmark" [message #888816 is a reply to message #885666] Mon, 18 June 2012 17:04 Go to previous message
Aurelien Pupier is currently offline Aurelien PupierFriend
Messages: 579
Registered: July 2009
Location: Grenoble, FRANCE
Senior Member

Hi Carsten,

thanks for your answer.

Effectively, I thought that MFT supports arbitrary metamodels or GMF editors out of the box.

So I tried with an .ecorediag and it was working (except during my demo of what's hot in Juno during Eclipse Democamp Grenoble and I don't know why :'()

Thanks again for your clarification.

Regards,



Aurélien Pupier - Bonitasoft S.A.
My company Eclipse-related blog
Previous Topic:owner filter?
Next Topic:Media wiki Internal Links connecting Problem
Goto Forum:
  


Current Time: Mon Dec 22 12:51:55 GMT 2014

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

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