Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 150772

Summary: [bridge] RadRails
Product: z_Archived Reporter: Sergei Serdyuk <sserdyuk>
Component: MylynAssignee: Project Inbox <mylyn-triaged>
Status: CLOSED MOVED QA Contact:
Severity: enhancement    
Priority: P4 CC: jeremyd, raphael.ackermann, roman.porotnikov, srobertjames
Version: unspecifiedKeywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Sergei Serdyuk CLA 2006-07-17 01:58:43 EDT
I have tried Mylar for Ruby On Rails project and it did not work all well. I have used RadRails plugin from radrails.org.
It has it's own Rails Navigator view and Mylar filtering icon did not show up in it.
Comment 1 Mik Kersten CLA 2006-07-27 00:00:40 EDT
Sorry for the uncharacteristically slow reply on this (due travel schedules).  To make our current level of Eclipse and plug-in support clear I created a new FAQ entry:

	http://wiki.eclipse.org/index.php/Mylar_FAQ#Integration_with_other_tools
	
I also moved the FAQ to the wiki to make it possible for you to comment there.  For example you could add a RadRails section and mention that interest filtering is not available for the Rails Navigator, and that having it on the Project Explorer is not sufficient (assuming that's the case).
	
Our goal is to support the core SDK, and to make it easy to build bridges for other tools such as RadRails.  If anyone is interested in doing that we would be happy to guide them along and produce some documentation in the process.  Making the "Apply Mylar" button work is very easy if the view is showing elements that are subtypes of IResource or adapt to IResource.
Comment 2 Raphael Ackermann CLA 2006-10-12 13:23:06 EDT
> 
> Our goal is to support the core SDK, and to make it easy to build bridges for
> other tools such as RadRails.  If anyone is interested in doing that we would
> be happy to guide them along and produce some documentation in the process. 
> Making the "Apply Mylar" button work is very easy if the view is showing
> elements that are subtypes of IResource or adapt to IResource.
> 

I would be happy to take this on if I can get some guidance as to where to look for a good bridge implementation etc.

Raphael
Comment 3 Mik Kersten CLA 2006-10-12 14:11:33 EDT
Great!  Let's use this report for guidance, and update the following as we go:

  http://wiki.eclipse.org/index.php/Mylar_Integrator_Reference#Creating_Bridges
  
I suggest that you start looking at both the Java and the Ant structure bridge implementations.  You want to do the minimal thing first like Ant does, but look to the Java structure bridge as a reference implementation of a bridge for a programming language.  

As the first step, you could add the "Focus on Active Task" button to the Rails Navigator.  If all the elements that show in that view adapt to IResource you won't need a custom bridge, since the Resource bridge will do the work.  Then a next step is to make declaration filtering work, for which you would need a Ruby bridge, and then could get declarations to be filtered in the Outline view.
Comment 4 Raphael Ackermann CLA 2006-10-16 11:36:36 EDT
I've added the "Focus on Active Task" button to the Rails Navigator, that was the easy bit :-)

I then started work on a Ruby structure bridge similar to the Java structure bridge. I coud copy almost everything from the Java bridge and then replace JavaModel with RubyModel etc, as the Ruby code follows the Java code very closely. The only major thing that was missing is support for handles. I am now adding handle support to the ruby rdt plugin code. 

As far as I understand I'll need the Ruby structure bridge to create the context model so that interaction with elements results in interest etc.  What would I need the ui bridge for? Do I need if I want to use the focus on active task in the outline view when displaying a ruby file? 

Does it always make sense to have both the structure and the ui bridge, or is it possible to only have a structure bridge? Would that make sense? 

It would be good if more of the methods in IMylarStructureBridge were documented, e.g., the acceptsObject(Object obj) method. Now sure whether I could be of any help here.

One last thing. How would I share the code for the Ruby bridge? At the moment I have created a new project org.eclipse.mylar.ruby  but do not know whether that is the way to go. Also I cannot produce patches as there is no project to patch against. How would I share my code once I've got something working?

Comment 5 Mik Kersten CLA 2006-12-15 11:26:31 EST
Sorry taking so long to reply to this Raphael, will do so today or early next week.
Comment 6 Mik Kersten CLA 2006-12-18 17:49:49 EST
Raphel, the answers to your questions should be here, and if there is anything missing let me know so that we can add the documentation: http://wiki.eclipse.org/index.php/Mylar_Integrator_Reference#Creating_Bridges

Regarding sharing code, I think that the easiest thing is to create a project, that depends on Mylar the way that others have done, and then we can make this available via unified update site: bug 166733.
Comment 7 S. Robert James CLA 2007-06-04 13:15:59 EDT
What's the status on this?  Is there a Bridge available for download?
Comment 8 Eugene Kuleshov CLA 2007-06-04 13:21:20 EDT
(In reply to comment #7)
> What's the status on this?  Is there a Bridge available for download?

I spoke to Aptana folks at JavaOne and they agreed that it will be very beneficial integration. You should check with them about the status.
Comment 9 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn