import jalview.analysis.AnnotationSorter.SequenceAnnotationOrder;
import jalview.api.SplitContainerI;
import jalview.bin.Cache;
+import jalview.gui.Desktop;
import jalview.gui.JvSwingUtils;
import jalview.gui.Preferences;
+import jalview.gui.UserDefinedColours;
+import jalview.io.FormatAdapter;
import jalview.schemes.ColourSchemeProperty;
import jalview.util.MessageManager;
+import jalview.util.Platform;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.event.KeyEvent;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
+import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
setJMenuBar(alignFrameMenuBar);
// dynamically fill save as menu with available formats
- for (int i = 0; i < jalview.io.FormatAdapter.WRITEABLE_FORMATS.length; i++)
+ for (int i = 0; i < FormatAdapter.WRITEABLE_FORMATS.length; i++)
{
JMenuItem item = new JMenuItem(
- jalview.io.FormatAdapter.WRITEABLE_FORMATS[i]);
+ FormatAdapter.WRITEABLE_FORMATS[i]);
item.addActionListener(new ActionListener()
{
System.err.println(e.toString());
}
- if (!jalview.util.Platform.isAMac())
+ if (!Platform.isAMac())
{
closeMenuItem.setMnemonic('C');
outputTextboxMenu.setMnemonic('T');
reload.setMnemonic('R');
}
- if (jalview.gui.UserDefinedColours.getUserColourSchemes() != null)
+ if (UserDefinedColours.getUserColourSchemes() != null)
{
- java.util.Enumeration userColours = jalview.gui.UserDefinedColours
- .getUserColourSchemes().keys();
+ Enumeration userColours = UserDefinedColours.getUserColourSchemes()
+ .keys();
while (userColours.hasMoreElements())
{
radioItem.removeActionListener(radioItem.getActionListeners()[0]);
int option = JOptionPane.showInternalConfirmDialog(
- jalview.gui.Desktop.desktop,
+ Desktop.desktop,
MessageManager
.getString("label.remove_from_default_list"),
MessageManager
JOptionPane.YES_NO_OPTION);
if (option == JOptionPane.YES_OPTION)
{
- jalview.gui.UserDefinedColours
- .removeColourFromDefaults(radioItem.getText());
+ UserDefinedColours.removeColourFromDefaults(radioItem
+ .getText());
colourMenu.remove(radioItem);
}
else
// colours.add(covariationColour);
colours.add(tcoffeeColour);
colours.add(RNAInteractionColour);
- setColourSelected(jalview.bin.Cache.getDefault(
+ setColourSelected(Cache.getDefault(
Preferences.DEFAULT_COLOUR, "None"));
}
});
seqLimits.setText(MessageManager
.getString("label.show_sequence_limits"));
- seqLimits.setState(jalview.bin.Cache.getDefault("SHOW_JVSUFFIX", true));
+ seqLimits.setState(Cache.getDefault("SHOW_JVSUFFIX", true));
seqLimits.addActionListener(new ActionListener()
{
@Override
.setText(MessageManager.getString("action.calculate_tree"));
padGapsMenuitem.setText(MessageManager.getString("label.pad_gaps"));
- padGapsMenuitem.setState(jalview.bin.Cache
+ padGapsMenuitem.setState(Cache
.getDefault("PAD_GAPS", false));
padGapsMenuitem.addActionListener(new ActionListener()
{
});
autoCalculate.setText(MessageManager
.getString("label.autocalculate_consensus"));
- autoCalculate.setState(jalview.bin.Cache.getDefault(
+ autoCalculate.setState(Cache.getDefault(
"AUTO_CALC_CONSENSUS", true));
autoCalculate.addActionListener(new ActionListener()
{
+ MessageManager
.getString("label.enable_automatically_sort_alignment_when_open_new_tree"));
sortByTree
- .setState(jalview.bin.Cache.getDefault("SORT_BY_TREE", false));
+ .setState(Cache.getDefault("SORT_BY_TREE", false));
sortByTree.addActionListener(new ActionListener()
{
@Override
*/
package jalview.jbgui;
+import jalview.util.BrowserLauncher;
import jalview.util.MessageManager;
-import java.awt.*;
-import java.awt.event.*;
-import javax.swing.*;
-import javax.swing.border.*;
-import javax.swing.event.*;
+import java.awt.BorderLayout;
+import java.awt.Dimension;
+import java.awt.FlowLayout;
+import java.awt.Font;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.Insets;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.BorderFactory;
+import javax.swing.JButton;
+import javax.swing.JEditorPane;
+import javax.swing.JLabel;
+import javax.swing.JList;
+import javax.swing.JPanel;
+import javax.swing.JProgressBar;
+import javax.swing.JScrollPane;
+import javax.swing.JTable;
+import javax.swing.JTextField;
+import javax.swing.SwingConstants;
+import javax.swing.border.TitledBorder;
+import javax.swing.event.HyperlinkEvent;
+import javax.swing.event.HyperlinkListener;
public class GDasSourceBrowser extends JPanel
{
if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED)
{
- jalview.util.BrowserLauncher.openURL(e.getURL().toString());
+ BrowserLauncher.openURL(e.getURL().toString());
}
} catch (Exception ex)
{
*/
package jalview.jbgui;
+import jalview.gui.AlignViewport;
import jalview.util.MessageManager;
+import jalview.util.Platform;
import java.awt.FlowLayout;
import java.awt.Toolkit;
e.printStackTrace();
}
- if (!new jalview.util.Platform().isAMac())
+ if (!Platform.isAMac())
{
FileMenu.setMnemonic('F');
inputLocalFileMenuItem.setMnemonic('L');
* @param e
* DOCUMENT ME!
*/
- protected void inputLocalFileMenuItem_actionPerformed(
- jalview.gui.AlignViewport av)
+ protected void inputLocalFileMenuItem_actionPerformed(AlignViewport av)
{
}
* @param e
* DOCUMENT ME!
*/
- protected void inputURLMenuItem_actionPerformed(
- jalview.gui.AlignViewport av)
+ protected void inputURLMenuItem_actionPerformed(AlignViewport av)
{
}
* @param e
* DOCUMENT ME!
*/
- protected void inputTextboxMenuItem_actionPerformed(
- jalview.gui.AlignViewport av)
+ protected void inputTextboxMenuItem_actionPerformed(AlignViewport av)
{
}
*/
package jalview.jbgui;
+import jalview.analysis.AlignSeq;
import jalview.datamodel.AlignmentI;
import jalview.io.FormatAdapter;
+import jalview.util.Comparison;
import jalview.util.MessageManager;
import java.awt.BorderLayout;
}
if (al != null && al.getHeight() > 0)
{
- str = jalview.analysis.AlignSeq.extractGaps(
- jalview.util.Comparison.GapChars, al.getSequenceAt(0)
+ str = AlignSeq.extractGaps(
+ Comparison.GapChars, al.getSequenceAt(0)
.getSequenceAsString());
textfield.setText(str);
*/
package jalview.jbgui;
+import jalview.gui.Desktop;
import jalview.gui.JvSwingUtils;
import jalview.util.MessageManager;
import jalview.util.UrlLink;
-import java.awt.*;
-import java.awt.event.*;
-import javax.swing.*;
+import java.awt.Font;
+import java.awt.GridBagConstraints;
+import java.awt.GridBagLayout;
+import java.awt.Insets;
+import java.awt.Panel;
+import java.awt.Rectangle;
+import java.awt.event.KeyAdapter;
+import java.awt.event.KeyEvent;
+
+import javax.swing.BorderFactory;
+import javax.swing.JLabel;
+import javax.swing.JOptionPane;
+import javax.swing.JPanel;
+import javax.swing.JTextField;
+import javax.swing.SwingConstants;
public class GSequenceLink extends Panel
{
}
JOptionPane
- .showInternalMessageDialog(
- jalview.gui.Desktop.desktop,
- MessageManager.getString("warn.url_must_contain"),
+.showInternalMessageDialog(Desktop.desktop,
+ MessageManager.getString("warn.url_must_contain"),
MessageManager.getString("label.invalid_url"), JOptionPane.WARNING_MESSAGE);
return false;
}
*/
package jalview.jbgui;
+import jalview.bin.Cache;
import jalview.util.MessageManager;
import java.awt.BorderLayout;
wsMenuRefreshButs.add(resetWs, null);
wsMenuRefreshButs.add(progressBar, null);
myBorderlayout.setHgap(3);
- if (jalview.bin.Cache.getDefault("ENABLE_RSBS_EDITOR", false))
+ if (Cache.getDefault("ENABLE_RSBS_EDITOR", false))
{
JTabbedPane listPanels = new JTabbedPane();
listPanels.addTab("JABAWS Servers", wsListPanel);