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

Bug 330403

Summary: org.eclipse.rephraserengine appears misnamed?
Product: [Tools] PTP Reporter: David Williams <david_williams>
Component: Photran.UnknownAssignee: Jeffrey Overbey <com-eclipse-dot-org>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P2 CC: com-eclipse-dot-org, g.watson
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description David Williams CLA 2010-11-16 15:24:59 EST
In the course of looking at bug 330288, I noticed this bundle named

org.eclipse.rephraserengine

That seems to be mis-named to me. There is no "rephraserengine" project, that I know of. Seems 'ptp' or 'photran' should be that third field? Perhaps

org.eclipse.ptp.rehraserengine? 

Now, don't just blindly change it, if it has API, or a long history of being that way ... after all, many in the platform itself are sort of misnamed, such as org.eclipse.swt .... so feel free to close as 'wontfix' if seems it would would be disruptive. Then it'll be documented why it has to remain that way. 

But, thought I'd just mention it in case it is new and/or relatively easy to change. But, again, not a showstopper if it would be too disruptive or breaking. 

Thanks for considering.
Comment 1 Greg Watson CLA 2010-12-22 09:32:55 EST
Jeff, are there any issues with changing this to org.eclipse.photran.rephraserengine?
Comment 2 Jeffrey Overbey CLA 2011-03-15 21:08:46 EDT
Hi David,

Thanks for the bug report. This was discussed briefly on the Photran(-dev?) mailing list, but it's probably good to have it documented here.

The "org.eclipse.rephraserengine" naming was intentional. Photran is actually divided into two major architectural components: Photran itself, which supports Fortran development in Eclipse, and the Rephraser Engine, which contains a number of language independent components and extension points to support refactoring, language-based searching, indexing, etc.

We originally had the code that became the Rephraser Engine mixed in with the Photran code, but developers (particularly ones new to the project) were having trouble remembering which classes were intended to be language-independent and which ones could have Fortran-specific code in them.  Several times I had to reject patches, trying to explain, "Yes, this is a class in Photran, but you can't put any Fortran-specific code in it" (which raised a few eyebrows).  Separating the Fortran-specific and language-independent parts into two separate features has alleviated that problem.

At UIUC, we have several different refactoring tools that all depend on the Rephraser Engine, so it does make sense to keep it a separate feature from Photran.  (Photran is the only tool that we've contributed to the Eclipse Foundation, since the others are still prototypes.)  We haven't made an effort to publicize the Rephraser API, since it's still changing somewhat, but I hope some other Eclipse projects can benefit from it in the future.  It does have some nice features, like the ability to contribute a new refactoring with basically one line of XML and one Java class.

I hope this explains the situation.
Comment 3 David Williams CLA 2011-03-15 21:22:25 EDT
> I hope this explains the situation.

Yes, thanks for documenting.