Class PlatformServicesUiFactory
- java.lang.Object
-
- com._1c.g5.v8.dt.platform.services.ui.PlatformServicesUiFactory
-
public class PlatformServicesUiFactory extends Object
Factory to create common platfom services UI controls. Factory allows to create:- Add 1C:Enterprise Runtime button
- New infobase button
- Infobase selection button
- 1C:Enterprise Runtime installations viewer
- Infobases viewer
- Restriction:
- This class is not intended to be sub-classed by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
-
Constructor Summary
Constructors Constructor Description PlatformServicesUiFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.widgets.Button
createAddRuntimeButton(org.eclipse.swt.widgets.Composite parent, String runtimeTypeId, String wizardId, ComboViewer installationsViewer, ComboViewer projectsViewer, ComboViewer infobasesViewer, InfobaseAccessType accessType)
Create Add existing 1C:Enterprise Runtime installation button.org.eclipse.swt.widgets.Button
createAddRuntimeButton(org.eclipse.swt.widgets.Composite parent, ComboViewer installationsViewer)
Create Add existing 1C:Enterprise Runtime installation button.org.eclipse.swt.widgets.Button
createAddRuntimeButton(org.eclipse.swt.widgets.Composite parent, ComboViewer installationsViewer, org.eclipse.core.resources.IProject project, ComboViewer infobasesViewer)
Create Add existing 1C:Enterprise Runtime installation button.LightImageButton
createAddRuntimeLwtButton(LightComboViewer viewer)
Create Add existing 1C:Enterprise Runtime installation LWT button.org.eclipse.swt.widgets.Button
createInfobaseSettingsButton(org.eclipse.swt.widgets.Composite parent, InfobaseReference infobase, org.eclipse.core.resources.IProject project)
Create infobase Settings editing button.org.eclipse.swt.widgets.Button
createInfobaseSettingsButton(org.eclipse.swt.widgets.Composite parent, ComboViewer infobasesViewer)
Create infobase Settings editing button.org.eclipse.swt.widgets.Link
createInfobaseSettingsLink(org.eclipse.swt.widgets.Composite parent, ComboViewer infobasesViewer)
Create infobase Settings editing link.LightImageButton
createInfobaseSettingsLwtButton(LightComboViewer viewer)
Create infobase Settings editing button.ComboViewer
createInfobasesViewer(org.eclipse.swt.widgets.Composite parent)
Create infobases viewer.ComboViewer
createInfobasesViewer(org.eclipse.swt.widgets.Composite parent, Predicate<InfobaseReference> filter)
Create infobases viewer.org.eclipse.swt.widgets.Button
createNewInfobaseButton(org.eclipse.swt.widgets.Composite parent)
Create New infobase button.LightImageButton
createNewInfobaseLwtButton(LightComboViewer infobasesViewer, LightComboViewer installationsViewer)
Create New infobase LWT button.ComboViewer
createRuntimeInstallationsViewer(org.eclipse.swt.widgets.Composite parent)
Create 1C:Enterprise Runtime installation viewer.ComboViewer
createRuntimeInstallationsViewer(org.eclipse.swt.widgets.Composite parent, String runtimeTypeId)
Create 1C:Enterprise Runtime installation viewer.ComboViewer
createRuntimeInstallationsViewer(org.eclipse.swt.widgets.Composite parent, String runtimeTypeId, org.eclipse.core.resources.IProject project, InfobaseReference infobase, InfobaseAccessType accessType)
Create 1C:Enterprise Runtime installation viewer.org.eclipse.swt.widgets.Button
createSelectInfobaseButton(org.eclipse.swt.widgets.Composite parent, ComboViewer infobaseViewer)
Create ... infobase selection button.LightImageButton
createSelectInfobaseLWtButton(LightComboViewer viewer)
Create ... infobase selection LWT button.org.eclipse.swt.widgets.Button
createUserListButton(org.eclipse.swt.widgets.Composite parent, Supplier<Object> selectionSupplier)
Creates 'Users' standard data processor command open button.void
linkInfobaseViewerWithRuntimeInstallationsViewer(ComboViewer infobasesViewer, ComboViewer installationsViewer, org.eclipse.swt.widgets.Text infobaseUser, org.eclipse.swt.widgets.Text infobasePassword, org.eclipse.swt.widgets.Text additionalParameters, org.eclipse.swt.widgets.Button osAuthentication, org.eclipse.swt.widgets.Button infobaseAuthentication, org.eclipse.core.resources.IProject project)
Link infobase viewer selection with the 1C:Enterprise Runtime installation viewer selection.void
linkNewInfobaseButtionWithInfobasesViewer(org.eclipse.swt.widgets.Button newInfobase, ComboViewer infobasesViewer, ComboViewer installationsViewer)
Link New indobase button with the infobase viewer selection.int
openDumpInfobaseWizard(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, IResolvableRuntimeInstallation installation)
Opens 1C:Enterprise infobase dump to.dt
file wizard.int
openExportConfigurationFileWizard(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, IResolvableRuntimeInstallation installation)
Opens 1C:Enterprise infobase export to.cf|.cfe
file wizard.void
openInfobaseAccessSettingsDialog(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, org.eclipse.core.resources.IProject project)
Open infobase access settings dialog.void
openInfobaseAccessSettingsDialog(org.eclipse.swt.widgets.Shell shell, StructuredViewer infobaseViewer, org.eclipse.core.resources.IProject project)
Open infobase access settings dialog.int
openRestoreInfobaseWizard(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, IResolvableRuntimeInstallation installation)
Opens 1C:Enterprise infobase restore from.dt
file wizard.boolean
selectInfobaseAccessSettings(InfobaseReference infobase, InfobaseAccessType accessType, org.eclipse.core.resources.IProject project, ComboViewer installationsViewer, org.eclipse.swt.widgets.Text infobaseUser, org.eclipse.swt.widgets.Text infobasePassword, org.eclipse.swt.widgets.Text additionalParameters, org.eclipse.swt.widgets.Button osAuthentication, org.eclipse.swt.widgets.Button infobaseAuthentication)
Trigger 1C:Enterprise Runtime installation and infobase userand password selection.IInfobaseAccessSettings
updateInfobaseAccessSettings(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, String requestMessage)
Opens infobase access settings dialog and returns new access settings ornull
if canceled.
-
-
-
Method Detail
-
createRuntimeInstallationsViewer
public ComboViewer createRuntimeInstallationsViewer(org.eclipse.swt.widgets.Composite parent)
Create 1C:Enterprise Runtime installation viewer. Viewer allows user to select necessary 1C:Enterprise Runtime installation of enterprise Runtime type.- Parameters:
parent
- the parent composite, cannot benull
- Returns:
- the created viewer, never
null
-
createRuntimeInstallationsViewer
public ComboViewer createRuntimeInstallationsViewer(org.eclipse.swt.widgets.Composite parent, String runtimeTypeId)
Create 1C:Enterprise Runtime installation viewer. Viewer allows user to select necessary 1C:Enterprise Runtime installation of the given Runtime type.- Parameters:
parent
- the parent composite, cannot benull
runtimeTypeId
- the type of C:Enterprise Runtime, cannot benull
- Returns:
- the created viewer, never
null
-
createRuntimeInstallationsViewer
public ComboViewer createRuntimeInstallationsViewer(org.eclipse.swt.widgets.Composite parent, String runtimeTypeId, org.eclipse.core.resources.IProject project, InfobaseReference infobase, InfobaseAccessType accessType)
Create 1C:Enterprise Runtime installation viewer. Viewer allows user to select necessary 1C:Enterprise Runtime installation of the given Runtime type.- Parameters:
parent
- the parent composite, cannot benull
runtimeTypeId
- the type of C:Enterprise Runtime, cannot benull
project
- the project to get access settings for, cannot benull
accessType
- the infobase access type, cannot benull
infobase
- the infobase to get access settings for, cannot benull
- Returns:
- the created viewer, never
null
-
createAddRuntimeButton
public org.eclipse.swt.widgets.Button createAddRuntimeButton(org.eclipse.swt.widgets.Composite parent, ComboViewer installationsViewer)
Create Add existing 1C:Enterprise Runtime installation button. Button will execute enterprise 1C:Enterprise Runtime wizard. Added 1C:Enterprise Runtime will be inserted and selected in the installation viewer.- Parameters:
parent
- the parent composite, cannot benull
installationsViewer
- the target viewer to select created 1C:Enterprise Runtime installation, cannot benull
- Returns:
- the created button, never
null
-
createAddRuntimeButton
public org.eclipse.swt.widgets.Button createAddRuntimeButton(org.eclipse.swt.widgets.Composite parent, String runtimeTypeId, String wizardId, ComboViewer installationsViewer, ComboViewer projectsViewer, ComboViewer infobasesViewer, InfobaseAccessType accessType)
Create Add existing 1C:Enterprise Runtime installation button. Button will execute the given type of 1C:Enterprise Runtime wizard. Added 1C:Enterprise Runtime will be inserted and selected in the installation viewer.- Parameters:
parent
- the parent composite, cannot benull
runtimeTypeId
- the type of C:Enterprise Runtime, cannot benull
wizardId
- the wizard id to open with button selection, wizard must be instance ofIRuntimeInstallationWizard
, cannot benull
installationsViewer
- the target viewer to select created 1C:Enterprise Runtime installation, cannot benull
projectsViewer
- the projects viewer to get information about project, ornull
if noneinfobasesViewer
- the infobases viewer to get information about infobase ornull
if noneaccessType
- the infobase access type to add installation for ornull
if none- Returns:
- the created button, never
null
-
createAddRuntimeButton
public org.eclipse.swt.widgets.Button createAddRuntimeButton(org.eclipse.swt.widgets.Composite parent, ComboViewer installationsViewer, org.eclipse.core.resources.IProject project, ComboViewer infobasesViewer)
Create Add existing 1C:Enterprise Runtime installation button. Button will execute enterprise 1C:Enterprise Runtime wizard. Added 1C:Enterprise Runtime will be inserted and selected in the installation viewer.- Parameters:
parent
- the parent composite, cannot benull
installationsViewer
- the target viewer to select created 1C:Enterprise Runtime installation, cannot benull
- Returns:
- the created button, never
null
-
createAddRuntimeLwtButton
public LightImageButton createAddRuntimeLwtButton(LightComboViewer viewer)
Create Add existing 1C:Enterprise Runtime installation LWT button. Button will execute of 1C:Enterprise Runtime wizard. Added 1C:Enterprise Runtime will be inserted and selected in the installation viewer.- Parameters:
viewer
- the parent LWT installation viewer, cannot benull
- Returns:
- the created button, never
null
-
createInfobasesViewer
public ComboViewer createInfobasesViewer(org.eclipse.swt.widgets.Composite parent)
Create infobases viewer. Viewer allows user to select necessary infobase.- Parameters:
parent
- the parent composite, cannot benull
- Returns:
- the created viewer, never
null
-
createInfobasesViewer
public ComboViewer createInfobasesViewer(org.eclipse.swt.widgets.Composite parent, Predicate<InfobaseReference> filter)
Create infobases viewer. Viewer allows user to select necessary infobase. Clients may define filter to filter infobases input.- Parameters:
parent
- the parent composite, cannot benull
filter
- the fileter to fileter infobases input ornull
if not needed- Returns:
- the created viewer, never
null
-
linkInfobaseViewerWithRuntimeInstallationsViewer
public void linkInfobaseViewerWithRuntimeInstallationsViewer(ComboViewer infobasesViewer, ComboViewer installationsViewer, org.eclipse.swt.widgets.Text infobaseUser, org.eclipse.swt.widgets.Text infobasePassword, org.eclipse.swt.widgets.Text additionalParameters, org.eclipse.swt.widgets.Button osAuthentication, org.eclipse.swt.widgets.Button infobaseAuthentication, org.eclipse.core.resources.IProject project)
Link infobase viewer selection with the 1C:Enterprise Runtime installation viewer selection. Selected infobase will trigger 1C:Enterprise Runtime installation and infobase user and password selection. Some UI constols may be missing.- Parameters:
infobasesViewer
- the infobases viewer, cannot benull
installationsViewer
- the 1C:Enterprise Runtime installation viewer, ornull
of not neededinfobaseUser
- the infobase user text, ornull
of not neededinfobasePassword
- the infobase user password, ornull
of not neededadditionalParameters
- the infobase additional parameters, ornull
of not neededosAuthentication
- the OS authentication button, ornull
of not neededinfobaseAuthentication
- the infobase OS authentication button, ornull
of not neededproject
- the project to use to link, cannot benull
-
selectInfobaseAccessSettings
public boolean selectInfobaseAccessSettings(InfobaseReference infobase, InfobaseAccessType accessType, org.eclipse.core.resources.IProject project, ComboViewer installationsViewer, org.eclipse.swt.widgets.Text infobaseUser, org.eclipse.swt.widgets.Text infobasePassword, org.eclipse.swt.widgets.Text additionalParameters, org.eclipse.swt.widgets.Button osAuthentication, org.eclipse.swt.widgets.Button infobaseAuthentication)
Trigger 1C:Enterprise Runtime installation and infobase userand password selection. Some UI constols may be missing.Returns wheter access user ant type settings was set during method execution.
- Parameters:
infobase
- the infobase to get access settings for, cannot benull
accessType
- the infobase access type, cannot benull
project
- the project to get access settings for, can benull
if not neededinstallationsViewer
- the 1C:Enterprise Runtime installation viewer, ornull
of not neededinfobaseUser
- the infobase user text, ornull
of not neededinfobasePassword
- the infobase user password, ornull
of not neededadditionalParameters
- the infobase additional parameters, ornull
of not neededosAuthentication
- the OS authentication button, ornull
of not neededinfobaseAuthentication
- the infobase OS authentication button, ornull
of not needed- Returns:
- wheter access user ant type settings was set during method execution
-
createNewInfobaseButton
public org.eclipse.swt.widgets.Button createNewInfobaseButton(org.eclipse.swt.widgets.Composite parent)
Create New infobase button. Button will execute infobase creation wizard. To add actual button selection action clients need to executelinkNewInfobaseButtionWithInfobasesViewer(Button, ComboViewer, ComboViewer)
.- Parameters:
parent
- the parent composite, cannot benull
- Returns:
- the created button, never
null
-
createNewInfobaseLwtButton
public LightImageButton createNewInfobaseLwtButton(LightComboViewer infobasesViewer, LightComboViewer installationsViewer)
Create New infobase LWT button. Button will execute infobase creation wizard.- Parameters:
installationViewer
- target 1C:Enterprise Runtime installations viewer to select probably added 1C:Enterprise Runtime installation ornull
if not neededinfobaseManager
- the infobase manager, cannot benull
- Returns:
- the created button, never
null
-
createSelectInfobaseButton
public org.eclipse.swt.widgets.Button createSelectInfobaseButton(org.eclipse.swt.widgets.Composite parent, ComboViewer infobaseViewer)
Create ... infobase selection button. Button will open tree infobase selection dialog.- Parameters:
parent
- the parent composite, cannot benull
infobaseViewer
- the infobase viewer to get intitial selection from and to set dialog result to, cannot benull
- Returns:
- the created button, never
null
-
createSelectInfobaseLWtButton
public LightImageButton createSelectInfobaseLWtButton(LightComboViewer viewer)
Create ... infobase selection LWT button. Button will open tree infobase selection dialog.- Parameters:
parent
- the parent composite, cannot benull
viewer
- viewer the infobase LWT viewer to get intitial selection from and to set dialog result to, cannot benull
- Returns:
- the created button, never
null
-
createInfobaseSettingsButton
public org.eclipse.swt.widgets.Button createInfobaseSettingsButton(org.eclipse.swt.widgets.Composite parent, ComboViewer infobasesViewer)
Create infobase Settings editing button. Button will show infobase settings editing dialog.- Parameters:
parent
- the parent composite, cannot benull
infobasesViewer
- the target viewer to edit infobase settings from, cannot benull
- Returns:
- the created button, never
null
-
createInfobaseSettingsButton
public org.eclipse.swt.widgets.Button createInfobaseSettingsButton(org.eclipse.swt.widgets.Composite parent, InfobaseReference infobase, org.eclipse.core.resources.IProject project)
Create infobase Settings editing button. Button will show infobase settings editing dialog.- Parameters:
parent
- the parent composite, cannot benull
infobase
- the infobase to change infobase access settings, cannot benull
project
- the project to open infobase access settings for ornull
if not needed- Returns:
- the created button, never
null
-
createInfobaseSettingsLwtButton
public LightImageButton createInfobaseSettingsLwtButton(LightComboViewer viewer)
Create infobase Settings editing button. Button will show infobase settings editing dialog.- Parameters:
parent
- the parent composite, cannot benull
infobasesViewer
- the target viewer to edit infobase settings from, cannot benull
- Returns:
- the created button, never
null
-
createInfobaseSettingsLink
public org.eclipse.swt.widgets.Link createInfobaseSettingsLink(org.eclipse.swt.widgets.Composite parent, ComboViewer infobasesViewer)
Create infobase Settings editing link. Link will show infobase settings editing dialog.- Parameters:
parent
- the parent composite, cannot benull
infobasesViewer
- the target viewer to edit infobase settings from, cannot benull
- Returns:
- the created link, never
null
-
linkNewInfobaseButtionWithInfobasesViewer
public void linkNewInfobaseButtionWithInfobasesViewer(org.eclipse.swt.widgets.Button newInfobase, ComboViewer infobasesViewer, ComboViewer installationsViewer)
Link New indobase button with the infobase viewer selection. Created infobase will trigger infobase viewer selection. Possibly-added 1C:Enterprise Runtime installation will also be selected in the given 1C:Enterprise installation viewer.- Parameters:
newInfobase
- the new infobase button, cannot benull
infobasesViewer
- the infobases viewer, cannot benull
installationsViewer
- the 1C:Enterprise installations viewer, ornull
if not needed
-
openInfobaseAccessSettingsDialog
public void openInfobaseAccessSettingsDialog(org.eclipse.swt.widgets.Shell shell, StructuredViewer infobaseViewer, org.eclipse.core.resources.IProject project)
Open infobase access settings dialog.- Parameters:
shell
- the shell to use, cannot benull
infobaseViewer
- the infobase viewer to get editing infobase from, cannot benull
project
- the project to open infobase access settings for ornull
if not needed
-
openInfobaseAccessSettingsDialog
public void openInfobaseAccessSettingsDialog(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, org.eclipse.core.resources.IProject project)
Open infobase access settings dialog.- Parameters:
shell
- the shell to use, cannot benull
infobase
- the infobase to change infobase access settings, cannot benull
project
- the project to open infobase access settings for ornull
if not needed
-
updateInfobaseAccessSettings
public IInfobaseAccessSettings updateInfobaseAccessSettings(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, String requestMessage)
Opens infobase access settings dialog and returns new access settings ornull
if canceled.- Parameters:
shell
- the shell to use, cannot benull
infobase
- the infobase to change infobase access settingsrequestMessage
- the request access message, ifnull
then default dialog message used- Returns:
- new
IInfobaseAccessSettings
if 'Ok' pressed,null
otherwise
-
openDumpInfobaseWizard
public int openDumpInfobaseWizard(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, IResolvableRuntimeInstallation installation)
Opens 1C:Enterprise infobase dump to.dt
file wizard. Returns the wizard dialog return code.- Parameters:
shell
- the shell to use, cannot benull
infobase
- the infobase to dump, cannot benull
installation
- the 1C:Enterprise platform installation to use, cannot benull
- Returns:
- the wizard dialog return code
-
openRestoreInfobaseWizard
public int openRestoreInfobaseWizard(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, IResolvableRuntimeInstallation installation)
Opens 1C:Enterprise infobase restore from.dt
file wizard. Returns the wizard dialog return code.- Parameters:
shell
- the shell to use, cannot benull
infobase
- the infobase to dump, cannot benull
installation
- the 1C:Enterprise platform installation to use, cannot benull
- Returns:
- the wizard dialog return code
-
openExportConfigurationFileWizard
public int openExportConfigurationFileWizard(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, IResolvableRuntimeInstallation installation)
Opens 1C:Enterprise infobase export to.cf|.cfe
file wizard. Returns the wizard dialog return code.- Parameters:
shell
- the shell to use, cannot benull
infobase
- the infobase to export to file, cannot benull
installation
- the 1C:Enterprise platform installation to use, cannot benull
- Returns:
- the wizard dialog return code
-
createUserListButton
public org.eclipse.swt.widgets.Button createUserListButton(org.eclipse.swt.widgets.Composite parent, Supplier<Object> selectionSupplier)
Creates 'Users' standard data processor command open button.- Parameters:
parent
- parent composite, cannot benull
selectionSupplier
- the selection supplier with (IApplication
orInfobaseReference
) type, cannot benull
-
-