1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 23:55:26 +02:00

Bug 158296 - corrected preference pages and help

Remote Systems - removed description, linked F1 to correct control
Communications - removed description, linked F1 to correct control
File Cache - removed superfluous instructions and description, improved help, changed button text to include "cached files", made note at the bottom a read-only text field.
Files - removed description, linked F1 to correct control
Logging - removed description
Passwords - removed description
SSL - changed description to read-only text field
This commit is contained in:
David Dykstal 2006-10-19 21:32:49 +00:00
parent 6aafbf3c64
commit 0399cb777f
9 changed files with 55 additions and 56 deletions

View file

@ -61,6 +61,7 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
@ -100,7 +101,7 @@ public class UniversalSecurityPreferencePage extends PreferencePage implements
composite.setLayout(layout);
composite.setLayoutData(GridUtil.createFill());
Label label = new Label(composite, SWT.NULL);
Text label = new Text(composite, SWT.READ_ONLY);
label.setText(UniversalSecurityPlugin.getString(UniversalSecurityProperties.RESID_SECURITY_PREF_SEC_DESCRIPTION));
GridData data = new GridData();
data.horizontalSpan = 2;

View file

@ -172,14 +172,14 @@ RESID_CONFLICT_DOWNLOAD_OPENWITHLOCAL= Open editor with pending changes
# REMOTE FILE SYSTEM CACHE PREFERENCE PAGE
#=============================================================
RESID_PREF_CACHE_DESCRIPTION=When RSE is used for editing, the remote files are cached. Use this page to clear or limit the size of the file cache.
RESID_PREF_CACHE_CLEAR=Clear
RESID_PREF_CACHE_CLEAR=Clear Cached Files
RESID_PREF_CACHE_CLEAR_LABEL=Clear cached files
RESID_PREF_CACHE_CLEAR_TOOLTIP=Delete remote files that have been cached in the local workspace
RESID_PREF_CACHE_MAX_CACHE_SIZE_LABEL=Maximum cache size (MB)
RESID_PREF_CACHE_MAX_CACHE_SIZE_DESCRIPTION=Enter the maxium size space that can be used by the cache
RESID_PREF_CACHE_MAX_CACHE_SIZE_TOOLTIP=Enter the maxium size space that can be used by the cache
RESID_PREF_CACHE_CLEAR_WARNING_LABEL=Note:
RESID_PREF_CACHE_CLEAR_WARNING_DESCRIPTION=Clearing the cache closes all open remote files
RESID_PREF_CACHE_CLEAR_WARNING_DESCRIPTION=Note: Clearing the cache closes all open remote files
#=============================================================
# SUPERTRANSFER PROGRESS MONITOR

View file

