TimestampPlugin 

HOME INDEX SEARCH GO  

 <<O>>  Difference Topic TimestampPlugin (r1.14 - 18 Jun 2003 - AlexeyEfimov)
Changed:
<
<

%META:FIELD{name="TopicClassification" title="TopicClassification" value="IntelliJPluginPackage"}%

>
>

%META:FIELD{name="TopicClassification" title="TopicClassification" value="IntelliJPluginArchive"}%


 <<O>>  Difference Topic TimestampPlugin (r1.13 - 19 May 2003 - AlexeyEfimov)
Changed:
<
<

%META:FORM{name="WebForm"}%

>
>

%META:FORM{name="IntelliJPluginWebForm"}% %META:FIELD{name="IntelliJPluginName" title="IntelliJPluginName" value=""}% %META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value=""}% %META:FIELD{name="IntelliJPluginVendor" title="IntelliJPluginVendor" value=""}% %META:FIELD{name="IntelliJPluginBinary" title="IntelliJPluginBinary" value=""}% %META:FIELD{name="IntelliJPluginSource" title="IntelliJPluginSource" value=""}% %META:FIELD{name="IntelliJPluginClassification" title="IntelliJPluginClassification" value=""}%


 <<O>>  Difference Topic TimestampPlugin (r1.12 - 02 Dec 2002 - AlexeyEfimov)
Changed:
<
<

%META:FORM{name="PluginWebForm"}%

>
>

%META:FORM{name="WebForm"}%


 <<O>>  Difference Topic TimestampPlugin (r1.11 - 30 Nov 2002 - AlexeyEfimov)
Changed:
<
<

%META:TOPICPARENT{name="PluginContribs"}%

>
>

%META:TOPICPARENT{name="Trash.PluginContribs"}%

Added:
>
>

%META:FORM{name="PluginWebForm"}% %META:FIELD{name="TopicClassification" title="TopicClassification" value="IntelliJPluginPackage"}% %META:FIELD{name="TopicShortDescription" title="TopicShortDescription" value="This plugin inserts a comment containing user defined text plus a timestamp into the active editor window"}% %META:FIELD{name="TestedOnOS" title="TestedOnOS" value=""}% %META:FIELD{name="ShouldRunOnOS" title="ShouldRunOnOS" value=""}%


 <<O>>  Difference Topic TimestampPlugin (r1.10 - 26 Nov 2002 - JonasKvarnstrom)
Added:
>
>

How about an ability to insert just the comment text without delimiters (when you want to add something to an existing comment)? This could be another choice in addition to block and line comment. -- JonasKvarnstrom - 26 Nov 2002


 <<O>>  Difference Topic TimestampPlugin (r1.9 - 25 Nov 2002 - GabrioVerratti)
Added:
>
>

Hi Bob. Thanks for a very useful plugin. I was wondering whether you migh be able to provide a means by which to insert the output of timestamp via live templates. I was thinking along the lines of predefined functions used to resolve template variables? -- GabrioVerratti


 <<O>>  Difference Topic TimestampPlugin (r1.8 - 27 Sep 2002 - BobSlomcenski)
Changed:
<
<

Change History

>
>

Future Plans

