Class InfobaseAccessSettingsDialog
- java.lang.Object
-
- org.eclipse.jface.window.Window
-
- org.eclipse.jface.dialogs.Dialog
-
- org.eclipse.jface.dialogs.TrayDialog
-
- org.eclipse.jface.dialogs.TitleAreaDialog
-
- com._1c.g5.v8.dt.platform.services.ui.infobases.InfobaseAccessSettingsDialog
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class InfobaseAccessSettingsDialog extends org.eclipse.jface.dialogs.TitleAreaDialog
Dialog allows to input and change infobase access settings.
-
-
Field Summary
-
Fields inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
DLG_IMG_TITLE_BANNER, DLG_IMG_TITLE_ERROR, INFO_MESSAGE, WARNING_MESSAGE
-
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS
-
-
Constructor Summary
Constructors Constructor Description InfobaseAccessSettingsDialog(org.eclipse.swt.widgets.Shell shell, PlatformServicesUiFactory uiFactory)
Constructor ofInfobaseAccessSettingsDialog
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
close()
protected void
configureShell(org.eclipse.swt.widgets.Shell shell)
protected org.eclipse.swt.widgets.Control
createContents(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.swt.widgets.Control
createDialogArea(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.jface.dialogs.IDialogSettings
getDialogBoundsSettings()
InfobaseReference
getInfobase()
Returns configured infobase.protected org.eclipse.swt.graphics.Point
getInitialSize()
IResolvableRuntimeInstallation
getInstallation()
Returns configured 1C:Enterprise Runtime resolvable installation.IInfobaseAccessSettings
getSettings()
Returns configured infobase access settings.protected void
initializeBounds()
protected void
okPressed()
void
setAccessSettings(IInfobaseAccessSettings settings)
Set infobase access settings in the crearing dialog.protected void
setCredentialsEnablement(InfobaseAccess access)
Set infobase user name and password fields enablement.void
setDialogMessage(String dialogMessage, int dialogMessageType)
Sets the message for this dialog with an indication of what type of message it is.void
setDialogTitle(String dialogTitle)
Sets the dialog title.void
setInfobase(InfobaseReference infobase)
Set infobase selection in the creating dialog.void
setInstallation(IResolvableRuntimeInstallation installation)
Set 1C:Enterprise Runtime resolvable installation in the crearing dialog.void
setProject(org.eclipse.core.resources.IProject project)
Set project in the crearing dialog.void
setShellTitle(String shellTitle)
Sets the shell title.protected void
updateDialogState()
Update enablement ofOK
button of this dialog.-
Methods inherited from class org.eclipse.jface.dialogs.TitleAreaDialog
getErrorMessage, getMessage, getTitleArea, getTitleImageLabel, setErrorMessage, setMessage, setMessage, setTitle, setTitleAreaColor, setTitleImage
-
Methods inherited from class org.eclipse.jface.dialogs.TrayDialog
closeTray, createButtonBar, createHelpControl, getLayout, getTray, handleShellCloseEvent, isDialogHelpAvailable, isHelpAvailable, openTray, setDialogHelpAvailable, setHelpAvailable
-
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, buttonPressed, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsStrategy, getImage, getInitialLocation, getOKButton, initializeDialogUnits, isResizable, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText
-
Methods inherited from class org.eclipse.jface.window.Window
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
-
-
-
Constructor Detail
-
InfobaseAccessSettingsDialog
public InfobaseAccessSettingsDialog(org.eclipse.swt.widgets.Shell shell, PlatformServicesUiFactory uiFactory)
Constructor ofInfobaseAccessSettingsDialog
.- Parameters:
shell
- the parent shell, ornull
to create a top-level shelluiFactory
- the platform services UI factory, cannot benull
-
-
Method Detail
-
setProject
public void setProject(org.eclipse.core.resources.IProject project)
Set project in the crearing dialog.- Parameters:
project
- the project to set, cannot benull
-
setInfobase
public void setInfobase(InfobaseReference infobase)
Set infobase selection in the creating dialog. Infobase selection will be locked on the given infobase.- Parameters:
infobase
- the infobase to select, cannot benull
-
setAccessSettings
public void setAccessSettings(IInfobaseAccessSettings settings)
Set infobase access settings in the crearing dialog.- Parameters:
settings
- the infobase access settings to set, cannot benull
-
setInstallation
public void setInstallation(IResolvableRuntimeInstallation installation)
Set 1C:Enterprise Runtime resolvable installation in the crearing dialog.- Parameters:
installation
- 1C:Enterprise Runtime resolvable installation to set, cannot benull
-
getInfobase
public InfobaseReference getInfobase()
Returns configured infobase.- Returns:
- configured infobase, never
null
-
getSettings
public IInfobaseAccessSettings getSettings()
Returns configured infobase access settings.- Returns:
- configured infobase access settings, never
null
-
getInstallation
public IResolvableRuntimeInstallation getInstallation()
Returns configured 1C:Enterprise Runtime resolvable installation. Can returnnull
- Returns:
- configured 1C:Enterprise Runtime resolvable installation or
null
if not configured
-
setDialogTitle
public void setDialogTitle(String dialogTitle)
Sets the dialog title.- Parameters:
dialogTitle
- the dialog title to set, cannot benull
-
setShellTitle
public void setShellTitle(String shellTitle)
Sets the shell title.- Parameters:
shellTitle
- the shell title to set, cannot benull
-
setDialogMessage
public void setDialogMessage(String dialogMessage, int dialogMessageType)
Sets the message for this dialog with an indication of what type of message it is.- Parameters:
dialogMessage
- the dialog message to set, cannot benull
dialogMessageType
- the dialog message type
-
okPressed
protected void okPressed()
- Overrides:
okPressed
in classorg.eclipse.jface.dialogs.Dialog
-
close
public boolean close()
- Overrides:
close
in classorg.eclipse.jface.dialogs.Dialog
-
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell shell)
- Overrides:
configureShell
in classorg.eclipse.jface.window.Window
-
getInitialSize
protected org.eclipse.swt.graphics.Point getInitialSize()
- Overrides:
getInitialSize
in classorg.eclipse.jface.dialogs.TitleAreaDialog
-
getDialogBoundsSettings
protected org.eclipse.jface.dialogs.IDialogSettings getDialogBoundsSettings()
- Overrides:
getDialogBoundsSettings
in classorg.eclipse.jface.dialogs.Dialog
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createDialogArea
in classorg.eclipse.jface.dialogs.TitleAreaDialog
-
initializeBounds
protected void initializeBounds()
- Overrides:
initializeBounds
in classorg.eclipse.jface.dialogs.Dialog
-
createContents
protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createContents
in classorg.eclipse.jface.dialogs.TitleAreaDialog
-
updateDialogState
protected void updateDialogState()
Update enablement ofOK
button of this dialog.
-
setCredentialsEnablement
protected void setCredentialsEnablement(InfobaseAccess access)
Set infobase user name and password fields enablement.- Parameters:
access
- the infobase access, cannot benull
-
-