@ -73,6 +73,7 @@ import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.dialogs.ListSelectionDialog;
import org.eclipse.ui.model.AdaptableList;
import org.eclipse.ui.model.WorkbenchContentProvider;
@ -95,7 +96,7 @@ public class SystemCachePreferencePage extends PreferencePage implements IWorkbe
{
super();
setPreferenceStore(RSEUIPlugin.getDefault().getPreferenceStore());
setDescription(FileResources.RESID_PREF_CACHE_DESCRIPTION);
// setDescription(FileResources.RESID_PREF_CACHE_DESCRIPTION); dwd descriptions are not readable by screen reader
}
/**
@ -104,6 +105,7 @@ public class SystemCachePreferencePage extends PreferencePage implements IWorkbe
public void createControl(Composite parent)
{
super.createControl(parent);
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), RSEUIPlugin.HELPPREFIX + "fchp0000");
}
/**
@ -146,46 +148,42 @@ public class SystemCachePreferencePage extends PreferencePage implements IWorkbe
}
});
Composite clearComp = SystemWidgetHelpers.createComposite(parent, 2);
layout = new GridLayout();
layout.numColumns = 2;
clearComp.setLayout(layout);
clearComp.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
// Composite clearComp = SystemWidgetHelpers.createComposite(parent, 2);
// layout = new GridLayout();
// layout.numColumns = 2;
// clearComp.setLayout(layout);
// clearComp.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING));
SystemWidgetHelpers.createLabel(
clearComp,
FileResources.RESID_PREF_CACHE_CLEAR_LABEL);
_clearButton =
SystemWidgetHelpers.createPushButton(
clearComp,
FileResources.RESID_PREF_CACHE_CLEAR,
this);
// SystemWidgetHelpers.createLabel(
// clearComp,
// FileResources.RESID_PREF_CACHE_CLEAR_LABEL);
_clearButton = SystemWidgetHelpers.createPushButton(parent, FileResources.RESID_PREF_CACHE_CLEAR, this);
_clearButton.setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, false));
_clearButton.setToolTipText(FileResources.RESID_PREF_CACHE_CLEAR_TOOLTIP);
gd = new GridData();
gd.widthHint = 75;
_clearButton.setLayoutData(gd);
// gd = new GridData();
// gd.widthHint = 75;
// _clearButton.setLayoutData(gd);
Composite warningComp = SystemWidgetHelpers.createComposite(clearComp, 2);
gd = new GridData();
gd.horizontalSpan = 2;
warningComp.setLayoutData(gd);
// Composite warningComp = SystemWidgetHelpers.createComposite(clearComp, 2);
// gd = new GridData();
// gd.horizontalSpan = 2;
// warningComp.setLayoutData(gd);
Display display = getControl().getDisplay();
Label warningLabel =
SystemWidgetHelpers.createLabel(
warningComp,
FileResources.RESID_PREF_CACHE_CLEAR_WARNING_LABEL);
FontData oldData = warningLabel.getFont().getFontData()[0];
FontData data = new FontData(oldData.getName(), oldData.getHeight(), SWT.BOLD);
Font fFont = new Font(display, data);
// Display display = getControl().getDisplay();
// Label warningLabel =
// SystemWidgetHelpers.createLabel(
// warningComp,
// FileResources.RESID_PREF_CACHE_CLEAR_WARNING_LABEL);
// FontData oldData = warningLabel.getFont().getFontData()[0];
// FontData data = new FontData(oldData.getName(), oldData.getHeight(), SWT.BOLD);
// Font fFont = new Font(display, data);
// warningLabel.setFont(fFont);
warningLabel.setFont(fFont);
SystemWidgetHelpers.createLabel(
warningComp,
FileResources.RESID_PREF_CACHE_CLEAR_WARNING_DESCRIPTION);
Text warning = new Text(parent, SWT.READ_ONLY);
// SystemWidgetHelpers.createReadonlyTextField(parent);
warning.setText(FileResources.RESID_PREF_CACHE_CLEAR_WARNING_DESCRIPTION);
(new Mnemonics()).setOnPreferencePage(true).setMnemonics(parent);
SystemWidgetHelpers.setCompositeHelp(parent, RSEUIPlugin.HELPPREFIX + "fchp0000");
initControls();
return parent;

View file

@ -115,16 +115,15 @@ public class UniversalPreferencePage
public UniversalPreferencePage() {
super(GRID);
setPreferenceStore(RSEUIPlugin.getDefault().getPreferenceStore());
setDescription(FileResources.RESID_PREF_UNIVERSAL_FILES_TITLE);
// setDescription(FileResources.RESID_PREF_UNIVERSAL_FILES_TITLE);
}
/**
* @see org.eclipse.jface.preference.PreferencePage#createControl(Composite)
*/
public void createControl(Composite parent) {
// added for 1GEUGE6: ITPJUI:WIN2000 - Help is the same on all preference pages
super.createControl(parent);
PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, RSEUIPlugin.HELPPREFIX+"ufpf0000");
}
@ -382,7 +381,6 @@ public class UniversalPreferencePage
updateEnabledState();
(new Mnemonics()).setOnPreferencePage(true).setMnemonics(parent);
SystemWidgetHelpers.setCompositeHelp(parent, RSEUIPlugin.HELPPREFIX+"ufpf0000");
}

View file

