8000 Always recommend use of a package · imagej/example-legacy-plugin@c7ae4d6 · GitHub
[go: up one dir, main page]

Skip to content

Commit c7ae4d6

Browse files
committed
Always recommend use of a package
We use the package com.mycompany.imagej as an example.
1 parent dfb6eaf commit c7ae4d6

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<relativePath />
1313
</parent>
1414

15-
<groupId>sc.fiji</groupId>
15+
<groupId>com.mycompany</groupId>
1616
<artifactId>Process_Pixels</artifactId>
1717
<version>0.1.0-SNAPSHOT</version>
1818

@@ -51,7 +51,8 @@
5151
</scm>
5252

5353
<properties>
54-
<main-class>Process_Pixels</main-class>
54+
<package-name>com.mycompany.imagej</package-name>
55+
<main-class>com.mycompany.imagej.Process_Pixels</main-class>
5556
</properties>
5657

5758
<dependencies>

src/main/java/Process_Pixels.java renamed to src/main/java/com/mycompany/imagej/Process_Pixels.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* http://creativecommons.org/publicdomain/zero/1.0/
77
*/
88

9+
package com.mycompany.imagej;
10+
911
import ij.IJ;
1012
import ij.ImageJ;
1113
import ij.ImagePlus;

src/main/resources/plugins.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
# If something like ("<arg>") is appended to the class name, the setup() method
1010
# will get that as arg parameter; otherwise arg is simply the empty string.
1111

12-
Process, "Process Pixels", Process_Pixels
12+
Process, "Process Pixels", com.mycompany.imagej.Process_Pixels

0 commit comments

Comments
 (0)
0