org.eclipse.rse.ui.view
Interface ISystemEditableRemoteObject
-
All Known Implementing Classes:
-
SystemEditableRemoteFile
-
public interface ISystemEditableRemoteObject
This interface defines some common functionality required from all remote
resources for edit, irrespective of whether the remote system is an
OS/400, Windows, Linux or Unix operating system.
NOT_OPEN
static final int NOT_OPEN
-
See Also:
-
Constant Field Values
OPEN_IN_SAME_PERSPECTIVE
static final int OPEN_IN_SAME_PERSPECTIVE
-
See Also:
-
Constant Field Values
OPEN_IN_DIFFERENT_PERSPECTIVE
static final int OPEN_IN_DIFFERENT_PERSPECTIVE
-
See Also:
-
Constant Field Values
isReadOnly
boolean isReadOnly()
- Check if user has write authority to the file.
-
-
Returns:
- true if user has write authority to the file, false otherwise
setReadOnly
void setReadOnly(boolean isReadOnly)
- Indicate whether the file can be edited
-
setEditor
void setEditor(
IEditorPart editorPart)
- Set the editor variable given an exiting editor part
-
-
Parameters:
-
editorPart
- the editor
download
boolean download(
Shell shell)
throws
Exception
- Download the file.
-
-
Parameters:
-
shell
- if the shell is null, no progress monitor will be shown
-
Returns:
- true if successful, false if cancelled
-
Throws:
-
Exception
download
boolean download(
IProgressMonitor monitor)
throws
Exception
- Download the file.
-
-
Parameters:
-
monitor
- the progress monitor
-
Returns:
- true if the operation was successful. false if the user cancels.
-
Throws:
-
Exception
doImmediateSaveAndUpload
boolean doImmediateSaveAndUpload()
- Saves the local file and uploads it to the host immediately, rather than, in response to a resource change
event.
-
-
Returns:
- true if the operation was successful. false if the upload fails.
getLocalResource
IFile getLocalResource()
- Get the local resource
-
checkOpenInEditor
int checkOpenInEditor()
throws
CoreException
- Is the local file open in an editor
-
-
Throws:
-
CoreException
getEditorPart
IEditorPart getEditorPart()
- Returns the open IEditorPart for this remote object if there is one.
-
getRemoteObject
IAdaptable getRemoteObject()
- Returns the remote object that is editable
-
open
void open(
Shell shell)
- Open in editor
-
open
void open(
Shell shell,
boolean readOnly)
- Open in editor
-
open
void open(
IProgressMonitor monitor)
- Open in editor
-
open
void open(boolean readOnly,
IProgressMonitor monitor)
- Open in editor
-
setLocalResourceProperties
void setLocalResourceProperties()
throws
Exception
- Set local resource properties
-
-
Throws:
-
Exception
addAsListener
void addAsListener()
- Register as listener for various events
-
openEditor
void openEditor()
throws
PartInitException
- Open the editor
-
-
Throws:
-
PartInitException
updateDirtyIndicator
void updateDirtyIndicator()
- Update the editor dirty indicator
-
isDirty
boolean isDirty()
- Check if the file is dirty
-
getAbsolutePath
String getAbsolutePath()
- Return the absolute path on the remote system.
-
getSubSystem
ISubSystem getSubSystem()
- Return the subsystem for the edited object.
-
exists
boolean exists()
- Returns whether the edited object exists.
-
isStale
boolean isStale()
- Returns whether the underlying resource needs to be updated from the host
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.