Skip to content

Commit 3fe4218

Browse files
committed
Display: extend Named interface
1 parent d6c6fcf commit 3fe4218

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/main/java/org/scijava/display/AbstractDisplay.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ public void close() {
150150
isClosed = true;
151151
}
152152

153+
// -- Named methods --
154+
153155
@Override
154156
public String getName() {
155157
return name;

src/main/java/org/scijava/display/Display.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333

3434
import java.util.List;
3535

36+
import org.scijava.Named;
3637
import org.scijava.plugin.Plugin;
3738
import org.scijava.plugin.RichPlugin;
3839

@@ -52,7 +53,7 @@
5253
* @see Plugin
5354
* @see DisplayService
5455
*/
55-
public interface Display<T> extends List<T>, RichPlugin {
56+
public interface Display<T> extends List<T>, RichPlugin, Named {
5657

5758
/**
5859
* Tests whether the display is capable of visualizing objects of the given
@@ -99,10 +100,4 @@ public interface Display<T> extends List<T>, RichPlugin {
99100
/** Closes the display and disposes its resources. */
100101
void close();
101102

102-
/** Gets the name of the display. */
103-
String getName();
104-
105-
/** Sets the name of the display. */
106-
void setName(String name);
107-
108103
}

0 commit comments

Comments
 (0)