Skip to content

Commit b2dc170

Browse files
committed
Remove ImageJ tool-specific plugin attributes
These include alwaysActive and activeInAppFrame. ImageJ can define them using the new key/value pair extension mechanism instead.
1 parent 1eaf5de commit b2dc170

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

src/main/java/org/scijava/plugin/Plugin.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,6 @@
170170
/** Defines a function that is called to initialize the plugin in some way. */
171171
String initializer() default "";
172172

173-
/** When true, tool has no button but rather is active all the time. */
174-
boolean alwaysActive() default false;
175-
176-
/**
177-
* When true, tool receives events when the main ImageJ application frame is
178-
* active. When false, tool only receives events when a display window is
179-
* active.
180-
*/
181-
boolean activeInAppFrame() default false;
182-
183173
/**
184174
* A list of additional attributes which can be used to extend this annotation
185175
* beyond its built-in capabilities.

src/main/java/org/scijava/plugin/PluginInfo.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -229,19 +229,6 @@ public URL getIconURL() throws InstantiableException {
229229
return loadClass().getResource(iconPath);
230230
}
231231

232-
/** Gets whether tool is always active, rather than part of the toolbar. */
233-
public boolean isAlwaysActive() {
234-
return getAnnotation().alwaysActive();
235-
}
236-
237-
/**
238-
* Gets whether the tool receives input events when the main application frame
239-
* has the focus.
240-
*/
241-
public boolean isActiveInAppFrame() {
242-
return getAnnotation().activeInAppFrame();
243-
}
244-
245232
// -- Object methods --
246233

247234
@Override

0 commit comments

Comments
 (0)