JAL-2316 Added jalview.urls.* packages
authorkiramt <k.mourao@dundee.ac.uk>
Mon, 12 Dec 2016 13:48:11 +0000 (13:48 +0000)
committerkiramt <k.mourao@dundee.ac.uk>
Mon, 12 Dec 2016 13:48:11 +0000 (13:48 +0000)
15 files changed:
src/jalview/appletgui/IdPanel.java
src/jalview/gui/Preferences.java
src/jalview/urls/UrlLinkTableModel.java
src/jalview/urls/UrlProvider.java
src/jalview/urls/UrlProviderImpl.java
src/jalview/urls/api/UrlProviderFactoryI.java [moved from src/jalview/urls/UrlProviderFactoryI.java with 97% similarity]
src/jalview/urls/api/UrlProviderI.java [moved from src/jalview/urls/UrlProviderI.java with 97% similarity]
src/jalview/urls/applet/AppletUrlProviderFactory.java [moved from src/jalview/urls/AppletUrlProviderFactory.java with 90% similarity]
src/jalview/urls/desktop/DesktopUrlProviderFactory.java [moved from src/jalview/urls/DesktopUrlProviderFactory.java with 89% similarity]
test/jalview/urls/AppletUrlProviderFactoryTest.java
test/jalview/urls/CustomUrlProviderTest.java
test/jalview/urls/DesktopUrlProviderFactoryTest.java
test/jalview/urls/IdentifiersUrlProviderTest.java
test/jalview/urls/UrlLinkTableModelTest.java
test/jalview/urls/UrlProviderTest.java

index f9f1676..4e7c9cd 100755 (executable)
@@ -24,9 +24,9 @@ import jalview.datamodel.Sequence;
 import jalview.datamodel.SequenceFeature;
 import jalview.datamodel.SequenceGroup;
 import jalview.datamodel.SequenceI;
-import jalview.urls.AppletUrlProviderFactory;
-import jalview.urls.UrlProviderFactoryI;
-import jalview.urls.UrlProviderI;
+import jalview.urls.api.UrlProviderFactoryI;
+import jalview.urls.api.UrlProviderI;
+import jalview.urls.applet.AppletUrlProviderFactory;
 import jalview.viewmodel.AlignmentViewport;
 
 import java.awt.BorderLayout;
index 8048efe..1c40ea1 100755 (executable)
@@ -29,10 +29,10 @@ import jalview.io.JalviewFileView;
 import jalview.jbgui.GPreferences;
 import jalview.jbgui.GSequenceLink;
 import jalview.schemes.ColourSchemeProperty;
-import jalview.urls.DesktopUrlProviderFactory;
 import jalview.urls.UrlLinkTableModel;
-import jalview.urls.UrlProviderFactoryI;
-import jalview.urls.UrlProviderI;
+import jalview.urls.api.UrlProviderFactoryI;
+import jalview.urls.api.UrlProviderI;
+import jalview.urls.desktop.DesktopUrlProviderFactory;
 import jalview.util.MessageManager;
 import jalview.util.Platform;
 import jalview.util.UrlConstants;
index a647d9e..bbb227b 100644 (file)
@@ -22,6 +22,7 @@
 package jalview.urls;
 
 import jalview.bin.Cache;
+import jalview.urls.api.UrlProviderI;
 import jalview.util.UrlLink;
 
 import java.util.Iterator;
index 383c5d1..19fa196 100644 (file)
@@ -22,6 +22,8 @@ package jalview.urls;
 
 import static jalview.util.UrlConstants.SEP;
 
+import jalview.urls.api.UrlProviderI;
+
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Vector;
index 5e85062..87e40c6 100644 (file)
@@ -20,6 +20,7 @@
  */
 package jalview.urls;
 
+import jalview.urls.api.UrlProviderI;
 import jalview.util.UrlLink;
 
 import java.util.ArrayList;
