private ProjectionAnnotationModel getModel() { return fEditor.getAdapter(ProjectionAnnotationModel.class); }
private ProjectionAnnotationModel getModel() { return fEditor.getAdapter(ProjectionAnnotationModel.class); }
private ProjectionAnnotationModel getModel() { return (ProjectionAnnotationModel) fEditor.getAdapter(ProjectionAnnotationModel.class); }
private static void showMessage(Shell shell, JavaEditor editor, String msg) { IEditorStatusLine statusLine= editor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null); shell.getDisplay().beep(); } }
private static void showMessage(Shell shell, JavaEditor editor, String msg) { IEditorStatusLine statusLine= (IEditorStatusLine) editor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null); shell.getDisplay().beep(); }
private static void showMessage(Shell shell, JavaEditor editor, String msg) { IEditorStatusLine statusLine= editor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null); shell.getDisplay().beep(); } }
private static void showMessage(Shell shell, JavaEditor editor, String msg) { IEditorStatusLine statusLine= editor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null); shell.getDisplay().beep(); } }
private static void showMessage(Shell shell, JavaEditor editor, String msg) { IEditorStatusLine statusLine= editor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null); shell.getDisplay().beep(); } }
private static void showMessage(Shell shell, JavaEditor editor, String msg) { IEditorStatusLine statusLine= (IEditorStatusLine) editor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null); shell.getDisplay().beep(); }
private static void showMessage(Shell shell, JavaEditor editor, String msg) { IEditorStatusLine statusLine= (IEditorStatusLine) editor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null); shell.getDisplay().beep(); } }
private static void showMessage(Shell shell, JavaEditor editor, String msg) { IEditorStatusLine statusLine= editor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null); shell.getDisplay().beep(); } }
private static void showMessage(Shell shell, JavaEditor editor, String msg) { IEditorStatusLine statusLine= editor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null); shell.getDisplay().beep(); } }
private static void showMessage(Shell shell, JavaEditor editor, String msg) { IEditorStatusLine statusLine= editor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null); shell.getDisplay().beep(); } }
private static void showMessage(Shell shell, JavaEditor editor, String msg) { IEditorStatusLine statusLine= editor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null); shell.getDisplay().beep(); } }
private static void showMessage(Shell shell, JavaEditor editor, String msg) { IEditorStatusLine statusLine= editor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null); shell.getDisplay().beep(); } }
private static void showMessage(Shell shell, JavaEditor editor, String msg) { IEditorStatusLine statusLine= editor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, msg, null); shell.getDisplay().beep(); } }
/** * Sets the error message in the status line. * * @since 3.7 */ private void setStatusLineMessage() { IEditorStatusLine statusLine= fEditor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, ActionMessages.OpenAction_error_messageBadSelection, null); getShell().getDisplay().beep(); return; }
/** * Sets the error message in the status line. * * @since 3.7 */ private void setStatusLineMessage() { IEditorStatusLine statusLine= fEditor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, ActionMessages.OpenAction_error_messageBadSelection, null); getShell().getDisplay().beep(); return; }
public Object getAdapter(Class required) { if (SmartBackspaceManager.class.equals(required)) { if (getSourceViewer() instanceof JavaSourceViewer) { return ((JavaSourceViewer) getSourceViewer()).getBackspaceManager(); } } return super.getAdapter(required); }
@SuppressWarnings("unchecked") @Override public <T> T getAdapter(Class<T> required) { if (SmartBackspaceManager.class.equals(required)) { if (getSourceViewer() instanceof JavaSourceViewer) { return (T) ((JavaSourceViewer) getSourceViewer()).getBackspaceManager(); } } if (ITemplatesPage.class.equals(required)) { if (fTemplatesPage == null) fTemplatesPage= createTemplatesPage(); return (T) fTemplatesPage; } return super.getAdapter(required); }