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

Bug 225889

Summary: [dialogs] No "Refresh project" button in the "Out of sync with file system" window.
Product: [Eclipse Project] Platform Reporter: Vitaly "_Vi" Shukela <_vi>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: daniel_megert, eclipse, martinae, remy.suen
Version: 3.3.2   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:

Description Vitaly "_Vi" Shukela CLA 2008-04-05 22:17:45 EDT
The pop up window "Resource is out of sync with file system" does not contain "Refresh project" button. Inexperiences users don't know what to do.
Comment 1 Dani Megert CLA 2008-04-07 03:06:49 EDT
>The pop up window "Resource is out of sync with file system"
There is no single such dialog. You have to tell us what exactly you did to get this dialog. See also:
http://www.eclipse.org/eclipse/platform-text/development/bug-incomplete.htm

Please reopen after providing the needed information.
Comment 2 Vitaly "_Vi" Shukela CLA 2008-04-07 03:59:44 EDT
1. Create some project. (Example: Java project,  "qqq")
2. Create new file in it (Example: File->New->Class, "Main").
3. rm qqq/src/Main.java
4. (Eclipse offers to save absend file, refuse).
5. Remove qqq->src->(default package)->Main.java in Package manager.
6. The dialog pops up:
  Title: Confirm Delete
  Text: Resource '/qqq/src/Main.java/ is out of sync with file system.
  Button: OK.
7. When user press "OK", it returns to Package Manager and the Main.java is still in the list.

What expected:
  "Refresh project" button in this message box, selected by default. The action is the same as F5 (refresh) in Package manager.

Inexperienced users don't know what do to when they receive "Out of sync" message.

Build id: M20080221-1800
java version "1.6.0_02"
Java(TM) SE Runtime Environment (build 1.6.0_02-b05)
Java HotSpot(TM) Client VM (build 1.6.0_02-b05, mixed mode, sharing)
No interesting entries in .log file
Comment 3 Dani Megert CLA 2008-04-07 04:38:11 EDT
>Package Manager 
You probably meant Project Explorer or Package Explorer as there is no 'Package Manager' in Eclipse SDK.

The problem is that many actions can trigger an out of sync and if we start to add this button we need to have it everywhere.

Martin: suggest to close or move to Platform UI for general advice.
Comment 4 Martin Aeschlimann CLA 2008-04-07 05:33:24 EDT
As Dani said, this is difficult to implement. The error is created a place that doesn't know how it was invoked.
The dialog shows errors without being able to know how to fix it or what to suggest how to fix it.

No plans for this at the moment.
Comment 5 Vitaly "_Vi" Shukela CLA 2008-04-08 08:21:04 EDT
May be then write about Project->Refresh in the message text?
Something like "Resource '/qqq/src/Main.java/ is out of sync with file system. You should refresh your project (Project context menu -> Refresh)"
Comment 6 Martin Aeschlimann CLA 2008-04-08 08:50:26 EDT
The problem is generated in core.resources, so they don't know about menus and actions and in which context the error occurred.
Comment 7 Markus Keller CLA 2010-09-14 04:59:21 EDT
*** Bug 325104 has been marked as a duplicate of this bug. ***