@ -131,10 +131,10 @@ public abstract class LoggingPreferencePage extends PreferencePage implements IW
*/
protected Control createContents(Composite parent) {
Composite composite_tab = createComposite(parent, 1, 1);
String bundleName = (String)(getBundle().getHeaders().get(org.osgi.framework.Constants.BUNDLE_NAME));
String topLabel1 = LoggingPreferenceLabels.LOGGING_PREFERENCE_PAGE_TOPLABEL1;
topLabel1 = MessageFormat.format(topLabel1, new Object[] {bundleName});
createLabel(composite_tab, 1, topLabel1);
// String bundleName = (String)(getBundle().getHeaders().get(org.osgi.framework.Constants.BUNDLE_NAME));
// String topLabel1 = LoggingPreferenceLabels.LOGGING_PREFERENCE_PAGE_TOPLABEL1;
// topLabel1 = MessageFormat.format(topLabel1, new Object[] {bundleName});
// createLabel(composite_tab, 1, topLabel1);
String topLabel2 = LoggingPreferenceLabels.LOGGING_PREFERENCE_PAGE_TOPLABEL2;
Group group1 = createGroup(composite_tab, 1, 1, topLabel2);
Set used = LabelUtil.usedFromString("ad"); // the mnemonics already used on preference page (in English)

View file

@ -931,11 +931,11 @@ Use the port preference to change which local TCP/IP port the daemon uses to lis
<!-- file cache preference page -->
<context id="fchp0000">
<description>This is the RSE file cache preference page.
<description>This is the RSE file cache preference page.
Use this page to limit the amount of disk space used to store locally replicated remote files.
Remote files are cached locally when RSE is used for editing. Use the <b>Maximum cache size</b> settings to specify a limit to the amount of disk space used for this cache.
Use the clear button to remove all cached files.
Click the <b>Clear Cached Files</b> button to remove all cached files. Clearing the cache will close any editors open for these files.
</description>
</context>

View file

@ -19,6 +19,7 @@ package org.eclipse.rse.ui.propertypages;
import java.util.Hashtable;
import java.util.StringTokenizer;
import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.util.PropertyChangeEvent;
@ -38,6 +39,8 @@ import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.help.WorkbenchHelp;
/**
@ -73,7 +76,7 @@ public class RemoteSystemsPreferencePage
super(GRID);
setTitle(SystemResources.RESID_PREF_ROOT_PAGE);
setPreferenceStore(RSEUIPlugin.getDefault().getPreferenceStore());
setDescription(SystemResources.RESID_PREF_ROOT_TITLE);
// setDescription(SystemResources.RESID_PREF_ROOT_TITLE); // removed since this is not read by screen reader
}
/**
* We intercept to set the help
@ -81,6 +84,7 @@ public class RemoteSystemsPreferencePage
public void createControl(Composite parent)
{
super.createControl(parent);
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), RSEUIPlugin.HELPPREFIX+"rsep0000");
}
/**
@ -187,9 +191,7 @@ public class RemoteSystemsPreferencePage
**/
// set mnemonics
(new Mnemonics()).setOnPreferencePage(true).setMnemonics(getFieldEditorParent());
// set help
SystemWidgetHelpers.setCompositeHelp(getFieldEditorParent(), RSEUIPlugin.HELPPREFIX+"rsep0000"); //$NON-NLS-1$
}
// ---------------------------------------------------------

View file

@ -184,7 +184,7 @@ public final class SignonPreferencePage extends PreferencePage implements IWorkb
gd.grabExcessHorizontalSpace = true;
gd.grabExcessVerticalSpace = true;
SystemWidgetHelpers.createLabel(page, SystemResources.RESID_PREF_SIGNON_DESCRIPTION, 2);
// SystemWidgetHelpers.createLabel(page, SystemResources.RESID_PREF_SIGNON_DESCRIPTION, 2);
// Password table
pwdTable = new Table(page, SWT.FULL_SELECTION |SWT.MULTI | SWT.V_SCROLL | SWT.H_SCROLL | SWT.BORDER);

View file

@ -29,6 +29,7 @@ import org.eclipse.rse.ui.SystemWidgetHelpers;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.eclipse.ui.PlatformUI;
/**
@ -47,7 +48,7 @@ public class SystemCommunicationsPreferencePage extends FieldEditorPreferencePag
{
super(GRID);
setPreferenceStore(RSEUIPlugin.getDefault().getPreferenceStore());
setDescription(SystemResources.RESID_PREF_COMMUNICATIONS_TITLE);
// setDescription(SystemResources.RESID_PREF_COMMUNICATIONS_TITLE); dwd description is not readable by screen reader
}
/**
@ -56,6 +57,7 @@ public class SystemCommunicationsPreferencePage extends FieldEditorPreferencePag
public void createControl(Composite parent)
{
super.createControl(parent);
PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), RSEUIPlugin.HELPPREFIX + "cmmp0000");
}
@ -91,8 +93,6 @@ public class SystemCommunicationsPreferencePage extends FieldEditorPreferencePag
(new Mnemonics()).setOnPreferencePage(true).setMnemonics(parent);
SystemWidgetHelpers.setCompositeHelp(parent, RSEUIPlugin.HELPPREFIX + "cmmp0000");
}
/**