X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjalview%2Fgui%2FProgressBar.java;h=ea341e3ed9cd341989be07aae02cba69b346ca20;hb=bd894ca9f2aae448653d7431ab8a170e1105e85c;hp=bb5e780784b4021a1c10d862715be4882fd2ae28;hpb=4d7f98a6dd54d9863ba449ec79dcd95d25ed863d;p=jalview.git diff --git a/src/jalview/gui/ProgressBar.java b/src/jalview/gui/ProgressBar.java index bb5e780..ea341e3 100644 --- a/src/jalview/gui/ProgressBar.java +++ b/src/jalview/gui/ProgressBar.java @@ -1,3 +1,23 @@ +/* + * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$) + * Copyright (C) $$Year-Rel$$ The Jalview Authors + * + * This file is part of Jalview. + * + * Jalview is free software: you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation, either version 3 + * of the License, or (at your option) any later version. + * + * Jalview is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty + * of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Jalview. If not, see . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.gui; import jalview.util.MessageManager; @@ -199,8 +219,8 @@ public class ProgressBar implements IProgressIndicator final JPanel progressPanel = progressBars.get(longId); if (progressPanel == null) { - System.err - .println("call setProgressBar before registering the progress bar's handler."); + System.err.println( + "call setProgressBar before registering the progress bar's handler."); return; } @@ -222,10 +242,10 @@ public class ProgressBar implements IProgressIndicator public void actionPerformed(ActionEvent e) { handler.cancelActivity(id); - us.setProgressBar(MessageManager.formatMessage( - "label.cancelled_params", - new Object[] { ((JLabel) progressPanel.getComponent(0)) - .getText() }), id); + us.setProgressBar(MessageManager + .formatMessage("label.cancelled_params", new Object[] + { ((JLabel) progressPanel.getComponent(0)).getText() }), + id); } }); progressPanel.add(cancel, BorderLayout.EAST);