org.eclipse.rse.files.ui.propertypages
Class SystemAbstractRemoteFilePropertyPageExtensionAction
java.lang.Object
org.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.eclipse.ui.dialogs.PropertyPage
org.eclipse.rse.ui.propertypages.SystemBasePropertyPage
org.eclipse.rse.ui.propertypages.SystemAbstractPropertyPageExtensionAction
org.eclipse.rse.files.ui.propertypages.SystemAbstractRemoteFilePropertyPageExtensionAction
- All Implemented Interfaces:
- IDialogPage, IMessageProvider, IPreferencePage, ISystemMessageLine, ISystemMessageLineTarget, IWorkbenchPropertyPage
- public abstract class SystemAbstractRemoteFilePropertyPageExtensionAction
- extends SystemAbstractPropertyPageExtensionAction
- implements IWorkbenchPropertyPage
This is a base class to simplify the creation of property pages supplied via the
org.eclipse.rse.ui.propertyPages extension point, targeting remote files
and/or remote folders.
The only method you must implement is createContentArea(Composite).
The benefits of this class are:
| Methods inherited from class org.eclipse.rse.ui.propertypages.SystemAbstractPropertyPageExtensionAction |
createTestComposite, getRemoteAdapter, getRemoteAdapter, getRemoteObject, getRemoteObjectName, getRemoteObjectSubSubType, getRemoteObjectSubSystemConfigurationId, getRemoteObjectSubType, getRemoteObjectType, getRemoteObjectTypeCategory, getSubSystem, getSubSystemConfiguration, getSystemConnection |
| Methods inherited from class org.eclipse.rse.ui.propertypages.SystemBasePropertyPage |
addFillerLine, addSeparatorLine, clearErrorMessage, clearMessage, configureMessageLine, contributeButtons, createContents, createLabeledCombo, createLabeledLabel, createLabeledText, createLabeledVerbage, getMessageLine, getSystemErrorMessage, grabExcessSpace, okToLeave, performOk, setBusyCursor, setErrorMessage, setErrorMessage, setErrorMessage, setHelp, setMessage, setMessage, setMessageLine, wantAutomaticValidManagement, wantDefaultAndApplyButton, wantMnemonics |
| Methods inherited from class org.eclipse.jface.preference.PreferencePage |
applyData, applyDialogFont, computeSize, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, performApply, performCancel, performDefaults, performHelp, setContainer, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton |
| Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setVisible |
| Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible |
SystemAbstractRemoteFilePropertyPageExtensionAction
public SystemAbstractRemoteFilePropertyPageExtensionAction()
- Constructor
createContentArea
protected abstract Control createContentArea(Composite parent)
- Abstract. You must override.
This is where child classes create their content area versus createContent,
in order to have the message line configured for them and mnemonics assigned.
- Specified by:
createContentArea in class SystemAbstractPropertyPageExtensionAction
verifyPageContents
protected boolean verifyPageContents()
- You may override if your page has input fields. By default returns true.
Validate all the widgets on the page. Based on this, the Eclipse framework will know whether
to veto any user attempt to select another property page from the list on the left in the
Properties dialog.
Subclasses should override to do full error checking on all the widgets on the page. Recommendation:
- Overrides:
verifyPageContents in class SystemAbstractPropertyPageExtensionAction
- Returns:
- true if there are no errors, false if any errors were found.
getRemoteFile
public IRemoteFile getRemoteFile()
- Retrieve the input selected object, as an IRemoteFile, for convenience.
getRemoteFileSubSystem
public IRemoteFileSubSystem getRemoteFileSubSystem()
- Get the remote file subsystem from which the selected objects were resolved.
This has many useful methods in it, including support to transfer files to and
from the local and remote systems.
getRemoteFileSubSystemConfiguration
public IRemoteFileSubSystemConfiguration getRemoteFileSubSystemConfiguration()
- Returns the remote file subsystem factory which owns the subsystem from which the
selected remote objects were resolved. This has some useful methods in it,
including isUnixStyle() indicating if this remote file system is unix or windows.
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.