Skip to content

Commit 828514f

Browse files
committed
AbstractApp: add default getTitle() implementation
It just uses the name from the @plugin annotation.
1 parent ec7968e commit 828514f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/org/scijava/app/AbstractApp.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ public abstract class AbstractApp extends AbstractRichPlugin implements App {
4848
/** JAR manifest with metadata about the application. */
4949
private Manifest manifest;
5050

51+
@Override
52+
public String getTitle() {
53+
return getInfo().getName();
54+
}
55+
5156
@Override
5257
public String getVersion() {
5358
return getPOM() == null ? "Unknown" : getPOM().getVersion();

0 commit comments

Comments
 (0)