Display fixed point numbers [message #196216] |
Mon, 26 February 2007 11:34 |
Eclipse User |
|
|
|
Originally posted by: giraffiti101.yahoo.com
Does anyone know of a plugin that can display fixed point numbers in the
variables window? I want something that works the same way that the
"display hexidecmal values" option works.
|
|
|
|
Re: Display fixed point numbers [message #197187 is a reply to message #197171] |
Thu, 01 March 2007 13:55 |
Eclipse User |
|
|
|
Originally posted by: dmsubs.NOSPAM.consertum.com
If you have a static method in your java that formats as you want it and returns
a string, you can use a New Detail Formatter on your variable to display the
value. Right click on the variable in the Variables view.
No plugins required!
--
Derek
Ed Welch wrote:
> I guess, since no one answered, the answer is no.
> Is it even possible to make such a feature as a plugin? How difficult
> would it be?
>
|
|
|
Re: Display fixed point numbers [message #197761 is a reply to message #197187] |
Sun, 04 March 2007 18:50 |
Eclipse User |
|
|
|
Originally posted by: giraffiti101.yahoo.com
> If you have a static method in your java that formats as you want it and
returns a string,
Where do you put this static method? And how does eclipse know where to
find the method?
|
|
|
Re: Display fixed point numbers [message #197792 is a reply to message #197761] |
Mon, 05 March 2007 08:03 |
Eclipse User |
|
|
|
Originally posted by: dmsubs.NOSPAM.consertum.com
You put it into you code - anywhere, as long as it is accessible.
You give the name to eclipse...
Why don't you try it?
--
Derek
Ed Welch wrote:
>> If you have a static method in your java that formats as you want it and
> returns a string,
> Where do you put this static method? And how does eclipse know where to
> find the method?
>
>
|
|
|
Re: Display fixed point numbers [message #197800 is a reply to message #197792] |
Mon, 05 March 2007 09:28 |
Eclipse User |
|
|
|
Originally posted by: giraffiti101.yahoo.com
The only way I could see how to do it is by individually creating a new
watch expression for each variable and then editing the expression.
This is not good for 2 reasons, firstly it's rather cumbersome and
secondly there is a bug in eclipse, if you create watch expressions it
causes the debugger to fail, so I always avoid them.
|
|
|
Powered by
FUDForum. Page generated in 0.08519 seconds