similarity index 97%
rename from src/jalview/urls/UrlProviderFactoryI.java
rename to src/jalview/urls/api/UrlProviderFactoryI.java
index 69e5a80..b96113e 100644 (file)
@@ -18,7 +18,8 @@
  * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
  * The Jalview Authors are detailed in the 'AUTHORS' file.
  */
-package jalview.urls;
+package jalview.urls.api;
+
 
 /**
  * Interface to UrlProvider factories
similarity index 97%
rename from src/jalview/urls/UrlProviderI.java
rename to src/jalview/urls/api/UrlProviderI.java
index de52391..50e2b78 100644 (file)
@@ -18,7 +18,9 @@
  * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
  * The Jalview Authors are detailed in the 'AUTHORS' file.
  */
-package jalview.urls;
+package jalview.urls.api;
+
+import jalview.urls.UrlLinkDisplay;
 
 import java.util.List;
 import java.util.Vector;
  * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
  * The Jalview Authors are detailed in the 'AUTHORS' file.
  */
-package jalview.urls;
+package jalview.urls.applet;
+
+import jalview.urls.CustomUrlProvider;
+import jalview.urls.UrlProvider;
+import jalview.urls.api.UrlProviderFactoryI;
+import jalview.urls.api.UrlProviderI;
 
 import java.util.ArrayList;
 import java.util.List;
  * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
  * The Jalview Authors are detailed in the 'AUTHORS' file.
  */
-package jalview.urls;
+package jalview.urls.desktop;
+
+import jalview.urls.CustomUrlProvider;
+import jalview.urls.IdentifiersUrlProvider;
+import jalview.urls.UrlProvider;
+import jalview.urls.api.UrlProviderFactoryI;
+import jalview.urls.api.UrlProviderI;
 
 import java.util.ArrayList;
 import java.util.List;
index baf9c63..f679490 100644 (file)
@@ -20,6 +20,9 @@
  */
 package jalview.urls;
 
+import jalview.urls.api.UrlProviderFactoryI;
+import jalview.urls.api.UrlProviderI;
+import jalview.urls.applet.AppletUrlProviderFactory;
 import jalview.util.UrlConstants;
 
 import java.util.HashMap;
index 52b3fcd..853167b 100644 (file)
@@ -24,6 +24,7 @@ import static org.testng.AssertJUnit.assertEquals;
 import static org.testng.AssertJUnit.assertFalse;
 import static org.testng.AssertJUnit.assertTrue;
 
+import jalview.urls.api.UrlProviderI;
 import jalview.util.UrlConstants;
 
 import java.util.Arrays;
index d224c2e..a114f68 100644 (file)
@@ -20,6 +20,9 @@
  */
 package jalview.urls;
 
+import jalview.urls.api.UrlProviderI;
+import jalview.urls.desktop.DesktopUrlProviderFactory;
+
 import java.io.BufferedWriter;
 import java.io.File;
 import java.io.FileWriter;
index 2e1387c..3010ea2 100644 (file)
@@ -25,6 +25,8 @@ import static org.testng.AssertJUnit.assertEquals;
 import static org.testng.AssertJUnit.assertFalse;
 import static org.testng.AssertJUnit.assertTrue;
 
+import jalview.urls.api.UrlProviderI;
+
 import java.io.File;
 import java.io.FileWriter;
 import java.util.Arrays;
index 1304d1a..ca4b658 100644 (file)
@@ -25,6 +25,7 @@ import static jalview.util.UrlConstants.DELIM;
 import static jalview.util.UrlConstants.SEP;
 import static jalview.util.UrlConstants.SEQUENCE_ID;
 
+import jalview.urls.api.UrlProviderI;
 import jalview.util.MessageManager;
 
 import java.io.BufferedWriter;
index c7717c9..3b52c03 100644 (file)
@@ -1,5 +1,7 @@
 package jalview.urls;
 
+import jalview.urls.api.UrlProviderI;
+import jalview.urls.desktop.DesktopUrlProviderFactory;
 import jalview.util.UrlConstants;
 
 import java.io.BufferedWriter;