Java Code Examples for org.eclipse.ui.texteditor.IEditorStatusLine#setMessage()
The following examples show how to use
org.eclipse.ui.texteditor.IEditorStatusLine#setMessage() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LapseView.java From lapse-plus with GNU General Public License v3.0 | 5 votes |
private void setStatusBarMessage(String message, boolean isError) { IEditorStatusLine statusLine= (IEditorStatusLine) fEditor.getAdapter(IEditorStatusLine.class); if (statusLine != null) { statusLine.setMessage(false, message, JavaPluginImages.get(JavaPluginImages.IMG_MISC_PRIVATE)); }else { logError("No status line!"); } if(isError) { beep(); } }
Example 2
Source File: OpenAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
/** * Sets the error message in the status line. * * @since 3.7 */ private void setStatusLineMessage() { IEditorStatusLine statusLine= (IEditorStatusLine) fEditor.getAdapter(IEditorStatusLine.class); if (statusLine != null) statusLine.setMessage(true, ActionMessages.OpenAction_error_messageBadSelection, null); getShell().getDisplay().beep(); return; }
Example 3
Source File: JavaMoveLinesAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
/** * Displays information in the status line why a line move is not possible */ private void showStatus() { IEditorStatusLine status= (IEditorStatusLine) fSharedState.fEditor.getAdapter(IEditorStatusLine.class); if (status == null) return; status.setMessage(false, JavaEditorMessages.Editor_MoveLines_IllegalMove_status, null); }
Example 4
Source File: PyMoveLineAction.java From Pydev with Eclipse Public License 1.0 | 5 votes |
/** * Displays information in the status line why a line move is not possible */ private void showStatus() { ITextEditor textEditor = getTextEditor(); IEditorStatusLine status = textEditor.getAdapter(IEditorStatusLine.class); if (status == null) { return; } status.setMessage(false, "Move not possible - Uncheck \"Show Source of Selected Element Only\" to see the entire document", null); }
Example 5
Source File: PyEdit.java From Pydev with Eclipse Public License 1.0 | 5 votes |
public void updateForceTabsMessage() { boolean forceTabs = getIndentPrefs().getForceTabs(); IImageCache imageCache = SharedUiPlugin.getImageCache(); IImageDescriptor desc; if (forceTabs) { desc = imageCache.getDescriptor(UIConstants.FORCE_TABS_ACTIVE); } else { desc = imageCache.getDescriptor(UIConstants.FORCE_TABS_INACTIVE); } IEditorStatusLine statusLine = (IEditorStatusLine) getAdapter(IEditorStatusLine.class); if (statusLine != null) { statusLine.setMessage(false, forceTabs ? "Forcing tabs" : "Not forcing tabs.", ImageCache.asImageDescriptor(desc).createImage()); } }
Example 6
Source File: PyEditProjection.java From Pydev with Eclipse Public License 1.0 | 5 votes |
/** * Sets the given message as error message to this editor's status line. * * @param msg message to be set */ @Override public void setStatusLineErrorMessage(String msg) { IEditorStatusLine statusLine = (IEditorStatusLine) getAdapter(IEditorStatusLine.class); if (statusLine != null) { statusLine.setMessage(true, msg, null); } }
Example 7
Source File: EditorAPI.java From saros with GNU General Public License v2.0 | 5 votes |
public static void updateStatusLine(IEditorPart editorPart, String status) { Object adapter = editorPart.getAdapter(IEditorStatusLine.class); if (adapter == null) return; IEditorStatusLine statusLine = (IEditorStatusLine) adapter; statusLine.setMessage(false, status, null); }
Example 8
Source File: FindImplementOccurrencesAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
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(); }
Example 9
Source File: FindExceptionOccurrencesAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
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(); }
Example 10
Source File: FindOccurrencesInFileAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
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(); }
Example 11
Source File: FindMethodExitOccurrencesAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
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(); }
Example 12
Source File: FindBreakContinueTargetOccurrencesAction.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
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(); }
Example 13
Source File: PyEdit.java From Pydev with Eclipse Public License 1.0 | 4 votes |
/** * Important: keep for scripting */ public void setMessage(boolean error, String message) { IEditorStatusLine statusLine = (IEditorStatusLine) this.getAdapter(IEditorStatusLine.class); statusLine.setMessage(error, message, null); }
Example 14
Source File: EditorUtils.java From goclipse with Eclipse Public License 1.0 | 4 votes |
public static void setStatusLineErrorMessage(ITextEditor editor, String message, Image image) { IEditorStatusLine statusLine= (IEditorStatusLine)editor.getAdapter(IEditorStatusLine.class); if(statusLine != null) { statusLine.setMessage(true, message, image); } }