Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 75235 Details for
Bug 197848
[Shells] After clicking Cancel Shell the action is still enabled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Set the Action to disabled when the shell is terminated
patch.txt (text/plain), 2.48 KB, created by
Kevin Doyle
on 2007-08-02 11:00:12 EDT
(
hide
)
Description:
Set the Action to disabled when the shell is terminated
Filename:
MIME Type:
Creator:
Kevin Doyle
Created:
2007-08-02 11:00:12 EDT
Size:
2.48 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.rse.shells.ui >Index: src/org/eclipse/rse/internal/shells/ui/actions/SystemTerminateShellAction.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.shells.ui/src/org/eclipse/rse/internal/shells/ui/actions/SystemTerminateShellAction.java,v >retrieving revision 1.4 >diff -u -r1.4 SystemTerminateShellAction.java >--- src/org/eclipse/rse/internal/shells/ui/actions/SystemTerminateShellAction.java 11 May 2007 18:08:15 -0000 1.4 >+++ src/org/eclipse/rse/internal/shells/ui/actions/SystemTerminateShellAction.java 2 Aug 2007 14:57:15 -0000 >@@ -13,6 +13,7 @@ > * Contributors: > * Martin Oberhuber (Wind River) - [186128] Move IProgressMonitor last in all API > * Martin Oberhuber (Wind River) - [174945] Remove obsolete icons from rse.shells.ui >+ * Kevin Doyle (IBM) - [197848] After clicking Cancel Shell the action is still enabled > ********************************************************************************/ > > package org.eclipse.rse.internal.shells.ui.actions; >@@ -84,6 +85,8 @@ > if (cmdSubSystem != null) > { > cmdSubSystem.cancelShell(command, new NullProgressMonitor()); >+ // Shell has been cancelled disable this action >+ setEnabled(false); > } > } > catch (Exception e) >#P org.eclipse.rse.services.local >Index: src/org/eclipse/rse/internal/services/local/shells/LocalHostShell.java >=================================================================== >RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.services.local/src/org/eclipse/rse/internal/services/local/shells/LocalHostShell.java,v >retrieving revision 1.2 >diff -u -r1.2 LocalHostShell.java >--- src/org/eclipse/rse/internal/services/local/shells/LocalHostShell.java 5 Jun 2007 10:37:14 -0000 1.2 >+++ src/org/eclipse/rse/internal/services/local/shells/LocalHostShell.java 2 Aug 2007 14:57:16 -0000 >@@ -12,7 +12,7 @@ > * Emily Bruner, Mazen Faraj, Adrian Storisteanu, Li Ding, and Kent Hawley. > * > * Contributors: >- * {Name} (company) - description of contribution. >+ * Kevin Doyle (IBM) - [197848] After clicking Cancel Shell the action is still enabled > *******************************************************************************/ > > package org.eclipse.rse.internal.services.local.shells; >@@ -76,6 +76,9 @@ > public void exit() > { > writeToShell("exit"); //$NON-NLS-1$ >+ if (_shellThread != null) { >+ _shellThread.stopThread(); >+ } > } > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 197848
:
75235
|
75334