git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-3210 Improvements to eclipse detection. New src tree and SwingJS updated from...
[jalview.git]
/
src
/
jalview
/
gui
/
CrossRefAction.java
diff --git
a/src/jalview/gui/CrossRefAction.java
b/src/jalview/gui/CrossRefAction.java
index
b5275e8
..
f607686
100644
(file)
--- a/
src/jalview/gui/CrossRefAction.java
+++ b/
src/jalview/gui/CrossRefAction.java
@@
-34,7
+34,6
@@
import jalview.datamodel.SequenceI;
import jalview.ext.ensembl.EnsemblInfo;
import jalview.ext.ensembl.EnsemblMap;
import jalview.io.gff.SequenceOntologyI;
import jalview.ext.ensembl.EnsemblInfo;
import jalview.ext.ensembl.EnsemblMap;
import jalview.io.gff.SequenceOntologyI;
-import jalview.structure.StructureSelectionManager;
import jalview.util.DBRefUtils;
import jalview.util.MapList;
import jalview.util.MappingUtils;
import jalview.util.DBRefUtils;
import jalview.util.MapList;
import jalview.util.MappingUtils;
@@
-108,7
+107,8
@@
public class CrossRefAction implements Runnable
/*
* get display scheme (if any) to apply to features
*/
/*
* get display scheme (if any) to apply to features
*/
- FeatureSettingsModelI featureColourScheme = new SequenceFetcher()
+ FeatureSettingsModelI featureColourScheme = SequenceFetcher
+ .getInstance()
.getFeatureColourScheme(source);
AlignmentI xrefsAlignment = makeCrossReferencesAlignment(dataset,
.getFeatureColourScheme(source);
AlignmentI xrefsAlignment = makeCrossReferencesAlignment(dataset,
@@
-141,7
+141,7
@@
public class CrossRefAction implements Runnable
*/
AlignFrame newFrame = new AlignFrame(xrefsAlignment,
AlignFrame.DEFAULT_WIDTH, AlignFrame.DEFAULT_HEIGHT);
*/
AlignFrame newFrame = new AlignFrame(xrefsAlignment,
AlignFrame.DEFAULT_WIDTH, AlignFrame.DEFAULT_HEIGHT);
- if (Cache.getDefault("HIDE_INTRONS", true))
+ if (Cache.getDefault(Preferences.HIDE_INTRONS, true))
{
newFrame.hideFeatureColumns(SequenceOntologyI.EXON, false);
}
{
newFrame.hideFeatureColumns(SequenceOntologyI.EXON, false);
}
@@
-276,7
+276,7
@@
public class CrossRefAction implements Runnable
return;
}
return;
}
- Set<String> ensemblDivisions = new EnsemblInfo().getDivisions();
+ Set<String> ensemblDivisions = EnsemblInfo.getDivisions();
/*
* first look for direct dbrefs from sequence to Ensembl
/*
* first look for direct dbrefs from sequence to Ensembl
@@
-436,14
+436,12
@@
public class CrossRefAction implements Runnable
copyAlignment
.setGapCharacter(alignFrame.viewport.getGapCharacter());
copyAlignment
.setGapCharacter(alignFrame.viewport.getGapCharacter());
- StructureSelectionManager ssm = StructureSelectionManager
- .getStructureSelectionManager(Desktop.instance);
-
/*
* register any new mappings for sequence mouseover etc
* (will not duplicate any previously registered mappings)
*/
/*
* register any new mappings for sequence mouseover etc
* (will not duplicate any previously registered mappings)
*/
- ssm.registerMappings(dataset.getCodonFrames());
+ Desktop.getStructureSelectionManager()
+ .registerMappings(dataset.getCodonFrames());
if (copyAlignment.getHeight() <= 0)
{
if (copyAlignment.getHeight() <= 0)
{