Examples of ConsolePlugin


Examples of org.eclipse.ui.console.ConsolePlugin

  public static int getInt (String key) {
    return Activator.getDefault().getPreferenceStore().getInt(key);
  }

  public static MessageConsole getConsole (String consoleName) {
    ConsolePlugin plugin = ConsolePlugin.getDefault ();
    IConsoleManager conMan = plugin.getConsoleManager ();
   
    IConsole[] consoles = conMan.getConsoles();
    for (IConsole console : consoles) {
      if (consoleName.equals(console.getName()))
        return (MessageConsole)console;
View Full Code Here

Examples of org.eclipse.ui.console.ConsolePlugin

  public ConsoleResponseHandler() {
  }

  private 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];
View Full Code Here

Examples of org.eclipse.ui.console.ConsolePlugin

  public Activator()
  {
  }
 
  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];
        //no console found, so create a new one
View Full Code Here

Examples of org.eclipse.ui.console.ConsolePlugin

  private static void clearConsoleLink(Handler handler) {
    Logger.getLogger(LogAction.LOGGER_NAME).removeHandler(handler);
  }

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

Examples of org.eclipse.ui.console.ConsolePlugin

      }
  }
    }

    public 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];
  // no console found, so create a new one
View Full Code Here

Examples of org.eclipse.ui.console.ConsolePlugin

            }
        }
    }

    private 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];
        //no console found, so create a new one
        MessageConsole myConsole = new MessageConsole(name, null);
View Full Code Here

Examples of org.eclipse.ui.console.ConsolePlugin

public class PrintXml implements IWorkbenchWindowActionDelegate {
  private IWorkbenchWindow window;
  private ITreeSelection selection;

  private 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];
    // no console found, so create a new one
View Full Code Here

Examples of org.jboss.console.manager.interfaces.ConsolePlugin

    */
   public void registerPlugin (String consolePluginClassName) throws Exception
   {
      Class pluginClass = Thread.currentThread ().getContextClassLoader ().
                           loadClass (consolePluginClassName);
      ConsolePlugin plugin = (ConsolePlugin)pluginClass.newInstance ();
      this.registerPlugin (plugin);
   }
View Full Code Here

Examples of org.jboss.console.manager.interfaces.ConsolePlugin

      ArrayList result = new ArrayList ();


      for (int i = 0; i < pluginsSubset.size(); i++)
      {
         ConsolePlugin cp = (ConsolePlugin)pluginsSubset.get(i);
         TreeNode node = null;
         try
         {
            node = cp.getSubTreeForResource (this, profile, res);
         }
         catch (Throwable t)
         {
            t.printStackTrace();
         }
View Full Code Here

Examples of org.jboss.console.manager.interfaces.ConsolePlugin

   {
      ArrayList result = new ArrayList ();

      for (int i = 0; i < plugins.size(); i++)
      {
         ConsolePlugin cp = (ConsolePlugin)plugins.get(i);
         String [] set = cp.getSupportedProfiles ();
         if (java.util.Arrays.asList (set).contains (profile))
            result.add (cp);
      }

      return result;
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.