|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.core.resources.SystemEditableRemoteFile
Field Summary | |
---|---|
static String |
Copyright
|
Fields inherited from interface com.ibm.etools.systems.core.resources.ISystemEditableRemoteObject |
---|
NOT_OPEN, OPEN_IN_DIFFERENT_PERSPECTIVE, OPEN_IN_SAME_PERSPECTIVE |
Fields inherited from interface com.ibm.etools.systems.core.resources.ISystemTextEditorConstants |
---|
BIDI_LOGICAL_KEY, CCSID_KEY, EDITOR_PROFILE_TYPE, LOCAL_ENCODING_KEY, MAX_LINE_LENGTH_KEY, SEQUENCE_NUMBERS_KEY, SOURCE_ENCODING_KEY, SYSTEM_TEXT_BROWSER_ID, SYSTEM_TEXT_EDITOR_ID, TEMP_CCSID_KEY |
Constructor Summary | |
---|---|
SystemEditableRemoteFile(IRemoteFile remoteFile)
Constructor for SystemEditableRemoteFile |
|
SystemEditableRemoteFile(IRemoteFile remoteFile,
String editorId)
Constructor for SystemEditableRemoteFile |
|
SystemEditableRemoteFile(IWorkbenchPage page,
IRemoteFile remoteFile,
String editorId)
Constructor for SystemEditableRemoteFile |
Method Summary | |
---|---|
void |
addAsListener()
Register as listener for various events |
int |
checkOpenInEditor()
Is the local file open in an editor |
void |
delete()
Delete the local resource |
boolean |
doImmediateSaveAndUpload()
Saves the local file and uploads it to the host immediately, rather than, in response to a resource change event. |
boolean |
download(Shell shell)
Download the file. |
String |
getActualHostFor(String remotePath)
|
IEditorPart |
getEditor()
Get the editor |
IEditorPart |
getEditorPart()
Returns the open IEditorPart for this remote object if there is one. |
String |
getLocalPath()
Get the local path |
IFile |
getLocalResource()
Get the local resource |
IRemoteFile |
getRemoteFile()
Get the remote file |
IAdaptable |
getRemoteObject()
Returns the remote object that is editable |
String |
getWorkspaceRemotePath(String remotePath)
Gets the path to use in the workspace for saving the local replica remote file. |
boolean |
isDirty()
Check if the file is dirty |
boolean |
isReadOnly()
Check if user has write authority to the file. |
void |
open(Shell shell)
Open in editor |
void |
open(Shell shell,
boolean readOnly)
Open in editor |
void |
openEditor()
Open the editor |
void |
openInInPlaceEditor(Shell shell)
Open in in place editor |
void |
openInSystemEditor(Shell shell)
Open in system editor |
void |
partActivated(IWorkbenchPart part)
|
void |
partBroughtToTop(IWorkbenchPart part)
|
void |
partClosed(IWorkbenchPart part)
|
void |
partDeactivated(IWorkbenchPart part)
|
void |
partOpened(IWorkbenchPart part)
|
void |
resourceChanged(IResourceChangeEvent event)
|
boolean |
saveAs(IRemoteFile newRemoteFile,
IProgressMonitor progressMonitor)
Save as to a remote location |
void |
setEditor(IEditorPart editor)
Set the editor |
void |
setLocalPath(String localPath)
Set the local path |
void |
setLocalResourceProperties()
Set local resource properties |
void |
setReadOnly(boolean isReadOnly)
Indicate whether the file can be edited |
void |
setRemoteFile(IRemoteFile remoteFile)
Set the remote file |
void |
updateDirtyIndicator()
Update the editor dirty indicator |
boolean |
visit(IResourceDelta delta)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String Copyright
Constructor Detail |
public SystemEditableRemoteFile(IWorkbenchPage page, IRemoteFile remoteFile, String editorId)
public SystemEditableRemoteFile(IRemoteFile remoteFile, String editorId)
public SystemEditableRemoteFile(IRemoteFile remoteFile)
Method Detail |
public void setRemoteFile(IRemoteFile remoteFile)
public IRemoteFile getRemoteFile()
public void setLocalPath(String localPath)
public String getLocalPath()
public void setEditor(IEditorPart editor)
setEditor
in interface ISystemEditableRemoteObject
editor
- the editorpublic IEditorPart getEditor()
public boolean isReadOnly()
isReadOnly
in interface ISystemEditableRemoteObject
public void setReadOnly(boolean isReadOnly)
setReadOnly
in interface ISystemEditableRemoteObject
public boolean download(Shell shell) throws Exception
download
in interface ISystemEditableRemoteObject
Exception
public boolean doImmediateSaveAndUpload()
doImmediateSaveAndUpload
in interface ISystemEditableRemoteObject
public IFile getLocalResource()
getLocalResource
in interface ISystemEditableRemoteObject
public void delete()
public String getWorkspaceRemotePath(String remotePath)
remotePath
- the absolute path to the resource on the host
public String getActualHostFor(String remotePath)
public IEditorPart getEditorPart()
getEditorPart
in interface ISystemEditableRemoteObject
public IAdaptable getRemoteObject()
getRemoteObject
in interface ISystemEditableRemoteObject
public int checkOpenInEditor()
checkOpenInEditor
in interface ISystemEditableRemoteObject
public void open(Shell shell)
open
in interface ISystemEditableRemoteObject
public void open(Shell shell, boolean readOnly)
open
in interface ISystemEditableRemoteObject
public void openInSystemEditor(Shell shell)
public void openInInPlaceEditor(Shell shell)
public void setLocalResourceProperties() throws CoreException
setLocalResourceProperties
in interface ISystemEditableRemoteObject
CoreException
public void addAsListener()
addAsListener
in interface ISystemEditableRemoteObject
public void openEditor() throws PartInitException
openEditor
in interface ISystemEditableRemoteObject
PartInitException
public void partActivated(IWorkbenchPart part)
IPartListener#partActivated(IWorkbenchPart)
public void partBroughtToTop(IWorkbenchPart part)
IPartListener#partBroughtToTop(IWorkbenchPart)
public void partClosed(IWorkbenchPart part)
IPartListener#partClosed(IWorkbenchPart)
public void partDeactivated(IWorkbenchPart part)
IPartListener#partDeactivated(IWorkbenchPart)
public void partOpened(IWorkbenchPart part)
IPartListener#partOpened(IWorkbenchPart)
public void resourceChanged(IResourceChangeEvent event)
IResourceChangeListener#resourceChanged(IResourceChangeEvent)
public boolean visit(IResourceDelta delta) throws CoreException
CoreException
IResourceDeltaVisitor#visit(IResourceDelta)
public boolean saveAs(IRemoteFile newRemoteFile, IProgressMonitor progressMonitor)
public void updateDirtyIndicator()
ISystemEditableRemoteObject
updateDirtyIndicator
in interface ISystemEditableRemoteObject
public boolean isDirty()
ISystemEditableRemoteObject
isDirty
in interface ISystemEditableRemoteObject
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |