Examples of IEditorStatusLine


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

Examples of org.eclipse.ui.texteditor.IEditorStatusLine

     *            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

Examples of org.eclipse.ui.texteditor.IEditorStatusLine

   *
   * @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

Examples of org.eclipse.ui.texteditor.IEditorStatusLine

   *
   * @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

Examples of org.eclipse.ui.texteditor.IEditorStatusLine

     * 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

Examples of org.eclipse.ui.texteditor.IEditorStatusLine

      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

Examples of org.eclipse.ui.texteditor.IEditorStatusLine

   
    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

Examples of org.eclipse.ui.texteditor.IEditorStatusLine

            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

Examples of org.eclipse.ui.texteditor.IEditorStatusLine

   *
   * @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

Examples of org.eclipse.ui.texteditor.IEditorStatusLine

        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
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.