|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.eclipse.jface.preference.FieldEditorPreferencePage
org.eclipse.rse.files.ui.propertypages.UniversalPreferencePage
"Files" Preference page within the Remote Systems preference node. This allows users to specify, per file extension, whether files are source or binary.
| Field Summary | |
|---|---|
protected Button |
addResourceTypeButton
|
protected Combo |
archiveTypeCombo
|
protected Button |
binaryButton
|
protected Combo |
defaultArchiveTypeCombo
|
protected Button |
defaultBinaryButton
|
protected Button |
defaultTextButton
|
protected Button |
doSuperTransferButton
|
protected Text |
downloadBufferSize
|
protected ArrayList |
editorMappings
|
protected IEditorRegistry |
editorRegistry
|
protected ArrayList |
imagesToDispose
|
protected ArrayList |
modeMappings
|
protected SystemFileTransferModeRegistry |
modeRegistry
|
protected Button |
removeResourceTypeButton
|
protected Label |
resourceTypeLabel
|
protected Table |
resourceTypeTable
|
protected Button |
textButton
|
protected Text |
uploadBufferSize
|
| Fields inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage |
|---|
FLAT, GRID, MARGIN_HEIGHT, MARGIN_WIDTH, VERTICAL_SPACING |
| Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
|---|
ERROR, INFORMATION, NONE, WARNING |
| Constructor Summary | |
|---|---|
UniversalPreferencePage()
Constructor |
|
| Method Summary | |
|---|---|
void |
addResourceType(String newName,
String newExtension)
Add a new resource type to the collection shown in the top of the page. |
void |
createControl(Composite parent)
|
protected void |
createFieldEditors()
|
void |
dispose()
The preference page is going to be disposed. |
void |
fillMode()
Fill the mode widgets |
protected void |
fillResourceTypeTable()
Fill the resource type table |
static boolean |
getDoSuperTransfer()
|
static int |
getDownloadBufferSize()
|
static int |
getFileTransferModeDefaultPreference()
Return whether to automatically detect, use binary or text during file transfer for unspecified file types |
static String |
getSuperTransferTypePreference()
Return whether to compress directories before transferring them over the network |
static int |
getUploadBufferSize()
|
void |
handleEvent(Event event)
|
void |
init(IWorkbench workbench)
|
static void |
initDefaults(IPreferenceStore store)
|
protected TableItem |
newResourceTableItem(IFileEditorMapping mapping,
int index,
boolean selected)
Create a new TableItem to represent the resource
type editor description supplied. |
protected void |
performDefaults()
|
boolean |
performOk()
Stuff to do when ok is pressed |
void |
promptForResourceType()
Prompt for file type |
void |
propertyChanged(Object source,
int propId)
Listen for changes to the Editor Registry content. |
void |
removeSelectedResourceType()
Remove the type from the table |
protected void |
resetBufferSizePrefs()
|
protected void |
resetResourceTypeTable()
Used during reset defaults |
protected void |
resetSuperTransferPrefs()
|
static void |
setDoSuperTransfer(boolean flag)
|
static void |
setDownloadBufferSize(int size)
|
static void |
setDownloadBufferSize(String size)
|
static void |
setFileTransferModeDefaultPreference(int defaultMode)
Set the default file transfer mode to use for unspecified file types |
static void |
setSuperTransferTypePreference(String type)
Set the default as to whether or not to compress directories before remote transfer |
static void |
setUploadBufferSize(int size)
|
static void |
setUploadBufferSize(String size)
|
void |
updateEnabledState()
Update enabled state of buttons |
| Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage |
|---|
addField, adjustGridLayout, applyFont, checkState, createContents, getFieldEditorParent, initialize, propertyChange, setVisible |
| Methods inherited from class org.eclipse.jface.preference.PreferencePage |
|---|
applyData, applyDialogFont, computeSize, contributeButtons, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton |
| Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
|---|
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.jface.preference.IPreferencePage |
|---|
computeSize, isValid, okToLeave, performCancel, setContainer, setSize |
| Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
|---|
getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible |
| Field Detail |
protected Label resourceTypeLabel
protected Table resourceTypeTable
protected Button addResourceTypeButton
protected Button removeResourceTypeButton
protected Button binaryButton
protected Button textButton
protected Button doSuperTransferButton
protected Button defaultBinaryButton
protected Button defaultTextButton
protected SystemFileTransferModeRegistry modeRegistry
protected IEditorRegistry editorRegistry
protected ArrayList modeMappings
protected ArrayList editorMappings
protected ArrayList imagesToDispose
protected Combo archiveTypeCombo
protected Combo defaultArchiveTypeCombo
protected Text downloadBufferSize
protected Text uploadBufferSize
| Constructor Detail |
public UniversalPreferencePage()
| Method Detail |
public void createControl(Composite parent)
createControl in interface IDialogPagePreferencePage.createControl(Composite)protected void createFieldEditors()
public void init(IWorkbench workbench)
init in interface IWorkbenchPreferencePagepublic static void initDefaults(IPreferenceStore store)
protected void fillResourceTypeTable()
protected void resetResourceTypeTable()
protected void resetSuperTransferPrefs()
protected void resetBufferSizePrefs()
protected TableItem newResourceTableItem(IFileEditorMapping mapping,
int index,
boolean selected)
TableItem to represent the resource
type editor description supplied.
public void dispose()
dispose in interface IDialogPagepublic void handleEvent(Event event)
handleEvent in interface ListenerListener.handleEvent(Event)public void fillMode()
public void promptForResourceType()
public void removeSelectedResourceType()
public void addResourceType(String newName,
String newExtension)
public void updateEnabledState()
protected void performDefaults()
public boolean performOk()
performOk in interface IPreferencePagepublic static int getFileTransferModeDefaultPreference()
public static void setFileTransferModeDefaultPreference(int defaultMode)
public static String getSuperTransferTypePreference()
public static void setSuperTransferTypePreference(String type)
public static boolean getDoSuperTransfer()
public static int getDownloadBufferSize()
public static int getUploadBufferSize()
public static void setDoSuperTransfer(boolean flag)
public static void setDownloadBufferSize(String size)
public static void setUploadBufferSize(String size)
public static void setDownloadBufferSize(int size)
public static void setUploadBufferSize(int size)
public void propertyChanged(Object source,
int propId)
propertyChanged in interface IPropertyListenerIPropertyListener.propertyChanged(Object, int)
|
RSE Release 1.0 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||