Package com.iizigo.term.project
Class TerminalManager
java.lang.Object
com.iizigo.term.project.TerminalManager
- All Implemented Interfaces:
IProjectListener
The Terminal Manager checks the workspace for new screen captures, etc... It manages the "single" instance of the Terminal project.
- Author:
- Christopher Mindus
Field Summary
Method Summary
Modifier and TypeMethodDescriptionstatic TerminalManager
Gets the single instance of the TerminalManager.Gets the first project that is of Terminal project nature.Gets all current screens already added for screen matching.void
onClosePart
(IWorkbenchPart part) Called to close a part.void
onOpenPart
(IWorkbenchPart part, IProject project) Called to add a new part for a resource in a project.void
onProjectChanged
(IResourceDelta delta) Called during workspace change to inform the plug-in of a project change.static void
Called at Plug-in Startup.
Field Details
MARKERID_MULTIPLE_TERMINAL_PROJECTS
The Marker ID for multiple Terminal projects.- See Also:
Method Details
getInstance
Gets the single instance of the TerminalManager.- Returns:
- The singleton.
onStartup
public static void onStartup()Called at Plug-in Startup.onOpenPart
Called to add a new part for a resource in a project.- Parameters:
part
- The part opened.project
- The project for the part.
onClosePart
Called to close a part.- Parameters:
part
- The part closed.
getModel
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
Called during workspace change to inform the plug-in of a project change.- Specified by:
onProjectChanged
in interfaceIProjectListener
- Parameters:
delta
- The resource delta.
getScreens
Gets all current screens already added for screen matching.- Returns:
- The screens defined, never null.