Bug 30681 Refresh problem in Package Explorer view
20030129 integration build Refreshing a project without a Java nature in a Package Explorer produces message:" Problem occured refreshing the selected resources. Reason: org.eclipse.releng does not exist." Log contains: !ENTRY org.eclipse.jdt.ui 4 10001 Jan 30, 2003 23:45:54.937 !MESSAGE Internal Error !STACK 1 Java Model Exception: Java Model Status [org.eclipse.releng does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException (JavaElement.java:488) at org.eclipse.jdt.internal.core.JavaModelManager.getPerProjectInfoCheckExistence (JavaModelManager.java:948) at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath (JavaProject.java:1335) at org.eclipse.jdt.internal.core.DeltaProcessor.checkExternalArchiveChanges (DeltaProcessor.java(Compiled Code)) at org.eclipse.jdt.internal.core.DeltaProcessor.checkExternalArchiveChanges (DeltaProcessor.java(Compiled Code)) at org.eclipse.jdt.internal.core.JavaModel.refreshExternalArchives (JavaModel.java:445) at org.eclipse.jdt.ui.actions.RefreshAction$1.run (RefreshAction.java:120) at org.eclipse.jdt.internal.core.BatchOperation.executeOperation (BatchOperation.java:34) at org.eclipse.jdt.internal.core.JavaModelOperation.execute (JavaModelOperation.java:337) at org.eclipse.jdt.internal.core.JavaModelOperation.run (JavaModelOperation.java:665) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:1580) at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:2607) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run (WorkbenchRunnableAdapter.java:32) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:95) !ENTRY org.eclipse.jdt.core 4 969 Jan 30, 2003 23:45:54.997 !MESSAGE org.eclipse.releng does not exist.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/RefreshAction.java
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.dialogs.ProgressMonitorDialog;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IWorkbenchSite;
import org.eclipse.ui.help.WorkbenchHelp;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IJavaModel;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.internal.ui.IJavaHelpContextIds;
import org.eclipse.jdt.internal.ui.actions.ActionMessages;
import org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter;
import org.eclipse.jdt.internal.ui.util.ExceptionHandler;
/**
 * Action for refreshing the workspace from the local file system for
 * the selected resources and all of their descendents. This action
 * also considers external Jars managed by the Java Model.
 * <p>
 * Action is applicable to selections containing resources and Java
 * elements down to compilation units.
 * 
 * <p>
 * This class may be instantiated; it is not intended to be subclassed.
 * </p>
 * 
 * @since 2.0
 */
public class RefreshAction extends SelectionDispatchAction {