Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356794 - [package explorer] Add a refresh button to package explorer toolbar
Summary: [package explorer] Add a refresh button to package explorer toolbar
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Linux
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 07:00 EDT by Filipe Sousa CLA
Modified: 2011-09-06 08:20 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Filipe Sousa CLA 2011-09-06 07:00:40 EDT
I find my self many times right clicking on a project and Refresh.

-- Configuration Details --
Product: Eclipse 1.4.0.20110609-1120 (org.eclipse.epp.package.jee.product)
Installed Features:
 org.eclipse.platform 3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz-mj4OSEIlu9SEv0f
Comment 1 Remy Suen CLA 2011-09-06 07:02:41 EDT
'Package Explorer' is a view from JDT.

(In reply to comment #0)
> I find my self many times right clicking on a project and Refresh.

Could you not hit F5 instead? Seems faster than using the mouse.
Comment 2 Filipe Sousa CLA 2011-09-06 07:29:42 EDT
In some cases yes. I have a project that uses ant to generate some code by double clicking the ant target in the ant eclipse viewer. Next I have to refresh the package explorer. To me it seems faster to double click the ant target and then click refresh. And don't like switch between the mouse and keyboard. 99% of the time I only use the keyboard with emacs key bindings and I have F5 for something else.
Comment 3 Markus Keller CLA 2011-09-06 08:20:49 EDT
For your actual problem, there's a much better solution:
Open "Run > External Tools > External Tools Configurations...", and then select the affected Ant Build launch configuration. Go to the "Refresh" tab and select what you want to refresh after each build.

I see too many problems with a refresh button in the Package Explorer view toolbar. Normally, toolbar buttons affect the whole view or operate on the view's input, but you want it to refresh only the selection (or the enclosing project, or ... you see what I mean). In other Eclipse views, the refresh button also affects the whole view.