Codota Logo
ConsolePlugin.getDefault
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain ConsolePlugin
private void myMethod () {
ConsolePlugin c =
  • Codota IconConsolePlugin.getDefault()
  • Smart code suggestions by Codota
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.console

/**
 * Logs the specified status with this plug-in's log.
 *
 * @param status status to log
 */
public static void log(IStatus status) {
  getDefault().getLog().log(status);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.console

/**
 * Returns the console manager.
 *
 * @return the console manager
 */
private IConsoleManager getConsoleManager() {
  return ConsolePlugin.getDefault().getConsoleManager();
}
origin: org.eclipse/org.eclipse.ui.console

/**
 * Returns the console manager.
 * 
 * @return the console manager
 */
private IConsoleManager getConsoleManager() {
  return ConsolePlugin.getDefault().getConsoleManager();
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.console

/**
 * Constructs a console view
 */
public ConsoleView() {
  super();
  fConsoleToPart = new HashMap<IConsole, ConsoleWorkbenchPart>();
  fPartToConsole = new HashMap<ConsoleWorkbenchPart, IConsole>();
  fConsoleToPageParticipants = new HashMap<IConsole, ListenerList<IConsolePageParticipant>>();
  ConsoleManager consoleManager = (ConsoleManager) ConsolePlugin.getDefault().getConsoleManager();
  consoleManager.registerConsoleView(this);
}
origin: org.eclipse/org.eclipse.ui.console

/**
 * Constructs a console view
 */
public ConsoleView() {
  super();
  fConsoleToPart = new HashMap();
  fPartToConsole = new HashMap();
  fConsoleToPageParticipants = new HashMap();
  
  ConsoleManager consoleManager = (ConsoleManager) ConsolePlugin.getDefault().getConsoleManager();
  consoleManager.registerConsoleView(this);
}

origin: org.eclipse.mylyn.builds/ui

public BuildConsoleManager() {
  consoleByBuild = new HashMap<IBuild, BuildConsole>();
  consoleManager = ConsolePlugin.getDefault().getConsoleManager();
  consoleManager.addConsoleListener(listener);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.console

/**
 * Shows this console in all console views. This console will be become visible
 * if another console is currently pinned.
 *
 * @since 3.1
 */
public void activate() {
  ConsolePlugin.getDefault().getConsoleManager().showConsoleView(this);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.m2e.core.ui

public void closeConsole() {
 IConsoleManager manager = ConsolePlugin.getDefault().getConsoleManager();
 manager.removeConsoles(new IConsole[] {this});
 ConsolePlugin.getDefault().getConsoleManager().addConsoleListener(this.newLifecycle());
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.console

@Override
public void dispose() {
  if (fMenu != null) {
    fMenu.dispose();
  }
  fView= null;
  ConsolePlugin.getDefault().getConsoleManager().removeConsoleListener(this);
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.m2e.core.ui

public void consolesRemoved(IConsole[] consoles) {
 for(int i = 0; i < consoles.length; i++ ) {
  IConsole console = consoles[i];
  if(console == MavenConsoleImpl.this) {
   ConsolePlugin.getDefault().getConsoleManager().removeConsoleListener(this);
   dispose();
  }
 }
}
origin: org.eclipse/org.eclipse.ui.console

  public void consolesRemoved(IConsole[] consoles) {
    for (int i = 0; i < consoles.length; i++) {
      IConsole console = consoles[i];
      if (console == AbstractConsole.this) {
        ConsolePlugin.getDefault().getConsoleManager().removeConsoleListener(this);
        destroy();
      }
    }
  }
}
origin: org.apache.uima/ruta-ep-ide-ui

private static MessageConsole findConsole(String name) {
 ConsolePlugin plugin = ConsolePlugin.getDefault();
 IConsoleManager conMan = plugin.getConsoleManager();
 IConsole[] existing = conMan.getConsoles();
 for (int i = 0; i < existing.length; i++)
  if (name.equals(existing[i].getName()))
   return (MessageConsole) existing[i];
 MessageConsole myConsole = new MessageConsole(name, null);
 conMan.addConsoles(new IConsole[] { myConsole });
 return myConsole;
}
origin: org.eclipse.neoscada.hmi/org.eclipse.scada.vi.ui.draw2d

private ConsoleContext createOrGetConsole ()
{
  if ( this.parentController != null && this.parentController.getConsole () != null )
  {
    return this.parentController.getConsole ();
  }
  final IConsoleManager manager = ConsolePlugin.getDefault ().getConsoleManager ();
  final MessageConsole messageConsole = new MessageConsole ( String.format ( "Symbol Debug Console: %s", this.symbolInfoName ), null, null, true );
  manager.addConsoles ( new IConsole[] { messageConsole } );
  this.createdConsole = messageConsole;
  return new ConsoleContext ( messageConsole );
}
origin: de.dentrassi.eclipse.neoscada.hmi/org.eclipse.scada.vi.ui.draw2d

private ConsoleContext createOrGetConsole ()
{
  if ( this.parentController != null && this.parentController.getConsole () != null )
  {
    return this.parentController.getConsole ();
  }
  final IConsoleManager manager = ConsolePlugin.getDefault ().getConsoleManager ();
  final MessageConsole messageConsole = new MessageConsole ( String.format ( "Symbol Debug Console: %s", this.symbolInfoName ), null, null, true );
  manager.addConsoles ( new IConsole[] { messageConsole } );
  this.createdConsole = messageConsole;
  return new ConsoleContext ( messageConsole );
}
origin: infinitest/infinitest

private MessageConsole getConsole() {
  if (console == null) {
    ConsolePlugin plugin = ConsolePlugin.getDefault();
    IConsoleManager conMan = plugin.getConsoleManager();
    final ImageDescriptor infiniTestIconDescriptor = InfinitestPlugin.imageDescriptorFromPlugin(InfinitestPlugin.PLUGIN_ID, "icons/infinitest-icon.png");
    console = new MessageConsole("Infinitest Console", infiniTestIconDescriptor);
    console.getDocument().set("");
    conMan.addConsoles(new IConsole[] { console });
  }
  return console;
}
origin: org.eclipse/org.eclipse.ui.console

public void dispose() {
  super.dispose();
  getViewSite().getPage().removePartListener((IPartListener2)this);
  ConsoleManager consoleManager = (ConsoleManager) ConsolePlugin.getDefault().getConsoleManager();
  consoleManager.removeConsoleListener(this);        
  consoleManager.unregisterConsoleView(this);
}
origin: org.eclipse/org.eclipse.ui.console

public OpenConsoleAction() {
  fFactoryExtensions = ((ConsoleManager)ConsolePlugin.getDefault().getConsoleManager()).getConsoleFactoryExtensions();
  setText(ConsoleMessages.OpenConsoleAction_0); 
  setToolTipText(ConsoleMessages.OpenConsoleAction_1);  
  setImageDescriptor(ConsolePluginImages.getImageDescriptor(IInternalConsoleConstants.IMG_ELCL_NEW_CON));
  setMenuCreator(this);
  PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IConsoleHelpContextIds.CONSOLE_OPEN_CONSOLE_ACTION);
}

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

public ConsoleDropDownAction(IConsoleView view) {
  fView= view;
  setText(ConsoleMessages.ConsoleDropDownAction_0);
  setToolTipText(ConsoleMessages.ConsoleDropDownAction_1);
  setImageDescriptor(ConsolePluginImages.getImageDescriptor(IConsoleConstants.IMG_VIEW_CONSOLE));
  PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IConsoleHelpContextIds.CONSOLE_DISPLAY_CONSOLE_ACTION);
  setMenuCreator(this);
  ConsolePlugin.getDefault().getConsoleManager().addConsoleListener(this);
  update();
}
origin: org.eclipse/org.eclipse.ui.console

public ConsoleDropDownAction(IConsoleView view) {
  fView= view;
  setText(ConsoleMessages.ConsoleDropDownAction_0); 
  setToolTipText(ConsoleMessages.ConsoleDropDownAction_1); 
  setImageDescriptor(ConsolePluginImages.getImageDescriptor(IConsoleConstants.IMG_VIEW_CONSOLE));
  PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IConsoleHelpContextIds.CONSOLE_DISPLAY_CONSOLE_ACTION);
  setMenuCreator(this);
  ConsolePlugin.getDefault().getConsoleManager().addConsoleListener(this);
  update();
}
origin: org.eclipse.platform/org.eclipse.debug.ui

public ConsoleRemoveLaunchAction() {
  super(ConsoleMessages.ConsoleRemoveTerminatedAction_0);
  setToolTipText(ConsoleMessages.ConsoleRemoveTerminatedAction_1);
  PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IDebugHelpContextIds.CONSOLE_REMOVE_LAUNCH);
  setImageDescriptor(DebugPluginImages.getImageDescriptor(IDebugUIConstants.IMG_LCL_REMOVE));
  setDisabledImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_DLCL_REMOVE));
  setHoverImageDescriptor(DebugPluginImages.getImageDescriptor(IInternalDebugUIConstants.IMG_ELCL_REMOVE));
  DebugPlugin.getDefault().getLaunchManager().addLaunchListener(this);
  ConsolePlugin.getDefault().getConsoleManager().addConsoleListener(this);
}
org.eclipse.ui.consoleConsolePlugingetDefault

Javadoc

Returns the singleton instance of the console plug-in.

Popular methods of ConsolePlugin

  • getConsoleManager
    Returns the console manager. The manager will be created lazily on the first access.
  • getStandardDisplay
    Returns the workbench display.
  • 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

  • Making http requests using okhttp
  • getExternalFilesDir (Context)
  • getResourceAsStream (ClassLoader)
    Returns a stream for the resource with the specified name. See #getResource(String) for a descriptio
  • runOnUiThread (Activity)
  • Menu (java.awt)
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Logger (org.slf4j)
    The main user interface to logging. It is expected that logging takes place through concrete impleme
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now