|
|
Re: Bridge Tutorial [message #487947 is a reply to message #68959] |
Fri, 25 September 2009 00:25 |
|
I too would like to create a bridge to my domain model but find the
documentation and javadocs a little slim so any help would be greatly
appreciated. I've read the integrator reference page and have some
questions.
Is it possible to use the JIRA connector, create a task and attach a
context built based on selection in my navigator view (or other selection
providers)?
I'd then like to retrieve that context, a simple set of object ids,
retrieve them with my org.eclipse.search extension to display a resultset
of those contextual items.
I do not want to use the Task-Focused UI aspects of Mylyn. If the
selected object is of my domain type I'd like it added to the context. Am
I correct in thinking the 'context' page of the JIRA task editor will
allow me to prune the list before attaching the context to the task? Am I
correct in thinking I therefore do not need to extend the
org.eclipse.mylyn.context.ui.bridges extension point?
I have extended org.eclipse.mylyn.context.core.bridges extension point,
providing a StructureBridge. Should the getContentType() return the
classname? The Java bridge just returns "Java".
To modify the context model, I see under "Processing Interaction" that I
need to extend AbstractUserInteractionMonitor. I've done so but my
constructor is not called so it doesn't get registered as a
SelectionListener and I never get to fire the InteractionEvents. From
where should the constructor get called? What am I doing wrong or missing
here?
Again, any help appreciated and I can provide more details if needed.
Craig
On Wed, 13 May 2009 14:50:11 -0700, David Green wrote:
> Iris Groher wrote:
>> Hi all,
>>
>> Is there a tutorial available on how to create custom bridges? I want
>> to create a bridge for a UML modeling tool and do not really know how
>> to start.
>>
>> Thank you so much for your help!
>>
>>
> I had the same issue when creating bridges for Mylyn WikiText. I found
> that the best way to get started was by copying an example. Take a look
> at the integrators reference
> ( http://wiki.eclipse.org/index.php/Mylyn/Integrator_Reference) which has
> a small piece on bridges, and read over the javadoc for
> AbstractContextStructureBridge and AbstractContextUiBridge. What I did
> after that is copy an existing bridge and alter it to suit my needs.
>
> Regards,
>
> David
|
|
|
Re: Bridge Tutorial [message #488245 is a reply to message #487947] |
Sat, 26 September 2009 16:18 |
|
Update: I found that the Java InteractionMonitor is constructed in its
Activator and registered with the MonitorUIPlugin. My InteractionMonitor
now receives selection events and calls super.handle() in which I call
MonitorUI.handleElementSelection(interactionEvent).
This results in "Invisible Elements" created in the "context" tab of the
JIRA task editor. I also see that the tree I'd like to populate in the
"Elements" section above is the "commonViewer" in ContextEditorFormPage.
Debugging I see commonViewer.setInput() received my workspace root,
presumably to share the same model as my selection providing navigator.
So far so good. What I'm missing now is the call to
ContextEditorFormPage.refresh() from its AbstractContextListener.
I see that the MonitorUI.notifyInteractionObserved() notifies each
registered IInteractionListeners's interactionObserved() method. Now I'm
lost again.
I can implement IInteractionListener and register it with MonitorUI as I
did the InteractionMonitor so it receives the InteractionEvent. But how
do I implement its interactionObserved() method such that it affects the
AbstractContextListener in ContextEditorFormPage which hopefully somehow
updates the commonViewer?
Someone must have worked with this API before. Am I on the right track?
Help! Help!
Craig
On Fri, 25 Sep 2009 00:25:14 +0000, Craig Foote wrote:
> I too would like to create a bridge to my domain model but find the
> documentation and javadocs a little slim so any help would be greatly
> appreciated. I've read the integrator reference page and have some
> questions.
>
> Is it possible to use the JIRA connector, create a task and attach a
> context built based on selection in my navigator view (or other
> selection providers)?
>
> I'd then like to retrieve that context, a simple set of object ids,
> retrieve them with my org.eclipse.search extension to display a
> resultset of those contextual items.
>
> I do not want to use the Task-Focused UI aspects of Mylyn. If the
> selected object is of my domain type I'd like it added to the context.
> Am I correct in thinking the 'context' page of the JIRA task editor will
> allow me to prune the list before attaching the context to the task? Am
> I correct in thinking I therefore do not need to extend the
> org.eclipse.mylyn.context.ui.bridges extension point?
>
> I have extended org.eclipse.mylyn.context.core.bridges extension point,
> providing a StructureBridge. Should the getContentType() return the
> classname? The Java bridge just returns "Java".
>
> To modify the context model, I see under "Processing Interaction" that I
> need to extend AbstractUserInteractionMonitor. I've done so but my
> constructor is not called so it doesn't get registered as a
> SelectionListener and I never get to fire the InteractionEvents. From
> where should the constructor get called? What am I doing wrong or
> missing here?
>
> Again, any help appreciated and I can provide more details if needed.
> Craig
>
> On Wed, 13 May 2009 14:50:11 -0700, David Green wrote:
>
>> Iris Groher wrote:
>>> Hi all,
>>>
>>> Is there a tutorial available on how to create custom bridges? I want
>>> to create a bridge for a UML modeling tool and do not really know how
>>> to start.
>>>
>>> Thank you so much for your help!
>>>
>>>
>> I had the same issue when creating bridges for Mylyn WikiText. I found
>> that the best way to get started was by copying an example. Take a
>> look at the integrators reference
>> ( http://wiki.eclipse.org/index.php/Mylyn/Integrator_Reference) which
>> has
>> a small piece on bridges, and read over the javadoc for
>> AbstractContextStructureBridge and AbstractContextUiBridge. What I did
>> after that is copy an existing bridge and alter it to suit my needs.
>>
>> Regards,
>>
>> David
|
|
|
|
Re: Bridge Tutorial [message #599224 is a reply to message #68959] |
Fri, 25 September 2009 00:25 |
|
I too would like to create a bridge to my domain model but find the
documentation and javadocs a little slim so any help would be greatly
appreciated. I've read the integrator reference page and have some
questions.
Is it possible to use the JIRA connector, create a task and attach a
context built based on selection in my navigator view (or other selection
providers)?
I'd then like to retrieve that context, a simple set of object ids,
retrieve them with my org.eclipse.search extension to display a resultset
of those contextual items.
I do not want to use the Task-Focused UI aspects of Mylyn. If the
selected object is of my domain type I'd like it added to the context. Am
I correct in thinking the 'context' page of the JIRA task editor will
allow me to prune the list before attaching the context to the task? Am I
correct in thinking I therefore do not need to extend the
org.eclipse.mylyn.context.ui.bridges extension point?
I have extended org.eclipse.mylyn.context.core.bridges extension point,
providing a StructureBridge. Should the getContentType() return the
classname? The Java bridge just returns "Java".
To modify the context model, I see under "Processing Interaction" that I
need to extend AbstractUserInteractionMonitor. I've done so but my
constructor is not called so it doesn't get registered as a
SelectionListener and I never get to fire the InteractionEvents. From
where should the constructor get called? What am I doing wrong or missing
here?
Again, any help appreciated and I can provide more details if needed.
Craig
On Wed, 13 May 2009 14:50:11 -0700, David Green wrote:
> Iris Groher wrote:
>> Hi all,
>>
>> Is there a tutorial available on how to create custom bridges? I want
>> to create a bridge for a UML modeling tool and do not really know how
>> to start.
>>
>> Thank you so much for your help!
>>
>>
> I had the same issue when creating bridges for Mylyn WikiText. I found
> that the best way to get started was by copying an example. Take a look
> at the integrators reference
> ( http://wiki.eclipse.org/index.php/Mylyn/Integrator_Reference) which has
> a small piece on bridges, and read over the javadoc for
> AbstractContextStructureBridge and AbstractContextUiBridge. What I did
> after that is copy an existing bridge and alter it to suit my needs.
>
> Regards,
>
> David
|
|
|
Re: Bridge Tutorial [message #599229 is a reply to message #487947] |
Sat, 26 September 2009 16:18 |
|
Update: I found that the Java InteractionMonitor is constructed in its
Activator and registered with the MonitorUIPlugin. My InteractionMonitor
now receives selection events and calls super.handle() in which I call
MonitorUI.handleElementSelection(interactionEvent).
This results in "Invisible Elements" created in the "context" tab of the
JIRA task editor. I also see that the tree I'd like to populate in the
"Elements" section above is the "commonViewer" in ContextEditorFormPage.
Debugging I see commonViewer.setInput() received my workspace root,
presumably to share the same model as my selection providing navigator.
So far so good. What I'm missing now is the call to
ContextEditorFormPage.refresh() from its AbstractContextListener.
I see that the MonitorUI.notifyInteractionObserved() notifies each
registered IInteractionListeners's interactionObserved() method. Now I'm
lost again.
I can implement IInteractionListener and register it with MonitorUI as I
did the InteractionMonitor so it receives the InteractionEvent. But how
do I implement its interactionObserved() method such that it affects the
AbstractContextListener in ContextEditorFormPage which hopefully somehow
updates the commonViewer?
Someone must have worked with this API before. Am I on the right track?
Help! Help!
Craig
On Fri, 25 Sep 2009 00:25:14 +0000, Craig Foote wrote:
> I too would like to create a bridge to my domain model but find the
> documentation and javadocs a little slim so any help would be greatly
> appreciated. I've read the integrator reference page and have some
> questions.
>
> Is it possible to use the JIRA connector, create a task and attach a
> context built based on selection in my navigator view (or other
> selection providers)?
>
> I'd then like to retrieve that context, a simple set of object ids,
> retrieve them with my org.eclipse.search extension to display a
> resultset of those contextual items.
>
> I do not want to use the Task-Focused UI aspects of Mylyn. If the
> selected object is of my domain type I'd like it added to the context.
> Am I correct in thinking the 'context' page of the JIRA task editor will
> allow me to prune the list before attaching the context to the task? Am
> I correct in thinking I therefore do not need to extend the
> org.eclipse.mylyn.context.ui.bridges extension point?
>
> I have extended org.eclipse.mylyn.context.core.bridges extension point,
> providing a StructureBridge. Should the getContentType() return the
> classname? The Java bridge just returns "Java".
>
> To modify the context model, I see under "Processing Interaction" that I
> need to extend AbstractUserInteractionMonitor. I've done so but my
> constructor is not called so it doesn't get registered as a
> SelectionListener and I never get to fire the InteractionEvents. From
> where should the constructor get called? What am I doing wrong or
> missing here?
>
> Again, any help appreciated and I can provide more details if needed.
> Craig
>
> On Wed, 13 May 2009 14:50:11 -0700, David Green wrote:
>
>> Iris Groher wrote:
>>> Hi all,
>>>
>>> Is there a tutorial available on how to create custom bridges? I want
>>> to create a bridge for a UML modeling tool and do not really know how
>>> to start.
>>>
>>> Thank you so much for your help!
>>>
>>>
>> I had the same issue when creating bridges for Mylyn WikiText. I found
>> that the best way to get started was by copying an example. Take a
>> look at the integrators reference
>> ( http://wiki.eclipse.org/index.php/Mylyn/Integrator_Reference) which
>> has
>> a small piece on bridges, and read over the javadoc for
>> AbstractContextStructureBridge and AbstractContextUiBridge. What I did
>> after that is copy an existing bridge and alter it to suit my needs.
>>
>> Regards,
>>
>> David
|
|
|
Powered by
FUDForum. Page generated in 0.02474 seconds