Merge branch 'feature/JAL-3686_slivka_client_js_update' into alpha/merge_212_JalviewJ... alpha/merge_212_JalviewJS_2112
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Thu, 9 Jul 2020 14:43:01 +0000 (15:43 +0100)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Thu, 9 Jul 2020 14:43:01 +0000 (15:43 +0100)
Conflicts:
src/jalview/gui/Desktop.java
src/jalview/gui/Preferences.java
src/jalview/jbgui/GPreferences.java

1  2 
src/jalview/gui/AlignFrame.java
src/jalview/gui/Desktop.java
src/jalview/gui/Preferences.java
src/jalview/jbgui/GPreferences.java
src/jalview/ws/jws2/Jws2Discoverer.java

Simple merge
@@@ -92,37 -121,6 +92,38 @@@ import javax.swing.event.InternalFrameE
  
  import org.stackoverflowusers.file.WindowsShortcut;
  
 +import jalview.api.AlignViewportI;
 +import jalview.api.AlignmentViewPanel;
 +import jalview.bin.Cache;
 +import jalview.bin.Jalview;
 +import jalview.gui.ImageExporter.ImageWriterI;
 +import jalview.io.BackupFiles;
 +import jalview.io.DataSourceType;
 +import jalview.io.FileFormat;
 +import jalview.io.FileFormatException;
 +import jalview.io.FileFormatI;
 +import jalview.io.FileFormats;
 +import jalview.io.FileLoader;
 +import jalview.io.FormatAdapter;
 +import jalview.io.IdentifyFile;
 +import jalview.io.JalviewFileChooser;
 +import jalview.io.JalviewFileView;
 +import jalview.jbgui.GSplitFrame;
 +import jalview.jbgui.GStructureViewer;
 +import jalview.project.Jalview2XML;
 +import jalview.structure.StructureSelectionManager;
 +import jalview.urls.IdOrgSettings;
 +import jalview.util.BrowserLauncher;
 +import jalview.util.ImageMaker.TYPE;
 +import jalview.util.MessageManager;
 +import jalview.util.Platform;
 +import jalview.util.ShortcutKeyMaskExWrapper;
 +import jalview.util.UrlConstants;
 +import jalview.viewmodel.AlignmentViewport;
++import jalview.ws.WSDiscovererI;
 +import jalview.ws.params.ParamManager;
 +import jalview.ws.utils.UrlDownloadClient;
 +
  /**
   * Jalview Desktop
   * 
@@@ -210,18 -212,13 +212,20 @@@ public class Preferences extends GPrefe
      super();
      frame = new JInternalFrame();
      frame.setContentPane(this);
 -    wsPrefs = new WsPreferences();
 -    wsTab.add(wsPrefs, BorderLayout.CENTER);
 -    slivkaTab.add(slivkaPrefs = new SlivkaPreferences(),
 -        BorderLayout.CENTER);
 +    if (!Platform.isJS())
 +    /**
 +     * Java only
 +     * 
 +     * @j2sIgnore
 +     */
 +    {
 +      wsPrefs = new WsPreferences();
 +      wsTab.add(wsPrefs, BorderLayout.CENTER);
++      slivkaPrefs = new SlivkaPreferences();
++      slivkaTab.add(slivkaPrefs, BorderLayout.CENTER);
 +    }
      int width = 500, height = 450;
 -    new jalview.util.Platform();
 -    if (Platform.isAMac())
 +    if (Platform.isAMacAndNotJS())
      {
        width = 570;
        height = 480;
@@@ -426,11 -421,10 +428,13 @@@ public class GPreferences extends JPane
      /*
       * See WsPreferences for the real work of configuring this tab.
       */
 -    wsTab.setLayout(new BorderLayout());
 -    tabbedPane.add(wsTab, MessageManager.getString("label.web_services"));
 -    slivkaTab.setLayout(new BorderLayout());
 -    tabbedPane.add(slivkaTab, "Slivka Services");
 +    if (!Platform.isJS())
 +    {
 +      wsTab.setLayout(new BorderLayout());
 +      tabbedPane.add(wsTab, MessageManager.getString("label.web_services"));
++      slivkaTab.setLayout(new BorderLayout());
++      tabbedPane.add(slivkaTab, "Slivka Services");
 +    }
  
      /*
       * Handler to validate a tab before leaving it - currently only for