Changed:
<
<

  • 8/26/2002 - Version 1.0 - Initial release.
  • 8/27/2002 - Version 1.01 - Added an icon for the menu entry.
    Version 1.01 uses the PathManager class which was introduced in build 641. Therefore it will not work with earlier builds.
  • 9/9/2002 - Version 1.1 - The user can now choose between block or line style comments. Line style (//), of course, is only available at the end of the line or on the line above. Block style (/* */) is available at any of the four locations (see description above). Also, the Timestamp action is now associated with the Ctrl-T keystroke.
  • 9/12/2002 - Version 2.0 - Added parsing of user-text for included java system property names (Version 2.0 works with build 641 to 644 only).
  • 9/13/2002 - Version 2.01 - plugin.xml changed to use keyboard-shortcut instead of shortcut to support changes in API for build 647. (Version 2.01 works with build 647+ only).
>
>

As time permits, I plan on adding the following:

  • Add appropriate comment delimiters for xml or jsp files. Comment delimiters will be selected based on file type so that <!-- --> comments would be inserted into xml or jsp files.
  • Instead of replacing the whole existing comment, just update or add-on the timestamp part (see: BerndSchiffer's comments below). This will require some thought though, since the end result comment appearance can take on several alternative appearances based on which parts are replaced and which are added-on.

-- BobSlomcenski - 27 Sep 2002

Change History

  • 8/26/2002 - Version 1.0 - Initial release.
  • 8/27/2002 - Version 1.01 - Added an icon for the menu entry. (Version 1.01 uses the PathManager class which was introduced in build 641. Therefore it will not work with earlier builds).
  • 9/9/2002 - Version 1.1 - The user can now choose between block or line style comments. Line style (//), of course, is only available at the end of the line or on the line above. Block style (/* */) is available at any of the four locations (see description above). Also, the Timestamp action is now associated with the Ctrl-T keystroke.
  • 9/12/2002 - Version 2.0 - Added parsing of user-text for included java system property names (Version 2.0 works with build 641-644 only).
  • 9/13/2002 - Version 2.01 - plugin.xml changed to use keyboard-shortcut instead of shortcut to support changes in API for build 647. (Version 2.01 works with build 647-648 only).
  • 9/27/2002 - Version 2.02 - Updated for changes in OpenAPI for build #650. No added features. (Version 2.02 works for build 650+).
Added:
>
>

%META:FILEATTACHMENT{name="Timestamp202.jar" attr="" comment="Version 2.02 (build 650)" date="1033140838" path="C:\MPSO\Projects\Timestamp\Timestamp202.jar" size="21954" user="BobSlomcenski" version="1.1"}%


 <<O>>  Difference Topic TimestampPlugin (r1.7 - 17 Sep 2002 - BerndSchiffer)
Added:
>
>

Comments

Hi Bob. This is a very usefull plugin, simple and effective. Thanks for that! But to make it perfect for me, could you add an option to place a line comment (like //...) at the caret position when there's already a line comment? E.g. you have a line like this:

  System.out.println("bla"); // some comment <caret>
and you want to add a timestamp at the caret position it should be like this
  System.out.println("bla"); // some comment <timestamp>
but now it is like that
  System.out.println("bla"); // <timestamp>
Is it possible to make an option not to replace the existing line comment but to complete it? -- BerndSchiffer

 <<O>>  Difference Topic TimestampPlugin (r1.6 - 13 Sep 2002 - BobSlomcenski)
Changed:
<
<

  • 9/12/2002 - Version 2.0 - Added parsing of user-text for included java system property names.
>
>

  • 9/12/2002 - Version 2.0 - Added parsing of user-text for included java system property names (Version 2.0 works with build 641 to 644 only).
  • 9/13/2002 - Version 2.01 - plugin.xml changed to use keyboard-shortcut instead of shortcut to support changes in API for build 647. (Version 2.01 works with build 647+ only).
Added:
>
>

%META:FILEATTACHMENT{name="Timestamp201.jar" attr="" comment="Version 2.01 (build 647+)" date="1031944515" path="C:\idea647\plugins\Timestamp201.jar" size="20931" user="BobSlomcenski" version="1.1"}%


 <<O>>  Difference Topic TimestampPlugin (r1.5 - 12 Sep 2002 - BobSlomcenski)
Changed:
<
<

Timestamp

>
>

Timestamp V2.0

Changed:
<
<

I am in the habit of adding a short comment that includes a timestamp near code areas that have been edited -- something like:


>
>

This plugin inserts a comment containing user defined text plus a timestamp into the active editor window.

I usually add a short comment that includes a timestamp near code areas that have been edited -- something like:


Changed:
<
<

This allows me to flag areas of source that have been changed. IDEA currently doesn't have any way to automatically generate the timestamp, so I created this plugin.

This plugin allows you to insert a comment that includes a timestamp at any of the following locations:

  • At the current caret position
  • Before the text on the current line (but after any indent)
  • After the text on the current line (end of line)
  • On the line above the current line (indented like current line)

If an existing comment of the form:


/* "anything" */
exists at the specified location, it is deleted. Then a new comment of the form:

/* "user-text" "timestamp" */
is inserted at the specified location.

This is my first plugin so comments/criticisms are welcome.

>
>

This allows me to flag areas of source that have been changed. IDEA currently doesn't have any way to automatically generate the timestamp, so I created this plugin.

Changed:
<
<

-- BobSlomcenski - 26 Aug 2002

>
>

This plugin provides the following features:

  • A Timestamp action is added to the Editor Popup Menu. It is initially associated with the Ctrl-T keystroke, but this may be changed by the user.
  • A panel is added to Project Properties allowing the user to customize the action behavior.
  • The user can select either block or line style comments.
  • The user can select the comment location from:
    • At the current caret location (block comment style only)
    • Before text on the current line (block comment style only)
    • After text on the current line (at end of line)
    • On a separate line above the current line
  • The user can select the format of the timestamp string.
  • The user can include 'user-defined' text including java system property values.

The Timestamp action does the following:

  • If an existing comment of the chosen type (block or line) is found at the desired location, it is deleted.
  • A new comment of the chosen type containing the 'User-Text' and 'Timestamp' is inserted at the desired location.
Changed:
<
<

Comments

>
>

'User-Text' may contain tokens of the form ${...} refering to any valid java system property name. The 'Timestamp' may be formatted using any of the SimpleDateFormat pattern strings.

Changed:
<
<

Nice plugin, it's simple and useful. However, I can't seem to find a way to associate this plugin with keymap. Any idea?

  • Response: Look in the plugin.xml file. There is a <shortcut/> line that is part of the <action> definition. I currently have Ctrl-T assigned to the timestamp plugin, but you can change it by editing the plugin.xml file. -- BobSlomcenski - 09 Sep 2002

Also, it would be nice it system property can be recognize within the "User TexT?". If the source code is available, I'll be more than willing to add these features to your plugin.

  • Response: I will be working on this for the next release. -- BobSlomcenski - 09 Sep 2002

-- MikeLiu

>
>

-- BobSlomcenski - 12 Sep 2002

Changed:
<
<

%META:FILEATTACHMENT{name="Timestamp.jar" attr="" comment="Version 1.1" date="1031592557" path="C:\idea644\plugins\Timestamp.jar" size="20655" user="BobSlomcenski" version="1.3"}%

>
>

  • 9/12/2002 - Version 2.0 - Added parsing of user-text for included java system property names.

%META:FILEATTACHMENT{name="Timestamp.jar" attr="" comment="Version 2.0" date="1031859334" path="C:\idea644\plugins\Timestamp.jar" size="20886" user="BobSlomcenski" version="1.4"}%


 <<O>>  Difference Topic TimestampPlugin (r1.4 - 09 Sep 2002 - BobSlomcenski)
Deleted:
<
<

Nice plugin, it's simple and useful. However, I can't seem to find a way to associate this plugin with keymap. Any idea?

Also, it would be nice it system property can be recognize within the "User TexT?". If the source code is available, I'll be more than willing to add these features to your plugin.

-- MikeLiu

Added:
>
>

Comments

Nice plugin, it's simple and useful. However, I can't seem to find a way to associate this plugin with keymap. Any idea?

  • Response: Look in the plugin.xml file. There is a <shortcut/> line that is part of the <action> definition. I currently have Ctrl-T assigned to the timestamp plugin, but you can change it by editing the plugin.xml file. -- BobSlomcenski - 09 Sep 2002

Also, it would be nice it system property can be recognize within the "User TexT?". If the source code is available, I'll be more than willing to add these features to your plugin.

  • Response: I will be working on this for the next release. -- BobSlomcenski - 09 Sep 2002

-- MikeLiu

Changed:
<
<

%META:FILEATTACHMENT{name="Timestamp.jar" attr="" comment="Version 1.01" date="1030469050" path="C:\MPSO\Projects\Timestamp\Timestamp.jar" size="20748" user="BobSlomcenski" version="1.2"}%

>
>

  • 9/9/2002 - Version 1.1 - The user can now choose between block or line style comments. Line style (//), of course, is only available at the end of the line or on the line above. Block style (/* */) is available at any of the four locations (see description above). Also, the Timestamp action is now associated with the Ctrl-T keystroke.
%META:FILEATTACHMENT{name="Timestamp.jar" attr="" comment="Version 1.1" date="1031592557" path="C:\idea644\plugins\Timestamp.jar" size="20655" user="BobSlomcenski" version="1.3"}%

 <<O>>  Difference Topic TimestampPlugin (r1.3 - 29 Aug 2002 - MikeLiu)
Added:
>
>

Nice plugin, it's simple and useful. However, I can't seem to find a way to associate this plugin with keymap. Any idea?

Also, it would be nice it system property can be recognize within the "User TexT?". If the source code is available, I'll be more than willing to add these features to your plugin.

-- MikeLiu


 <<O>>  Difference Topic TimestampPlugin (r1.2 - 27 Aug 2002 - BobSlomcenski)
Changed:
<
<

This is my first plugin so comments/criticisms are welcome.
This plugin was tested against build 642, but should work with build 637 or later.

>
>

This is my first plugin so comments/criticisms are welcome.

Changed:
<
<

%META:FILEATTACHMENT{name="Timestamp.jar" attr="" comment="Place in /plugins directory" date="1030389573" path="C:\MPSO\Projects\Timestamp\Timestamp.jar" size="19503" user="BobSlomcenski" version="1.1"}%

>
>

  • 8/27/2002 - Version 1.01 - Added an icon for the menu entry.
    Version 1.01 uses the PathManager class which was introduced in build 641. Therefore it will not work with earlier builds.
%META:FILEATTACHMENT{name="Timestamp.jar" attr="" comment="Version 1.01" date="1030469050" path="C:\MPSO\Projects\Timestamp\Timestamp.jar" size="20748" user="BobSlomcenski" version="1.2"}%

 <<O>>  Difference Topic TimestampPlugin (r1.1 - 26 Aug 2002 - BobSlomcenski)
Added:
>
>

%META:TOPICINFO{author="BobSlomcenski" date="1030389420" format="1.0" version="1.1"}% %META:TOPICPARENT{name="PluginContribs"}%

Timestamp

I am in the habit of adding a short comment that includes a timestamp near code areas that have been edited -- something like:


   oldUneditedValue = theOldValue;
   newEditedValue = theNewValue; /* Edited: 26-Aug-2002 01:38:58 PM EDT */

This allows me to flag areas of source that have been changed. IDEA currently doesn't have any way to automatically generate the timestamp, so I created this plugin.

This plugin allows you to insert a comment that includes a timestamp at any of the following locations:

  • At the current caret position
  • Before the text on the current line (but after any indent)
  • After the text on the current line (end of line)
  • On the line above the current line (indented like current line)

If an existing comment of the form:


/* "anything" */
exists at the specified location, it is deleted. Then a new comment of the form:

/* "user-text" "timestamp" */
is inserted at the specified location.

This is my first plugin so comments/criticisms are welcome.
This plugin was tested against build 642, but should work with build 637 or later.

-- BobSlomcenski - 26 Aug 2002

Change History

  • 8/26/2002 - Version 1.0 - Initial release.
%META:FILEATTACHMENT{name="Timestamp.jar" attr="" comment="Place in /plugins directory" date="1030389573" path="C:\MPSO\Projects\Timestamp\Timestamp.jar" size="19503" user="BobSlomcenski" version="1.1"}%

View | Diffs | r1.14 | > | r1.13 | > | r1.12 | More

e d i t a t t a c h r e f - b y d i f f s
Ideas,requests,problems regarding this site? Send feedback.
Copyright @ 2000-2003 by the contribution authors. All material on this collaboration tool is the property of the contributing authors.

Revision r1.1 - 26 Aug 2002 - 19:17 GMT - BobSlomcenski
Revision r1.14 - 18 Jun 2003 - 16:46 GMT - AlexeyEfimov
Copyright © 2001 by the contributing authors. All material on this collaboration tool is the property of the contributing authors.
Ideas, requests, problems regarding this site? Send feedback.