public class ZExplorerPartListener
extends java.lang.Object
implements org.eclipse.ui.IPartListener
| Constructor and Description |
|---|
ZExplorerPartListener() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addEditorPart(ZExplorerEditorPart pEditorPart)
add the editor part to the zExplorer editor part list.
|
void |
closeAllEditorParts()
close all open editor parts monitored by Taurus and clear the Taurus
editor part monitor maps
|
static boolean |
contains(java.lang.String pTitle) |
static ZExplorerEditorPart |
getEditorPart(org.eclipse.ui.IEditorPart pEditorPart)
Gets the
ZExplorerEditorPart for a editor part. |
static ZExplorerEditorPart |
getEditorPart(org.eclipse.core.resources.IFile pFile)
Gets the
ZExplorerEditorPart for a file. |
static java.util.List<org.eclipse.ui.IEditorPart> |
getOpenEditors() |
static boolean |
isFileOpen(org.eclipse.core.resources.IFile pFile)
check if the given file opened by the zExplorer is still open in an
editor page
|
void |
partActivated(org.eclipse.ui.IWorkbenchPart pPart) |
void |
partBroughtToTop(org.eclipse.ui.IWorkbenchPart pPart) |
void |
partClosed(org.eclipse.ui.IWorkbenchPart pPart) |
void |
partDeactivated(org.eclipse.ui.IWorkbenchPart pPart) |
void |
partOpened(org.eclipse.ui.IWorkbenchPart pPart) |
public static void addEditorPart(ZExplorerEditorPart pEditorPart)
pEditorPart - editor part to be addedpublic void partActivated(org.eclipse.ui.IWorkbenchPart pPart)
partActivated in interface org.eclipse.ui.IPartListenerpublic void partBroughtToTop(org.eclipse.ui.IWorkbenchPart pPart)
partBroughtToTop in interface org.eclipse.ui.IPartListenerpublic void closeAllEditorParts()
public static java.util.List<org.eclipse.ui.IEditorPart> getOpenEditors()
public static ZExplorerEditorPart getEditorPart(org.eclipse.core.resources.IFile pFile)
ZExplorerEditorPart for a file.pFile - the file that is opened in an Eclipse editorZExplorerEditorPart or null
if no editor part is currently opened for the filepublic static ZExplorerEditorPart getEditorPart(org.eclipse.ui.IEditorPart pEditorPart)
ZExplorerEditorPart for a editor part.pEditorPart - the editor partZExplorerEditorPart or null
if the given editor part is not monitored by
ZExplorerPartListener. Usespublic static boolean isFileOpen(org.eclipse.core.resources.IFile pFile)
pFile - file to be checkedtrueif the given file is openedpublic void partClosed(org.eclipse.ui.IWorkbenchPart pPart)
partClosed in interface org.eclipse.ui.IPartListenerpublic void partDeactivated(org.eclipse.ui.IWorkbenchPart pPart)
partDeactivated in interface org.eclipse.ui.IPartListenerpublic static boolean contains(java.lang.String pTitle)
pTitle - the title of the editor parttrue if the the listener monitors the editor part
with the given titleIWorkbenchPart.getTitle()public void partOpened(org.eclipse.ui.IWorkbenchPart pPart)
partOpened in interface org.eclipse.ui.IPartListenerCopyright © 2015 Micro Focus GmbH. All rights reserved.