Bug 160378 - Subset action should be disabled when there are no tabs available in Remote Monitor view
Summary: Subset action should be disabled when there are no tabs available in Remote M...
Status: RESOLVED FIXED
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P4 minor (vote)
Target Milestone: 2.0.1   Edit
Assignee: Kevin Doyle CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2006-10-10 16:58 EDT by Yufen Kuo CLA
Modified: 2011-05-25 07:53 EDT (History)
0 users

See Also:


Attachments
Check enabled state of Subset Action (1.30 KB, patch)
2007-07-20 13:29 EDT, Kevin Doyle CLA
mober.at+eclipse: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yufen Kuo CLA 2006-10-10 16:58:41 EDT
-----------Enter bugs above this line-----------
RSE 1.0 Testing round 2
installation : eclipse-SDK-3.2.1 (M20060921-0945), cdt-3.1.1
RSE install  : RSE-SDK-1.0RC1.zip
java.runtime : 1.5.0_06-b05
os.name:     : Linux 2.4.20-8
------------------------------------------------
systemtype   : Linux (dstore-processes)
targetos     : Linux 2.4.20-8
targetvm     : 1.5.0_06-b05
------------------------------------------------
If there are no tabs available in Remote Monitor view, the subset action should be disabled. Currently, it is giving a NullPointerException when user selects subset action.

To reproduce:
1) Select All Processes, right click to select "Monitor" to display processes in the Remote Monitor view.
2) Click on the view's toolbar action - "Remote All From View"
3) select the view's drop down menu. Subset action is enabled.
4) select the Subset action, you get a NullPointerException.

java.lang.NullPointerException
	at org.eclipse.rse.ui.view.monitor.SystemMonitorViewPart$SubSetAction.run(SystemMonitorViewPart.java:264)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3166)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2842)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:585)
	at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
	at org.eclipse.core.launcher.Main.run(Main.java:977)
	at org.eclipse.core.launcher.Main.main(Main.java:952)
Comment 1 Martin Oberhuber CLA 2007-07-12 08:53:14 EDT
Another menu enablement issue
Comment 2 Kevin Doyle CLA 2007-07-20 13:29:25 EDT
Created attachment 74273 [details]
Check enabled state of Subset Action

Legal Message: I, Kevin Doyle, declare that I developed attached code from
scratch, without referencing any 3rd party materials except material licensed
under the EPL. I am authorized by my employer, IBM Canada Ltd. to make this
contribution under the EPL.
Comment 3 David McKnight CLA 2007-07-20 15:21:20 EDT
I applied the changes to cvs.
Comment 4 Martin Oberhuber CLA 2007-07-23 06:34:51 EDT
PLEASE dont forget adding the "contributed" kwd.
It should be done at the time you set the bug RESOLVED.