public class ZExplorerEditorPart
extends java.lang.Object
IFile.| Constructor and Description |
|---|
ZExplorerEditorPart(org.eclipse.ui.IEditorPart pEditorPart,
boolean pIsBackgroundParsingTurnOff,
boolean pIsEplorerPart,
ISystemImage pSystemImage)
The constructor
|
ZExplorerEditorPart(org.eclipse.core.resources.IFile pFile,
boolean pIsBackgroundParsingTurnOff,
boolean pIsEplorerPart,
ISystemImage pSystemImage)
The constructor
|
ZExplorerEditorPart(IRemoteFile pRemoteFile,
org.eclipse.core.resources.IFile pFile,
boolean pIsBackgroundParsingTurnOff,
boolean pIsEplorerPart,
ISystemImage pSystemImage)
Constructor for z/Explorer parts where the
IRemoteFile is known. |
| Modifier and Type | Method and Description |
|---|---|
org.eclipse.ui.IEditorPart |
getEditorPart()
Gets the
IEditorPart. |
org.eclipse.core.resources.IFile |
getFile()
Returns the file that is opened in the editor.
|
IRemoteFile |
getRemoteFile()
Gets the remote file that's opened in the editor part
|
ISystemImage |
getSystemImage()
Gets the system image that is associated to this
ZExplorerEditorPart, which is usually the one that was used to
open the editor. |
boolean |
isBackgroundParserTurnOff()
Gets whether the background parsing will be turn off for this
ZExplorerEditorPart. |
boolean |
isZExplorerPart()
Gets whether this
ZExplorerEditorPart was opened by calling
ZExplorer actions "Edit/Browse". |
void |
setEditorPart(org.eclipse.ui.IEditorPart pEditorPart)
Sets the editor part of this
ZExplorerEditorPart instance and
tries to refresh (Not needed, but for more surety reason) an
IFile on which the editor was opened. |
void |
setRemoteFile(IRemoteFile pRemoteFile)
Sets the remote file that's opened in the editor part.
|
public ZExplorerEditorPart(IRemoteFile pRemoteFile, org.eclipse.core.resources.IFile pFile, boolean pIsBackgroundParsingTurnOff, boolean pIsEplorerPart, ISystemImage pSystemImage)
IRemoteFile is known.pRemoteFile - the IRemoteFile which is opened in the editor partpFile - the file that has been used to open the editor. Can be
null but it is highly recommended to set the file
because many functions rely on identifying the
ZExplorerEditorPart using
ZExplorerPartListener.getEditorPart(IFile).pIsBackgroundParsingTurnOff - whether the background parsing will be turn offpIsEplorerPart - whether the given file is open from the zExplorerpSystemImage - the system image used to open the filepublic ZExplorerEditorPart(org.eclipse.core.resources.IFile pFile,
boolean pIsBackgroundParsingTurnOff,
boolean pIsEplorerPart,
ISystemImage pSystemImage)
pFile - the file that has been used to open the editor. Can be
null but it is highly recommended to set the file
because many functions rely on identifying the
ZExplorerEditorPart using
ZExplorerPartListener.getEditorPart(IFile).pIsBackgroundParsingTurnOff - whether the background parsing will be turn offpIsEplorerPart - whether the given file is open from the zExplorerpSystemImage - the system image used to open the filepublic ZExplorerEditorPart(org.eclipse.ui.IEditorPart pEditorPart,
boolean pIsBackgroundParsingTurnOff,
boolean pIsEplorerPart,
ISystemImage pSystemImage)
pEditorPart - the editor part of this ZExplorerEditorPart instance.
Must not be nullpIsBackgroundParsingTurnOff - whether the background parsing will be turn offpIsEplorerPart - whether the given file is open from the zExplorerpSystemImage - the system image used to open the filepublic org.eclipse.core.resources.IFile getFile()
public boolean isBackgroundParserTurnOff()
ZExplorerEditorPart.true if the MF background parsing will be turned offpublic boolean isZExplorerPart()
ZExplorerEditorPart was opened by calling
ZExplorer actions "Edit/Browse".true if the editor was opened from the zExplorerpublic ISystemImage getSystemImage()
ZExplorerEditorPart, which is usually the one that was used to
open the editor.ISystemImagepublic org.eclipse.ui.IEditorPart getEditorPart()
IEditorPart. Can return null since a
ZExplorerEditorPart instance should be created before the editor
is opened, to avoid timing issues for editors that use this instance e.g.
for obtaining the result of isBackgroundParserTurnOff(). Even
after e.g. IDE#openEditor(org.eclipse.ui.IWorkbenchPage, IFile)
was called, it may take some time before the editor part is actually
opened by the Eclipse IDE.null if the editor part is not
yet opened, was not set by the creator of the instance or the
editor is not an Eclipse editor partpublic void setEditorPart(org.eclipse.ui.IEditorPart pEditorPart)
ZExplorerEditorPart instance and
tries to refresh (Not needed, but for more surety reason) an
IFile on which the editor was opened.pEditorPart - the editor part to set. Must not be null.getFile()public void setRemoteFile(IRemoteFile pRemoteFile)
pRemoteFile - the remote filepublic IRemoteFile getRemoteFile()
null if none is setCopyright © 2015 Micro Focus GmbH. All rights reserved.