Skip to content

Commit 6820a80

Browse files
committed
WindowsTileVertical: suppress in the legacy UI
Really, this command should only be shown in the SwingMDIUI, but for now, let's at least not show it in the LegacyUI. And really really, there should be a Tile command that doesn't care about MDI vs. SDI, etc. Ideally would work for _all_ UIs (except maybe LegacyUI, since it has its own Tile command)...
1 parent b47f058 commit 6820a80

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/scijava/ui/swing/mdi/WindowsTileVertical.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
package org.scijava.ui.swing.mdi;
3232

3333
import org.scijava.command.Command;
34+
import org.scijava.plugin.Attr;
3435
import org.scijava.plugin.Parameter;
3536
import org.scijava.plugin.Plugin;
3637
import org.scijava.ui.Arrangeable.Arrangement;
@@ -42,7 +43,8 @@
4243
*
4344
* @author Grant Harris
4445
*/
45-
@Plugin(type = Command.class, menuPath = "Window>Tile Vertical")
46+
@Plugin(type = Command.class, menuPath = "Window>Tile Vertical",
47+
attrs = { @Attr(name = "no-legacy") })
4648
public class WindowsTileVertical implements Command {
4749

4850
@Parameter

0 commit comments

Comments
 (0)