|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.make.internal.ui.DialogSettingsHelper
public class DialogSettingsHelper
Helper class for dealing with setting and restoring dialog settings.
Constructor Summary | |
---|---|
DialogSettingsHelper()
|
Method Summary | |
---|---|
static org.eclipse.swt.graphics.Point |
getInitialLocation(java.lang.String dialogSettingsSectionName)
Returns the initial location which is persisted in the Debug UI Plugin dialog settings under the provided dialog setttings section name. |
static org.eclipse.swt.graphics.Point |
getInitialSize(java.lang.String dialogSettingsSectionName,
org.eclipse.swt.graphics.Point initialSize)
Returns the initial size which is the larger of the initialSize or
the size persisted in the Debug UI Plugin dialog settings under the provided dialog setttings section name. |
static void |
persistShellGeometry(org.eclipse.swt.widgets.Shell shell,
java.lang.String dialogSettingsSectionName)
Persists the location and dimensions of the shell in the Debug UI Plugin dialog settings under the provided dialog settings section name |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DialogSettingsHelper()
Method Detail |
---|
public static void persistShellGeometry(org.eclipse.swt.widgets.Shell shell, java.lang.String dialogSettingsSectionName)
shell
- The shell whose geometry is to be storeddialogSettingsSectionName
- The name of the dialog settings sectionpublic static org.eclipse.swt.graphics.Point getInitialSize(java.lang.String dialogSettingsSectionName, org.eclipse.swt.graphics.Point initialSize)
initialSize
or
the size persisted in the Debug UI Plugin dialog settings under the provided dialog setttings section name.
If no size is persisted in the settings, the initialSize
is returned.
initialSize
- The initialSize to compare againstdialogSettingsSectionName
- The name of the dialog settings section
public static org.eclipse.swt.graphics.Point getInitialLocation(java.lang.String dialogSettingsSectionName)
null
is returned.
dialogSettingsSectionName
- The name of the dialog settings section
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |