[ANN] Copyright 0.1.5-4x

Minor bug fixes.

- Changed display name on settings page from "CopyrightPlugin Plugin" to "Copyright"
- Fixed threading issues with mangled new classes if the class was created via Alt-Enter on an unknown class and various settings were just right.

Rick

4 comments
Comment actions Permalink

Rick, any chance to have:
- copyrights for non-Java files? (props, JSP, ...)

And, how do I enter copyright no using block comments (/* */)
but line comments instead? (//) It seems to do nothing if
I don't use block comments. Perhaps some velocity trick?

thx

r.

Rick Maddy wrote:

Minor bug fixes.

- Changed display name on settings page from "CopyrightPlugin Plugin" to "Copyright"
- Fixed threading issues with mangled new classes if the class was created via Alt-Enter on an unknown class and various settings were just right.

Rick

0
Comment actions Permalink

Line comment copyrights aren't supported at the moment. It's on my list.

I have thought about support for other file types. As with everyone else, I'm pretty busy but I'll add it to my list.

Rick

0
Comment actions Permalink

I'm having difficulty with the remove option. Whether I have Remove Others checked or not, any old comments are removed. Is this an error in the plugin or am I misunderstanding the intention?

0
Comment actions Permalink

Best explained with an example.

If I have a class such as:

/* comment A */
package x;

/* comment B */
import a.b;

/* comment C */
public class Y
{
}

If I have the "Remove Others" option selected then two of these comments will be deleted and the third will be replaced with the copyright notice.

If "Remove Others" is not selected then one comment will be replaced with the copyright notice and the others will be left as-is.

The "Replace" option does the following:

Assume the following class:

/* comment C */
package x;

/* comment A */

/* comment B */

import a.b;

/* comment D */
public class Y
{
}

Assume I have "Location" set to "Before Imports".

If I set "Replace" to "First" then comment A will be replaced with the copyright notice and comment B will left as-is.

If I set "Replace" to "Last" then comment B will be replaced with the copyright notice and comment A will be left as-is.

If I set "Replace" to "All" then comments A and B will be removed and the copyright notice will be left in their place.

Comments C and D will be left alone if "Remove Others" is unchecked or they will be deleted if "Remove Others" is checked.

Make sense?

Rick

0

Please sign in to leave a comment.