Return-Path: Delivered-To: apmail-incubator-felix-dev-archive@www.apache.org Received: (qmail 5661 invoked from network); 8 Mar 2007 14:26:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Mar 2007 14:26:53 -0000 Received: (qmail 30766 invoked by uid 500); 8 Mar 2007 14:27:02 -0000 Delivered-To: apmail-incubator-felix-dev-archive@incubator.apache.org Received: (qmail 30533 invoked by uid 500); 8 Mar 2007 14:27:01 -0000 Mailing-List: contact felix-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: felix-dev@incubator.apache.org Delivered-To: mailing list felix-dev@incubator.apache.org Received: (qmail 30522 invoked by uid 99); 8 Mar 2007 14:27:01 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2007 06:27:01 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Mar 2007 06:26:51 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 865BF714069 for ; Thu, 8 Mar 2007 06:26:28 -0800 (PST) Message-ID: <1201934.1173363986358.JavaMail.root@brutus> Date: Thu, 8 Mar 2007 06:26:26 -0800 (PST) From: "Richard S. Hall (JIRA)" To: felix-dev@incubator.apache.org Subject: [jira] Commented: (FELIX-249) Add a shutdown button to the shellGUI In-Reply-To: <4963276.1173344784740.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FELIX-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12479315 ] Richard S. Hall commented on FELIX-249: --------------------------------------- If I modify your second proposal to look like this: public class ShutdownPlugin implements Plugin { private BundleContext m_context = null; private boolean m_shuttingdown = false; // Plugin interface methods. public String getName() { return "Shutdown"; } public Component getGUI() { shutdown(); return new JPanel(); } // Implementation. public ShutdownPlugin(BundleContext context) { m_context = context; } private void shutdown() { if (!m_shuttingdown) { Bundle systembundle = m_context.getBundle(0); m_shuttingdown = true; try { systembundle.stop(); } catch (Exception ex) { System.out.println(ex.toString()); ex.printStackTrace(System.out); } } } } Then it works fine for me. However, I am not sure this is a good approach, since it would surely surprise people to be automatically kicked out by touching the plugin. I will look at your other approach. > Add a shutdown button to the shellGUI > ------------------------------------- > > Key: FELIX-249 > URL: https://issues.apache.org/jira/browse/FELIX-249 > Project: Felix > Issue Type: Improvement > Reporter: Tim Moloney > Priority: Trivial > Attachments: shell.gui.plugin-shutdown-choice-1.patch, shell.gui.plugin-shutdown-choice-2.patch > > > Add a shutdown button to the shellGUI to make shutting down a bit more convenient. Presently, you have to click on the Shell panel selector, then click on the shell command entry box, then type shutdown. Adding a button would reduce this to just a mouse click or two. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.