From 56b2e4e955f9ff00a4af3b0940757fbae5e520f1 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 14 Aug 2018 11:04:02 +0100 Subject: [PATCH] JAL-3056 no Save/Load colours xml in JalviewJS --- src/jalview/gui/FeatureSettings.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/FeatureSettings.java b/src/jalview/gui/FeatureSettings.java index 37258e4..2512a1b 100644 --- a/src/jalview/gui/FeatureSettings.java +++ b/src/jalview/gui/FeatureSettings.java @@ -22,6 +22,7 @@ package jalview.gui; import jalview.api.FeatureColourI; import jalview.api.FeatureSettingsControllerI; +import jalview.bin.Jalview; import jalview.datamodel.AlignmentI; import jalview.datamodel.SequenceI; import jalview.datamodel.features.FeatureMatcher; @@ -44,6 +45,7 @@ import java.awt.BorderLayout; import java.awt.Color; import java.awt.Component; import java.awt.Dimension; +import java.awt.FlowLayout; import java.awt.Font; import java.awt.Graphics; import java.awt.GridLayout; @@ -1348,8 +1350,14 @@ public class FeatureSettings extends JPanel JPanel buttonPanel = new JPanel(); buttonPanel.add(ok); buttonPanel.add(cancel); - buttonPanel.add(loadColours); - buttonPanel.add(saveColours); + if (!Jalview.isJS()) + { + /* + * no save/load XML in JalviewJS for now + */ + buttonPanel.add(loadColours); + buttonPanel.add(saveColours); + } bigPanel.add(scrollPane, BorderLayout.CENTER); settingsPane.add(bigPanel, BorderLayout.CENTER); settingsPane.add(buttonPanel, BorderLayout.SOUTH); -- 1.7.10.2