Community
Participate
Working Groups
In EditorActionDelegate.run(), in the readme example, F3 fails on getShell (and therfore on openInformation too): It can resolve getSite() to IWorkbenchPart.getSite() which returns IWorkbenchPartSite. IWorkbenchPartSite has getShell(). The code is: import org.eclipse.jface.action.*; import org.eclipse.jface.viewers.*; import org.eclipse.jface.dialogs.MessageDialog; import org.eclipse.ui.*; public class EditorActionDelegate implements IEditorActionDelegate { private IEditorPart editor; /* (non-Javadoc) * Method declared on IActionDelegate */ public void run(IAction action) { MessageDialog.openInformation(editor.getSite().getShell(), MessageUtil.getString("EditorActionDelegate.Title"), //$NON-NLS-1$ MessageUtil.getString("EditorActionDelegate.Message")); //$NON-NLS-1$ } // snip } NOTES:
Cannot reproduce anymore in 204. Can resolve #getShell() fine. Closing
PRODUCT VERSION: 129