Package org.eclipse.ui.texteditor

Examples of org.eclipse.ui.texteditor.IEditorStatusLine


     * @param msg
     *            message to be set
     */
    @Override
    protected void setStatusLineErrorMessage(final String msg) {
        final IEditorStatusLine statusLine = (IEditorStatusLine) getAdapter(IEditorStatusLine.class);
        if (statusLine != null) {
            statusLine.setMessage(true, msg, null);
        }
    }
View Full Code Here


     *            message to be set
     * @since 3.0
     */
    @Override
    protected void setStatusLineMessage(final String msg) {
        final IEditorStatusLine statusLine = (IEditorStatusLine) getAdapter(IEditorStatusLine.class);
        if (statusLine != null) {
            statusLine.setMessage(false, msg, null);
        }
    }
View Full Code Here

   *
   * @param string the message to be displayed as error.
   */
  protected void setStatus(String string) {
    if (getTextEditor() != null) {
      IEditorStatusLine statusLine= (IEditorStatusLine) getTextEditor().getAdapter(IEditorStatusLine.class);
      if (statusLine != null) {
        statusLine.setMessage(true, string, null);
      }
    }
  }
View Full Code Here

   *
   * @param string the message to be displayed as error.
   */
  protected void setStatus(String string) {
    if (getTextEditor() != null) {
      IEditorStatusLine statusLine= (IEditorStatusLine) getTextEditor().getAdapter(IEditorStatusLine.class);
      if (statusLine != null) {
        statusLine.setMessage(true, string, null);
      }
    }
  }
View Full Code Here

     * Needs UI-thread.
     */
    protected void updateStatusLine(IEditorPart editorPart, boolean editable) {
        Object adapter = editorPart.getAdapter(IEditorStatusLine.class);
        if (adapter != null) {
            IEditorStatusLine statusLine = (IEditorStatusLine) adapter;
            statusLine.setMessage(false, editable ? "" : "Not editable", null);
        }
    }
View Full Code Here

      getNextAnnotation(selection.getOffset(), selection.getLength(), forward, position);
      getTextEditor().selectAndReveal(position.getOffset(), position.getLength());
    }
    else /* no delay - see bug 18316 */{
      Annotation annotation = getNextAnnotation(selection.getOffset(), selection.getLength(), forward, position);
      IEditorStatusLine editorStatusLine = (IEditorStatusLine) getTextEditor().getAdapter(IEditorStatusLine.class);
      if (editorStatusLine != null) {
        editorStatusLine.setMessage(true, null, null);
        editorStatusLine.setMessage(false, null, null);
      }
      else {
        IStatusLineManager mgr = getStatusLineManager();
        if (mgr != null) {
          mgr.setErrorMessage(null);
          mgr.setMessage(null, null);
        }
      }
      if (annotation != null) {
        updateAnnotationViews(annotation);
        if (_debug) {
          System.out.println("select and reveal " + annotation.getType() + "@" + position.getOffset() + ":" + position.getLength()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
        }
        getTextEditor().selectAndReveal(position.getOffset(), position.getLength());
        if (editorStatusLine != null) {
          editorStatusLine.setMessage(true, null, null);
          editorStatusLine.setMessage(false, annotation.getText(), null);
        }
        else {
          IStatusLineManager mgr = getStatusLineManager();
          if (mgr != null) {
            mgr.setErrorMessage(null);
View Full Code Here

   
    contributeToActionBars();
  }
 
  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();
View Full Code Here

            fIgnoreTextConverters = false;
        }
    }
   
    protected void setStatusLineErrorMessage(String msg) {
        IEditorStatusLine statusLine= (IEditorStatusLine) getAdapter(IEditorStatusLine.class);
        if (statusLine != null)
            statusLine.setMessage(true, msg, null);
    }
View Full Code Here

   *
   * @param string the message to be displayed as error.
   */
  protected void setStatus(String string) {
    if (getTextEditor() != null) {
      IEditorStatusLine statusLine= (IEditorStatusLine) getTextEditor().getAdapter(IEditorStatusLine.class);
      if (statusLine != null) {
        statusLine.setMessage(true, string, null);
      }
    }
  }
View Full Code Here

        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.", desc.createImage());
        }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.texteditor.IEditorStatusLine

Copyright © 2018 www.massapicom. 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.