Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DSDP - Mobile Tools for Java (MTJ) » can't custom formatter?
can't custom formatter? [message #26358] Tue, 10 February 2009 09:15 Go to next message
Eclipse UserFriend
Originally posted by: program.163.com

hi

the mtj 0.91 can't custom my formatter? like

->Preferences
-->java/Code Style/Formatter
--->Active Profile?
Re: can't custom formatter? [message #26395 is a reply to message #26358] Wed, 11 February 2009 23:45 Go to previous messageGo to next message
Diego Madruga Sandin is currently offline Diego Madruga SandinFriend
Messages: 116
Registered: July 2009
Senior Member
Hi Weng,

I cant see why MTJ should custom a Code Style Formatter. Can you explain??
Re: can't custom formatter? [message #26431 is a reply to message #26395] Sat, 14 February 2009 23:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: program.163.com

Diego Madruga Sandin wrote:
> Hi Weng,
>
> I cant see why MTJ should custom a Code Style Formatter. Can you explain??
>
>
>

of course, we can without it.
but why JDT need it?

maybe sorry for my request, i just want say:
MTJ can call the custom formatter from JDT, it's possible? like:

code = org.eclpise.jdt.codestyle.getCurrentFormatter().format(code)

^-- just a figure of speech

i need it to CONST the code in my team. like we java project by JDT.
Re: can't custom formatter? [message #26636 is a reply to message #26431] Wed, 18 February 2009 12:59 Go to previous messageGo to next message
Diego Madruga Sandin is currently offline Diego Madruga SandinFriend
Messages: 116
Registered: July 2009
Senior Member
Hi Weng,

Let me see if i got it right. The idea is to call the formatter when, for
example, we create a new MIDlet?
Re: can't custom formatter? [message #27790 is a reply to message #26636] Mon, 09 March 2009 06:25 Go to previous messageGo to next message
ArLi Weng is currently offline ArLi WengFriend
Messages: 19
Registered: July 2009
Junior Member
for example:

i don't want to format the comment, so i setup an 'new formatter'
profile to disable it, but just work for jdt, so i think mtj using the
'eclipse built-in' always?

Diego Madruga Sandin wrote:
> Hi Weng,
>
> Let me see if i got it right. The idea is to call the formatter when,
> for example, we create a new MIDlet?
>
>
Re: can't custom formatter? [message #27830 is a reply to message #27790] Mon, 09 March 2009 07:01 Go to previous message
ArLi Weng is currently offline ArLi WengFriend
Messages: 19
Registered: July 2009
Junior Member
i got plan, just setup it at project properties(default its unmanaged
profile).

ArLi Weng wrote:
> for example:
>
> i don't want to format the comment, so i setup an 'new formatter'
> profile to disable it, but just work for jdt, so i think mtj using the
> 'eclipse built-in' always?
>
> Diego Madruga Sandin wrote:
>> Hi Weng,
>>
>> Let me see if i got it right. The idea is to call the formatter when,
>> for example, we create a new MIDlet?
>>
>>
Re: can't custom formatter? [message #571041 is a reply to message #26358] Wed, 11 February 2009 23:45 Go to previous message
Diego Madruga Sandin is currently offline Diego Madruga SandinFriend
Messages: 116
Registered: July 2009
Senior Member
Hi Weng,

I cant see why MTJ should custom a Code Style Formatter. Can you explain??
Re: can't custom formatter? [message #571094 is a reply to message #26395] Sat, 14 February 2009 23:20 Go to previous message
ArLi Weng is currently offline ArLi WengFriend
Messages: 19
Registered: July 2009
Junior Member
Diego Madruga Sandin wrote:
> Hi Weng,
>
> I cant see why MTJ should custom a Code Style Formatter. Can you explain??
>
>
>

of course, we can without it.
but why JDT need it?

maybe sorry for my request, i just want say:
MTJ can call the custom formatter from JDT, it's possible? like:

code = org.eclpise.jdt.codestyle.getCurrentFormatter().format(code)

^-- just a figure of speech

i need it to CONST the code in my team. like we java project by JDT.
Re: can't custom formatter? [message #571188 is a reply to message #26431] Wed, 18 February 2009 12:59 Go to previous message
Diego Madruga Sandin is currently offline Diego Madruga SandinFriend
Messages: 116
Registered: July 2009
Senior Member
Hi Weng,

Let me see if i got it right. The idea is to call the formatter when, for
example, we create a new MIDlet?
Re: can't custom formatter? [message #571826 is a reply to message #26636] Mon, 09 March 2009 06:25 Go to previous message
ArLi Weng is currently offline ArLi WengFriend
Messages: 19
Registered: July 2009
Junior Member
for example:

i don't want to format the comment, so i setup an 'new formatter'
profile to disable it, but just work for jdt, so i think mtj using the
'eclipse built-in' always?

Diego Madruga Sandin wrote:
> Hi Weng,
>
> Let me see if i got it right. The idea is to call the formatter when,
> for example, we create a new MIDlet?
>
>
Re: can't custom formatter? [message #571850 is a reply to message #27790] Mon, 09 March 2009 07:01 Go to previous message
ArLi Weng is currently offline ArLi WengFriend
Messages: 19
Registered: July 2009
Junior Member
i got plan, just setup it at project properties(default its unmanaged
profile).

ArLi Weng wrote:
> for example:
>
> i don't want to format the comment, so i setup an 'new formatter'
> profile to disable it, but just work for jdt, so i think mtj using the
> 'eclipse built-in' always?
>
> Diego Madruga Sandin wrote:
>> Hi Weng,
>>
>> Let me see if i got it right. The idea is to call the formatter when,
>> for example, we create a new MIDlet?
>>
>>
Previous Topic:Error loading devices [configuration problem]
Next Topic:mtj create package but without html
Goto Forum:
  


Current Time: Sat Dec 20 05:19:27 GMT 2014

Powered by FUDForum. Page generated in 0.02689 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software