Class TerminalManager

  • All Implemented Interfaces:
    IProjectListener

    public class TerminalManager
    extends java.lang.Object
    implements IProjectListener
    The Terminal Manager checks the workspace for new screen captures, etc... It manages the "single" instance of the Terminal project.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      static TerminalManagergetInstance()
      Gets the single instance of the TerminalManager.
      TerminalModelgetModel​(org.eclipse.swt.widgets.Shell shell)
      Gets the first project that is of Terminal project nature.
      EditorScreenProp[]getScreens()
      Gets all current screens already added for screen matching.
      voidonClosePart​(org.eclipse.ui.IWorkbenchPart part)
      Called to close a part.
      voidonOpenPart​(org.eclipse.ui.IWorkbenchPart part, org.eclipse.core.resources.IProject project)
      Called to add a new part for a resource in a project.
      voidonProjectChanged​(org.eclipse.core.resources.IResourceDelta delta)
      Called during workspace change to inform the plug-in of a project change.
      static voidonStartup()
      Called at Plug-in Startup.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • MARKERID_MULTIPLE_TERMINAL_PROJECTS

        public static final java.lang.String MARKERID_MULTIPLE_TERMINAL_PROJECTS
        The Marker ID for multiple Terminal projects.
        See Also:
        Constant Field Values
    • Method Detail

      • getInstance

        public static TerminalManager getInstance()
        Gets the single instance of the TerminalManager.
        Returns:
        The singleton.
      • onStartup

        public static void onStartup()
        Called at Plug-in Startup.
      • onOpenPart

        public void onOpenPart​(org.eclipse.ui.IWorkbenchPart part,
                               org.eclipse.core.resources.IProject project)
        Called to add a new part for a resource in a project.
        Parameters:
        part - The part opened.
        project - The project for the part.
      • onClosePart

        public void onClosePart​(org.eclipse.ui.IWorkbenchPart part)
        Called to close a part.
        Parameters:
        part - The part closed.
      • getModel

        public TerminalModel getModel​(org.eclipse.swt.widgets.Shell shell)
        Gets the first project that is of Terminal project nature. This call must be done from the SWT UI thread.
        Parameters:
        shell - The shell, or null if it shouldn't be created if not found.
        Returns:
        null If none is found.
      • onProjectChanged

        public void onProjectChanged​(org.eclipse.core.resources.IResourceDelta delta)
        Called during workspace change to inform the plug-in of a project change.
        Specified by:
        onProjectChanged in interface IProjectListener
        Parameters:
        delta - The resource delta.
      • getScreens

        public EditorScreenProp[] getScreens()
        Gets all current screens already added for screen matching.
        Returns:
        The screens defined, never null.