Java2CSharp project nature [message #468739] |
Fri, 08 August 2008 08:19  |
Alexandre FAU Messages: 17 Registered: July 2009 |
Junior Member |
|
|
Hello,
For those who use the translator in multi-project mode
(http://j2cstranslator.wiki.sourceforge.net/HowToUse), you certainly note
that there is no UI integration of that feature (it's only an xml file to
edit, and you can use it only in the command line version).
So, why not to have a specific project nature for that ?
My idea is : a project nature with a wizard where you add references on
existing Java projects to translate, set global options (exactly what the
xml file already contains) and a specific perspective.
Once your project is set up you can decide to
* customize the translation
- specify what transformation to perform (customize the translation
... could be used to translate Java to other java-like language)
- modify output directory
- modify some options
* perform action on source code
- update it (if under svn/cvs)
- translate it (i.e. translate all referenced Java projects)
- check with svn/cvs if a new translation is required
* perform action on generated code
- clean,
- compile,
- launch unit test ?
Something similar to the Feature project in Eclipse.
Is this feature will be useful ? Am I completely crazy :-) ?
Any comment, other idea ?
I'm looking for info/volunteer to help on this (not necessary to start it
right now but to have advise, ...).
Thanks.
@lex
|
|
|
|
|
|
Re: Java2CSharp project nature [message #469307 is a reply to message #469298] |
Wed, 20 August 2008 15:20   |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
Remy Chi Jian Suen wrote:
>
> Right, and that's fine. People can create their own user interfaces to
> work with the XML file for their own tools (like NetBeans or IDEA) or
> just edit the file by hand. On the Eclipse side, this project would
> provide the proper Eclipse tooling accordingly. You already have Maven
> tasks defined so people don't necessarily have to invoke or modify the
> translation through Eclipse, right? It's a similar concept here.
I have to agree with Remy on this... if it's an eclipse project it
should provide an eclipse based editor. I agree that ideally it should
be consumable outside of eclispe (i.e. the core.runtime portion), but
that there should be an Eclipse editor for people to use.
|
|
|
|
Re: Java2CSharp project nature [message #566372 is a reply to message #468739] |
Sat, 16 August 2008 13:08  |
Eclipse User |
|
|
|
Originally posted by: remy.suen.gmail.com
On Fri, 08 Aug 2008 08:19:35 +0000, Alexandre FAU wrote:
> a specific perspective.
What would this perspective offer?
> * perform action on source code
> - update it (if under svn/cvs)
I'm not sure what the point of this is when there's already the 'Team'
menu available.
> check with svn/cvs if a new translation is required
Can you elaborate on this? Do you mean that it would check the files'
history to determine if the API has changed?
> Something similar to the Feature project in Eclipse.
Feature project?
> Is this feature will be useful ? Am I completely crazy :-) ? Any
> comment, other idea ?
I think that this sounds like the right track although I'm not entirely
convinced that using project natures is the proper way to solve this
problem. If everything is currently defined by an XML file, it may be
worth just creating a frontend editor to edit and interface with that XML
file. This would increase portability so that people can perform
transformations without necessarily creating an Eclipse Java project.
Remy
|
|
|
|
Re: Java2CSharp project nature [message #566432 is a reply to message #469289] |
Tue, 19 August 2008 15:17  |
Eclipse User |
|
|
|
Originally posted by: remy.suen.gmail.com
On Mon, 18 Aug 2008 09:46:14 +0000, Alexandre FAU wrote:
> A "view" on linked Java projects (the ones you want to translate) and
> a way to change translation behavior on it or globally.
I'm not sure if I'm convinced it's worth creating a perspective to
accomodate so few views.
>> > * perform action on source code
>> > - update it (if under svn/cvs)
>> I'm not sure what the point of this is when there's already the 'Team'
>> menu available.
> Right, I just want to have a specific view to aggregate all actions on
> code to translate.
I imagine that the 'Team' menu would appear in the same places where your
translation actions would appear anyway.
>> This would increase portability so that people can perform
>> transformations without necessarily creating an Eclipse Java project.
> Ok, It's another usage ... But that people certainly don't want to use
> *at all* Eclipse UI and the editor must be stand alone.
Right, and that's fine. People can create their own user interfaces to
work with the XML file for their own tools (like NetBeans or IDEA) or
just edit the file by hand. On the Eclipse side, this project would
provide the proper Eclipse tooling accordingly. You already have Maven
tasks defined so people don't necessarily have to invoke or modify the
translation through Eclipse, right? It's a similar concept here.
|
|
|
Re: Java2CSharp project nature [message #566461 is a reply to message #469298] |
Wed, 20 August 2008 15:20  |
Eclipse User |
|
|
|
Originally posted by: dcarver.starstandard.org
Remy Chi Jian Suen wrote:
>
> Right, and that's fine. People can create their own user interfaces to
> work with the XML file for their own tools (like NetBeans or IDEA) or
> just edit the file by hand. On the Eclipse side, this project would
> provide the proper Eclipse tooling accordingly. You already have Maven
> tasks defined so people don't necessarily have to invoke or modify the
> translation through Eclipse, right? It's a similar concept here.
I have to agree with Remy on this... if it's an eclipse project it
should provide an eclipse based editor. I agree that ideally it should
be consumable outside of eclispe (i.e. the core.runtime portion), but
that there should be an Eclipse editor for people to use.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02581 seconds