Hi Lucas,
You don’t need to use a structure bridge, those are for
mapping between artifacts (e.g. Java, PHP) and the context model. What
you’re after is transforming your UI facilities’ notion of interaction
into the degree-of-interest levels in the model.
I just created a wiki section pointing you at the example code
that’s demonstrates the mechanisms for manipulating the model.
Please feel free to follow up with questions here and to update that wiki
section with your experiences.
http://wiki.eclipse.org/Mylyn_Integrator_Reference#Processing_interaction
Cheers,
Mik
From: mylyn-integrators-bounces@xxxxxxxxxxx
[mailto:mylyn-integrators-bounces@xxxxxxxxxxx] On Behalf Of Lucas Layman
Sent: Monday, January 14, 2008 11:05 AM
To: mylyn-integrators@xxxxxxxxxxx
Subject: [mylyn-integrators] Utilizing context.core
Hello,
I am interested in using Mylyn's context facilities to process DOI information
for elements in a custom view. I understand that I am supposed to
integrate with the StructureBridge, but I couldn't glean from the documentation
exactly what I needed to create/define. My general usage scenario is
that, if a user clicks on an element in my custom view, the DOI is piqued but
then will degrade as the user interacts with other parts of the workbench.
Also, if the user interacts with files related to the element in my view, this
should be reflected in the DOI for that element. I'm just unsure of where
to start in order to integrate with the context core or if what I would like to
propose is even possible given Mylyn's facilities.
If you have any insights or examples, they would be greatly appreciated.
Thanks!
Lucas