Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » insert date/time stamp?
insert date/time stamp? [message #247517] Mon, 31 May 2004 08:02 Go to next message
Eclipse UserFriend
Originally posted by: relaxedrob.remove.optusnet.com.au

Hi All!

Is it possible to insert a date-time stamp through the editor?

Thanks for any advice!

Rob
:)
Re: insert date/time stamp? [message #247527 is a reply to message #247517] Mon, 31 May 2004 08:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rndzank.comcast.net.not_this.net

If you didn't find any editor action that does it (I never looked for one,
assuming you tried) you can try code templates (Prefs/Java/Editor/Templates).
Create one for javadoc, named date with body containing ${date}, ${time}.
Then in JavaDoc you can type "da"+ Ctrl-SPACE and it will complete "date",
replace it with your template and evaluate the body.

r.

Robert Mark Bram wrote:

> Hi All!
>
> Is it possible to insert a date-time stamp through the editor?
>
> Thanks for any advice!
>
> Rob
> :)
>
>
>
Re: insert date/time stamp? [message #247857 is a reply to message #247527] Tue, 01 June 2004 08:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: relaxedrob.remove.optusnet.com.au

Hi Richard,

Thank you very much for the response!

> If you didn't find any editor action that does it (I never looked for one,
> assuming you tried) you can try code templates
(Prefs/Java/Editor/Templates).
> Create one for javadoc, named date with body containing ${date}, ${time}.
> Then in JavaDoc you can type "da"+ Ctrl-SPACE and it will complete "date",
> replace it with your template and evaluate the body.

My goodness that was easy!

How can I find a list of these environment properties for other templates?

Rob
:)
Re: insert date/time stamp? [message #248007 is a reply to message #247857] Tue, 01 June 2004 12:50 Go to previous message
Eclipse UserFriend
Originally posted by: rndzank.comcast.net.not_this.net

In the same place. There is a button "insert var." that shows all
along with their descriptions.


Robert Mark Bram wrote:
> (Prefs/Java/Editor/Templates).
>
> My goodness that was easy!
>
> How can I find a list of these environment properties for other templates?
Previous Topic:Debugging core classes
Next Topic:CVS perspective - how to set up "Repository location"
Goto Forum:
  


Current Time: Sun May 04 16:20:46 EDT 2025

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

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

Back to the top