Tabnine Logo
ConsolePlugin.getStandardDisplay
Code IndexAdd Tabnine to your IDE (free)

How to use
getStandardDisplay
method
in
org.eclipse.ui.console.ConsolePlugin

Best Java code snippets using org.eclipse.ui.console.ConsolePlugin.getStandardDisplay (Showing top 20 results out of 315)

origin: org.eclipse/org.eclipse.ui.console

  public void consolesRemoved(IConsole[] consoles) {
    Display display = ConsolePlugin.getStandardDisplay();
    display.asyncExec(new Runnable() {
      public void run() {
        if (fMenu != null) {
          fMenu.dispose();
        }
        update();
      }
    });
  }
}
origin: org.eclipse/org.eclipse.ui.console

public void consolesAdded(IConsole[] consoles) {
  Display display = ConsolePlugin.getStandardDisplay();
  display.asyncExec(new Runnable() {
    public void run() {
      update();
    }
  });
}
origin: org.eclipse/org.eclipse.ui.console

public void setWaterMarks(int low, int high) {
  lowWaterMark = low;
  highWaterMark = high;
  ConsolePlugin.getStandardDisplay().asyncExec(new Runnable() {
    public void run() {
      checkBufferSize();
    }
  });
}

origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.console

public void setWaterMarks(int low, int high) {
  lowWaterMark = low;
  highWaterMark = high;
  ConsolePlugin.getStandardDisplay().asyncExec(new Runnable() {
    @Override
    public void run() {
      checkBufferSize();
    }
  });
}
origin: org.eclipse/org.eclipse.ui.console

/**
 * makes the associated text widget uneditable.
 */
public void setReadOnly() {
  ConsolePlugin.getStandardDisplay().asyncExec(new Runnable() {
    public void run() {
      StyledText text = getTextWidget();
      if (text != null && !text.isDisposed()) {
        text.setEditable(false);
      }
    }
  });
}
origin: wangzw/CppStyle

/**
 * makes the associated text widget uneditable.
 */
