Examples of IEditorStatusLine


Examples of org.eclipse.ui.texteditor.IEditorStatusLine

     * Sets the given message as error message to this editor's status line.
     *
     * @param msg message to be set
     */
    public void setStatusLineErrorMessage(String msg) {
        IEditorStatusLine statusLine = (IEditorStatusLine) getAdapter(IEditorStatusLine.class);
        if (statusLine != null)
            statusLine.setMessage(true, msg, null);
    }
View Full Code Here

Examples of org.eclipse.ui.texteditor.IEditorStatusLine

    /**
     * Displays information in the status line why a line move is not possible
     */
    private void showStatus() {
        ITextEditor textEditor = getTextEditor();
        IEditorStatusLine status = (IEditorStatusLine) 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);
    }
View Full Code Here

Examples of org.eclipse.ui.texteditor.IEditorStatusLine

    return PHPUiPlugin.getEditorInputTypeRoot(editor.getEditorInput());
  }

  private static void showMessage(Shell shell, PHPStructuredEditor editor,
      String msg) {
    IEditorStatusLine statusLine = (IEditorStatusLine) editor
        .getAdapter(IEditorStatusLine.class);
    if (statusLine != null)
      statusLine.setMessage(true, msg, null);
    shell.getDisplay().beep();
  }
View Full Code Here

Examples of org.eclipse.ui.texteditor.IEditorStatusLine

                public void selectAndOpen(
                    IModelElement[] elements) {
                  if (elements == null
                      || elements.length == 0) {
                    IEditorStatusLine statusLine = null;
                    if (editor != null)
                      statusLine = (IEditorStatusLine) editor
                          .getAdapter(IEditorStatusLine.class);
                    if (statusLine != null)
                      statusLine
                          .setMessage(
                              true,
                              ActionMessages.OpenAction_error_messageBadSelection,
                              null);
                    getShell().getDisplay().beep();
View Full Code Here

Examples of org.eclipse.ui.texteditor.IEditorStatusLine

      element = SelectionConverter.codeResolve(fEditor);
    } catch (ModelException e) {
      Logger.logException(e);
    }
    if (element == null) {
      IEditorStatusLine statusLine = (IEditorStatusLine) fEditor
          .getAdapter(IEditorStatusLine.class);
      if (statusLine != null)
        statusLine.setMessage(true,
            PHPUIMessages.OpenAction_error_messageBadSelection,
            null);
      getShell().getDisplay().beep();
      return;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.