searchResults = null;
}
+ searchBox.updateCache();
+
// if allResults is null, this effectively switches displaySearch flag in
// seqCanvas
ap.highlightSearchResults(searchResults);
// 'SelectRegion' selection
if (!haveResults)
{
+ resIndex = -1;
+ seqIndex = 0;
JvOptionPane.showInternalMessageDialog(this,
MessageManager.getString("label.finished_searching"), null,
JvOptionPane.INFORMATION_MESSAGE);
- resIndex = -1;
- seqIndex = 0;
}
else
{
message += searchResults.getSize()
+ " subsequence matches found.";
}
- JvOptionPane.showInternalMessageDialog(this, message, null,
- JvOptionPane.INFORMATION_MESSAGE);
resIndex = -1;
seqIndex = 0;
+ JvOptionPane.showInternalMessageDialog(this, message, null,
+ JvOptionPane.INFORMATION_MESSAGE);
}
}
- searchBox.updateCache();
}
/**
import jalview.schemabinding.version2.AnnotationColours;
import jalview.schemabinding.version2.AnnotationElement;
import jalview.schemabinding.version2.CalcIdParam;
-import jalview.schemabinding.version2.Colour;
import jalview.schemabinding.version2.CompoundMatcher;
import jalview.schemabinding.version2.DBRef;
import jalview.schemabinding.version2.Features;
if (errorMessage != null)
{
final String finalErrorMessage = errorMessage;
+ errorMessage = null;
if (raiseGUI)
{
javax.swing.SwingUtilities.invokeLater(new Runnable()
}
else
{
- System.err.println("Problem loading Jalview file: " + errorMessage);
+ System.err.println(
+ "Problem loading Jalview file: " + finalErrorMessage);
}
}
- errorMessage = null;
}
Map<String, String> alreadyLoadedPDB = new HashMap<>();
@Override
public void run()
{
+ oomInprogress = false;
JvOptionPane.showInternalMessageDialog(desktop, MessageManager
.formatMessage("warn.out_of_memory_when_action", new String[]
{ action }), MessageManager.getString("label.out_of_memory"),
JvOptionPane.WARNING_MESSAGE);
// hope that there's enough memory left that no more appear.
- oomInprogress = false;
}
}
import jalview.analysis.AnnotationSorter.SequenceAnnotationOrder;
import jalview.bin.Cache;
import jalview.gui.Help.HelpId;
-import jalview.gui.JalviewColourChooser.ColourChooserListener;
import jalview.gui.StructureViewer.ViewerType;
import jalview.io.FileFormatI;
import jalview.io.JalviewFileChooser;
import java.util.List;
import javax.help.HelpSetException;
-import javax.swing.JColorChooser;
import javax.swing.JFileChooser;
import javax.swing.JInternalFrame;
import javax.swing.JPanel;
}
} catch (NumberFormatException x)
{
+ userIdWidth.setText("");
JvOptionPane.showInternalMessageDialog(Desktop.desktop,
MessageManager
.getString("warn.user_defined_width_requirements"),
MessageManager.getString("label.invalid_id_column_width"),
JvOptionPane.WARNING_MESSAGE);
- userIdWidth.setText("");
}
}
}
else
{
+ wsInfo.setVisible(false);
JvOptionPane.showMessageDialog(alignFrame,
MessageManager.getString("info.invalid_msa_input_mininfo"),
MessageManager.getString("info.invalid_msa_notenough"),
JvOptionPane.INFORMATION_MESSAGE);
- wsInfo.setVisible(false);
}
}