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-2909 Tidy up bam file cigar code
[jalview.git]
/
src
/
jalview
/
gui
/
Desktop.java
diff --git
a/src/jalview/gui/Desktop.java
b/src/jalview/gui/Desktop.java
index
ad80ca5
..
128481c
100644
(file)
--- a/
src/jalview/gui/Desktop.java
+++ b/
src/jalview/gui/Desktop.java
@@
-360,7
+360,8
@@
public class Desktop extends jalview.jbgui.GDesktop
new MyDesktopManager(
(Platform.isWindows() ? new DefaultDesktopManager()
: Platform.isAMac()
new MyDesktopManager(
(Platform.isWindows() ? new DefaultDesktopManager()
: Platform.isAMac()
- ? new AquaInternalFrameManager()
+ ? new AquaInternalFrameManager(
+ desktop.getDesktopManager())
: desktop.getDesktopManager())));
Rectangle dims = getLastKnownDimensions("");
: desktop.getDesktopManager())));
Rectangle dims = getLastKnownDimensions("");
@@
-868,6
+869,10
@@
public class Desktop extends jalview.jbgui.GDesktop
JInternalFrame itf = desktop.getSelectedFrame();
if (itf != null)
{
JInternalFrame itf = desktop.getSelectedFrame();
if (itf != null)
{
+ if (itf instanceof AlignFrame)
+ {
+ Jalview.setCurrentAlignFrame((AlignFrame) itf);
+ }
itf.requestFocus();
}
}
itf.requestFocus();
}
}
@@
-894,15
+899,7
@@
public class Desktop extends jalview.jbgui.GDesktop
menuItem.removeActionListener(menuItem.getActionListeners()[0]);
}
windowMenu.remove(menuItem);
menuItem.removeActionListener(menuItem.getActionListeners()[0]);
}
windowMenu.remove(menuItem);
- JInternalFrame itf = desktop.getSelectedFrame();
- if (itf != null)
- {
- itf.requestFocus();
- if (itf instanceof AlignFrame)
- {
- Jalview.setCurrentAlignFrame((AlignFrame) itf);
- }
- }
+
System.gc();
};
});
System.gc();
};
});
@@
-2341,7
+2338,7
@@
public class Desktop extends jalview.jbgui.GDesktop
{
String link = li.next();
if (link.contains(SEQUENCE_ID)
{
String link = li.next();
if (link.contains(SEQUENCE_ID)
- && !link.equals(UrlConstants.DEFAULT_STRING))
+ && !UrlConstants.isDefaultString(link))
{
check = true;
int barPos = link.indexOf("|");
{
check = true;
int barPos = link.indexOf("|");