|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Field Summary | |
---|---|
static String |
Copyright
|
static int |
NOT_OPEN
|
static int |
OPEN_IN_DIFFERENT_PERSPECTIVE
|
static int |
OPEN_IN_SAME_PERSPECTIVE
|
Method Summary | |
---|---|
void |
addAsListener()
Register as listener for various events |
int |
checkOpenInEditor()
Is the local file open in an editor |
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. |
IEditorPart |
getEditorPart()
Returns the open IEditorPart for this remote object if there is one. |
IFile |
getLocalResource()
Get the local resource |
IAdaptable |
getRemoteObject()
Returns the remote object that is editable |
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 |
setEditor(IEditorPart editorPart)
Set the editor variable given an exiting editor part |
void |
setLocalResourceProperties()
Set local resource properties |
void |
setReadOnly(boolean isReadOnly)
Indicate whether the file can be edited |
void |
updateDirtyIndicator()
Update the editor dirty indicator |
Field Detail |
public static final String Copyright
public static final int NOT_OPEN
public static final int OPEN_IN_SAME_PERSPECTIVE
public static final int OPEN_IN_DIFFERENT_PERSPECTIVE
Method Detail |
public boolean isReadOnly()
public void setReadOnly(boolean isReadOnly)
public void setEditor(IEditorPart editorPart)
editorPart
- the editorpublic boolean download(Shell shell) throws Exception
Exception
public boolean doImmediateSaveAndUpload()
public IFile getLocalResource()
public int checkOpenInEditor() throws CoreException
CoreException
public IEditorPart getEditorPart()
public IAdaptable getRemoteObject()
public void open(Shell shell)
public void open(Shell shell, boolean readOnly)
public void setLocalResourceProperties() throws Exception
Exception
public void addAsListener()
public void openEditor() throws PartInitException
PartInitException
public void updateDirtyIndicator()
public boolean isDirty()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |