Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Display fixed point numbers
Display fixed point numbers [message #196216] Mon, 26 February 2007 11:34 Go to next message
Eclipse UserFriend
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 #197171 is a reply to message #196216] Thu, 01 March 2007 12:55 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: giraffiti101.yahoo.com

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 #197187 is a reply to message #197171] Thu, 01 March 2007 13:55 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:System.out.printf in Eclipse 3.2 with java 6
Next Topic:Importing preference file(epf) using SDK
Goto Forum:
  


Current Time: Thu Apr 25 16:52:34 GMT 2024

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

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

Back to the top