From 9c04f4ce6bb3a8851b1abf3bb9999ca097d37685 Mon Sep 17 00:00:00 2001 From: jprocter Date: Thu, 22 Sep 2011 17:20:55 +0100 Subject: [PATCH] refactor and remove excess imports (JAL-943) --- src/jalview/gui/BlogReader.java | 7 ------- src/jalview/gui/Desktop.java | 7 ++++--- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/jalview/gui/BlogReader.java b/src/jalview/gui/BlogReader.java index 3b7df48..2759eff 100644 --- a/src/jalview/gui/BlogReader.java +++ b/src/jalview/gui/BlogReader.java @@ -16,7 +16,6 @@ import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import java.beans.PropertyChangeListener; import java.text.DateFormat; -import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; @@ -46,14 +45,11 @@ import javax.swing.event.HyperlinkEvent; import javax.swing.event.HyperlinkListener; import javax.swing.event.ListSelectionEvent; import javax.swing.event.ListSelectionListener; -import javax.swing.text.DateFormatter; -import org.robsite.jswingreader.action.AboutAction; import org.robsite.jswingreader.action.MarkChannelAsRead; import org.robsite.jswingreader.action.MarkChannelAsUnread; import org.robsite.jswingreader.action.MarkItemAsRead; import org.robsite.jswingreader.action.MarkItemAsUnread; -import org.robsite.jswingreader.action.RefreshChannelAction; import org.robsite.jswingreader.action.UpdatableAction; import org.robsite.jswingreader.model.Channel; import org.robsite.jswingreader.model.ChannelListModel; @@ -63,9 +59,6 @@ import org.robsite.jswingreader.ui.BlogContentPane; import org.robsite.jswingreader.ui.ItemReadTimer; import org.robsite.jswingreader.ui.Main; import org.robsite.jswingreader.ui.util.ContextMenuMouseAdapter; -import org.robsite.jswingreader.util.BrowserUtils; - -import quicktime.std.movies.media.TextDescription; /** * Blog reading window, adapted from JSwingReader's diff --git a/src/jalview/gui/Desktop.java b/src/jalview/gui/Desktop.java index a5778a7..bb84612 100644 --- a/src/jalview/gui/Desktop.java +++ b/src/jalview/gui/Desktop.java @@ -349,11 +349,12 @@ public class Desktop extends jalview.jbgui.GDesktop implements { showNews(showNews.isSelected()); } - void showNews(boolean default1) + void showNews(boolean visible) { { - jvnews.setVisible(default1); - if (default1) + jvnews.setVisible(visible); + showNews.setSelected(visible); + if (visible) { jvnews.refreshNews(); jvnews.toFront(); -- 1.7.10.2