public void setReadOnly() {
  ConsolePlugin.getStandardDisplay().asyncExec(new Runnable() {
    @Override
    public void run() {
      StyledText text = getTextWidget();
      if (text != null && !text.isDisposed()) {
        text.setEditable(false);
      }
    }
  });
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.console

/**
 * makes the associated text widget uneditable.
 */
public void setReadOnly() {
  ConsolePlugin.getStandardDisplay().asyncExec(new Runnable() {
    @Override
    public void run() {
      StyledText text = getTextWidget();
      if (text != null && !text.isDisposed()) {
        text.setEditable(false);
      }
    }
  });
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.console

/**
 * Sets the console to have a fixed character width. Use -1 to indicate that
 * a fixed width should not be used.
 *
 * @param width
 *            fixed character width of the console, or -1
 */
public void setConsoleWidth(int width) {
  if (consoleWidth != width) {
    consoleWidth = width;
    ConsolePlugin.getStandardDisplay().asyncExec(new Runnable() {
      @Override
      public void run() {
        if (documentAdapter != null) {
          documentAdapter.setWidth(consoleWidth);
        }
      }
    });
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.console

/**
 * Sets the tab width used in this console.
 *
 * @param newTabWidth the tab width
 */
public void setTabWidth(final int newTabWidth) {
  if (fTabWidth != newTabWidth) {
    final int oldTabWidth = fTabWidth;
    fTabWidth = newTabWidth;
    ConsolePlugin.getStandardDisplay().asyncExec(new Runnable() {
      @Override
      public void run() {
        firePropertyChange(TextConsole.this, IConsoleConstants.P_TAB_SIZE, Integer.valueOf(oldTabWidth), Integer.valueOf(fTabWidth));
      }
    });
  }
}
origin: org.eclipse/org.eclipse.ui.console

/**
 * Sets the console to have a fixed character width. Use -1 to indicate that
 * a fixed width should not be used.
 * 
 * @param width
 *            fixed character width of the console, or -1
 */
public void setConsoleWidth(int width) {
  if (consoleWidth != width) {
    consoleWidth = width;
    ConsolePlugin.getStandardDisplay().asyncExec(new Runnable() {
      public void run() {
        if (documentAdapter != null) {
          documentAdapter.setWidth(consoleWidth);
        }
      }
    });
  }
}
origin: org.eclipse/org.eclipse.ui.console

public void warnOfContentChange(final IConsole console) {
  if (!fWarnQueued) {
    fWarnQueued = true;
    ConsolePlugin.getStandardDisplay().asyncExec(new Runnable(){
      public void run() {
        IWorkbenchWindow window= PlatformUI.getWorkbench().getActiveWorkbenchWindow();
        if (window != null) {
          IWorkbenchPage page= window.getActivePage();
          if (page != null) {
            IConsoleView consoleView= (IConsoleView)page.findView(IConsoleConstants.ID_CONSOLE_VIEW);
            if (consoleView != null) {
              consoleView.warnOfContentChange(console);
            }
          } 
        }    
        fWarnQueued = false;
      }            
    });
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.console

/**
 * Returns the hand cursor.
 *
 * @return the hand cursor
 */
protected Cursor getHandCursor() {
  if (handCursor == null) {
    handCursor = new Cursor(ConsolePlugin.getStandardDisplay(), SWT.CURSOR_HAND);
  }
  return handCursor;
}
origin: org.eclipse/org.eclipse.ui.console

/**
 * Sets the tab width used in this console.
 * 
 * @param newTabWidth the tab width 
 */
public void setTabWidth(final int newTabWidth) {
  if (fTabWidth != newTabWidth) {
    final int oldTabWidth = fTabWidth;
    fTabWidth = newTabWidth;
    ConsolePlugin.getStandardDisplay().asyncExec(new Runnable() {
      public void run() {
        firePropertyChange(TextConsole.this, IConsoleConstants.P_TAB_SIZE, new Integer(oldTabWidth), new Integer(fTabWidth));           
      }
    });
  }
}

origin: org.eclipse/org.eclipse.ui.console

/**
 * Returns the text cursor.
 * 
 * @return the text cursor
 */
protected Cursor getTextCursor() {
  if (textCursor == null) {
    textCursor = new Cursor(ConsolePlugin.getStandardDisplay(), SWT.CURSOR_IBEAM);
  }
  return textCursor;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.console

/**
 * Returns the text cursor.
 *
 * @return the text cursor
 */
protected Cursor getTextCursor() {
  if (textCursor == null) {
    textCursor = new Cursor(ConsolePlugin.getStandardDisplay(), SWT.CURSOR_IBEAM);
  }
  return textCursor;
}
origin: org.eclipse/org.eclipse.ui.console

/**
 * Returns the hand cursor.
 * 
 * @return the hand cursor
 */
protected Cursor getHandCursor() {
  if (handCursor == null) {
    handCursor = new Cursor(ConsolePlugin.getStandardDisplay(), SWT.CURSOR_HAND);
  }
  return handCursor;
}
origin: org.eclipse/org.eclipse.ajdt.ui

  public void run() {
    BusyIndicator.showWhile(ConsolePlugin.getStandardDisplay(),
        new Runnable() {
          public void run() {
            fText.setText(""); //$NON-NLS-1$
          }
        });
  }
}
origin: org.eclipse/org.eclipse.ui.console

  public void run() {
    BusyIndicator.showWhile(ConsolePlugin.getStandardDisplay(), new Runnable() {
      public void run() {
        if (fIOConsole == null) {
          IDocument document = fViewer.getDocument();
          if (document != null) {
            document.set(""); //$NON-NLS-1$
          }
          fViewer.setSelectedRange(0, 0);
        } else {
          fIOConsole.clearConsole();
        }
      }
    });
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.console

  @Override
  public void run() {
    BusyIndicator.showWhile(ConsolePlugin.getStandardDisplay(), new Runnable() {
      @Override
      public void run() {
        if (fIOConsole == null) {
          IDocument document = fViewer.getDocument();
          if (document != null) {
            document.set(""); //$NON-NLS-1$
          }
          fViewer.setSelectedRange(0, 0);
        } else {
          fIOConsole.clearConsole();
        }
      }
    });
  }
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.console

@Override
public void warnOfContentChange(final IConsole console) {
  if (!fWarnQueued) {
    fWarnQueued = true;
    Job job = new UIJob(ConsolePlugin.getStandardDisplay(), ConsoleMessages.ConsoleManager_consoleContentChangeJob) {
      @Override
      public IStatus runInUIThread(IProgressMonitor monitor) {
        IWorkbenchWindow window= PlatformUI.getWorkbench().getActiveWorkbenchWindow();
        if (window != null) {
          IWorkbenchPage page= window.getActivePage();
          if (page != null) {
            IConsoleView consoleView= (IConsoleView)page.findView(IConsoleConstants.ID_CONSOLE_VIEW);
            if (consoleView != null) {
              consoleView.warnOfContentChange(console);
            }
          }
        }
        fWarnQueued = false;
        return Status.OK_STATUS;
      }
    };
    job.setSystem(true);
    job.schedule();
  }
}
org.eclipse.ui.consoleConsolePlugingetStandardDisplay

Javadoc

Returns the workbench display.

Popular methods of ConsolePlugin

  • getConsoleManager
    Returns the console manager. The manager will be created lazily on the first access.
  • getDefault
    Returns the singleton instance of the console plug-in.
  • errorDialog
    Utility method with conventions
  • getLog
  • getUniqueIdentifier
    Convenience method which returns the unique identifier of this plug-in.
  • log
    Logs the specified status with this plug-in's log.
  • newErrorStatus
    Returns a new error status for this plug-in with the given message
  • getPreferenceStore

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • getContentResolver (Context)
  • getSharedPreferences (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now