Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 182105

Summary: [GlobalActions] Allow to use RefreshAction for editors
Product: [Eclipse Project] Platform Reporter: Dani Megert <daniel_megert>
Component: UIAssignee: Paul Webster <pwebster>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: 3.4   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Dani Megert CLA 2007-04-12 06:17:00 EDT
I20070410-1043

In order to fix bug 178744 I needed to (illegally) subclass RefreshAction in order to provide the resource of my editor. For editors the RefreshAction should get the editor input and then use the adapter to query the resource:

resource= part == null ? null : 
  (IResource)fTextEditor.getEditorInput().getAdapter(IResource.class);

If this isn't possible then at least the restriction not to allow subclassing should be lifted, otherwise I have to copy all the code.
Comment 1 Dani Megert CLA 2007-11-14 04:31:12 EST

*** This bug has been marked as a duplicate of bug 151688 ***