diff --git a/pom.xml b/pom.xml index 091e663..c843436 100644 --- a/pom.xml +++ b/pom.xml @@ -112,6 +112,7 @@ 1.3.2 0.1 + 99.0 diff --git a/src/main/java/org/scijava/ui/swing/widget/SwingURIWidget.java b/src/main/java/org/scijava/ui/swing/widget/SwingURIWidget.java index 9161a73..0506fcc 100644 --- a/src/main/java/org/scijava/ui/swing/widget/SwingURIWidget.java +++ b/src/main/java/org/scijava/ui/swing/widget/SwingURIWidget.java @@ -34,9 +34,13 @@ import org.scijava.ui.UIService; import org.scijava.widget.FileWidget; import org.scijava.widget.InputWidget; +import org.scijava.widget.URIWidget; import org.scijava.widget.WidgetModel; -import javax.swing.*; +import javax.swing.Box; +import javax.swing.JButton; +import javax.swing.JPanel; +import javax.swing.JTextField; import javax.swing.event.DocumentEvent; import javax.swing.event.DocumentListener; import java.awt.event.ActionEvent; @@ -46,9 +50,10 @@ import java.net.URISyntaxException; /** - * Swing implementation of file selector widget. + * Swing implementation of URI selector widget. * - * @author Curtis Rueden + * @author Christian Tischer + * @author Jan Eglinger */ @Plugin(type = InputWidget.class) public class SwingURIWidget extends SwingInputWidget implements diff --git a/src/main/java/org/scijava/ui/swing/widget/URIWidget.java b/src/main/java/org/scijava/ui/swing/widget/URIWidget.java deleted file mode 100644 index 658d8c2..0000000 --- a/src/main/java/org/scijava/ui/swing/widget/URIWidget.java +++ /dev/null @@ -1,65 +0,0 @@ -package org.scijava.ui.swing.widget; - -/* - * #%L - * SciJava Common shared library for SciJava software. - * %% - * Copyright (C) 2009 - 2024 SciJava developers. - * %% - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. - * #L% - */ - -import org.scijava.widget.InputWidget; - -import java.net.URI; - -/** - * Widget interface for file selectors. - * - * @author Curtis Rueden - */ -public interface URIWidget extends InputWidget -{ - - /** - * Widget style for file opener dialogs. - * - * @see org.scijava.plugin.Parameter#style() - */ - String OPEN_STYLE = "open"; - - /** - * Widget style for file saver dialogs. - * - * @see org.scijava.plugin.Parameter#style() - */ - String SAVE_STYLE = "save"; - - /** - * Widget style for directory chooser dialogs. - * - * @see org.scijava.plugin.Parameter#style() - */ - String DIRECTORY_STYLE = "directory"; - -}