Package org.eclipse.ui.console

Examples of org.eclipse.ui.console.IConsolePageParticipant


    if (console != null && fActive) {
      final ListenerList listeners = getParticipants(console);
      if (listeners != null) {
        Object[] participants = listeners.getListeners();
          for (int i = 0; i < participants.length; i++) {
            final IConsolePageParticipant participant = (IConsolePageParticipant) participants[i];
            SafeRunner.run(new ISafeRunnable() {
            public void run() throws Exception {
              participant.activated();
            }
            public void handleException(Throwable exception) {
              ConsolePlugin.log(exception);
              listeners.remove(participant);
            }
View Full Code Here


    // dispose page participants
    ListenerList listeners = (ListenerList) fConsoleToPageParticipants.remove(console);
    if (listeners != null) {
      Object[] participants = listeners.getListeners();
      for (int i = 0; i < participants.length; i++) {
              final IConsolePageParticipant participant = (IConsolePageParticipant) participants[i];
              SafeRunner.run(new ISafeRunnable() {
          public void run() throws Exception {
            participant.dispose();
          }
          public void handleException(Throwable exception) {
            ConsolePlugin.log(exception);
          }
        });
View Full Code Here

      participants.add(consoleParticipants[i]);
    }
    fConsoleToPageParticipants.put(console, participants);
    Object[] listeners = participants.getListeners();
    for (int i = 0; i < listeners.length; i++) {
            final IConsolePageParticipant participant = (IConsolePageParticipant) listeners[i];
            SafeRunner.run(new ISafeRunnable() {
        public void run() throws Exception {
          participant.init(page, console);
        }
        public void handleException(Throwable exception) {
          ConsolePlugin.log(exception);
          participants.remove(participant);
        }
View Full Code Here

                ListenerList listeners = getParticipants(console);
                // an adapter can be asked for before the console participants are created
                if (listeners != null) {
                  Object[] participants = listeners.getListeners();
                    for (int i = 0; i < participants.length; i++) {
                        IConsolePageParticipant participant = (IConsolePageParticipant) participants[i];
                        adpater = participant.getAdapter(key);
                        if (adpater != null) {
                            return adpater;
                        }
                    }
                }
View Full Code Here

      if (console != null) {
      final ListenerList listeners = getParticipants(console);
      if (listeners != null) {
        Object[] participants = listeners.getListeners();
          for (int i = 0; i < participants.length; i++) {
            final IConsolePageParticipant participant = (IConsolePageParticipant) participants[i];
            SafeRunner.run(new ISafeRunnable() {
            public void run() throws Exception {
              participant.deactivated();
            }
            public void handleException(Throwable exception) {
              ConsolePlugin.log(exception);
              listeners.remove(participant);
            }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.console.IConsolePageParticipant

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.