Class PlatformServicesUiFactory
java.lang.Object
com._1c.g5.v8.dt.platform.services.ui.PlatformServicesUiFactory
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 -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.ButtoncreateAddRuntimeButton(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.ButtoncreateAddRuntimeButton(org.eclipse.swt.widgets.Composite parent, ComboViewer installationsViewer) Create Add existing 1C:Enterprise Runtime installation button.org.eclipse.swt.widgets.ButtoncreateAddRuntimeButton(org.eclipse.swt.widgets.Composite parent, ComboViewer installationsViewer, org.eclipse.core.resources.IProject project, ComboViewer infobasesViewer) Create Add existing 1C:Enterprise Runtime installation button.Create Add existing 1C:Enterprise Runtime installation LWT button.org.eclipse.swt.widgets.ButtoncreateInfobaseSettingsButton(org.eclipse.swt.widgets.Composite parent, InfobaseReference infobase, org.eclipse.core.resources.IProject project) Create infobase Settings editing button.org.eclipse.swt.widgets.ButtoncreateInfobaseSettingsButton(org.eclipse.swt.widgets.Composite parent, ComboViewer infobasesViewer) Create infobase Settings editing button.org.eclipse.swt.widgets.LinkcreateInfobaseSettingsLink(org.eclipse.swt.widgets.Composite parent, ComboViewer infobasesViewer) Create infobase Settings editing link.Create infobase Settings editing button.createInfobasesViewer(org.eclipse.swt.widgets.Composite parent) Create infobases viewer.createInfobasesViewer(org.eclipse.swt.widgets.Composite parent, Predicate<InfobaseReference> filter) Create infobases viewer.org.eclipse.swt.widgets.ButtoncreateNewInfobaseButton(org.eclipse.swt.widgets.Composite parent) Create New infobase button.createNewInfobaseLwtButton(LightComboViewer infobasesViewer, LightComboViewer installationsViewer) Create New infobase LWT button.createRuntimeInstallationsViewer(org.eclipse.swt.widgets.Composite parent) Create 1C:Enterprise Runtime installation viewer.createRuntimeInstallationsViewer(org.eclipse.swt.widgets.Composite parent, String runtimeTypeId) Create 1C:Enterprise Runtime installation viewer.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.ButtoncreateSelectInfobaseButton(org.eclipse.swt.widgets.Composite parent, ComboViewer infobaseViewer) Create ... infobase selection button.Create ... infobase selection LWT button.org.eclipse.swt.widgets.ButtoncreateUserListButton(org.eclipse.swt.widgets.Composite parent, Supplier<Object> selectionSupplier) Creates 'Users' standard data processor command open button.voidlinkInfobaseViewerWithRuntimeInstallationsViewer(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.voidlinkNewInfobaseButtionWithInfobasesViewer(org.eclipse.swt.widgets.Button newInfobase, ComboViewer infobasesViewer, ComboViewer installationsViewer) Link New indobase button with the infobase viewer selection.intopenDumpInfobaseWizard(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, IResolvableRuntimeInstallation installation) Opens 1C:Enterprise infobase dump to.dtfile wizard.intopenExportConfigurationFileWizard(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, IResolvableRuntimeInstallation installation) Opens 1C:Enterprise infobase export to.cf|.cfefile wizard.voidopenInfobaseAccessSettingsDialog(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, org.eclipse.core.resources.IProject project) Open infobase access settings dialog.voidopenInfobaseAccessSettingsDialog(org.eclipse.swt.widgets.Shell shell, StructuredViewer infobaseViewer, org.eclipse.core.resources.IProject project) Open infobase access settings dialog.intopenRestoreInfobaseWizard(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, IResolvableRuntimeInstallation installation) Opens 1C:Enterprise infobase restore from.dtfile wizard.booleanselectInfobaseAccessSettings(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.updateInfobaseAccessSettings(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, String requestMessage) Opens infobase access settings dialog and returns new access settings ornullif canceled.
-
Constructor Details
-
PlatformServicesUiFactory
public PlatformServicesUiFactory()
-
-
Method Details
-
createRuntimeInstallationsViewer
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 benullruntimeTypeId- 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 benullruntimeTypeId- the type of C:Enterprise Runtime, cannot benullproject- the project to get access settings for, cannot benullaccessType- the infobase access type, cannot benullinfobase- 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 benullinstallationsViewer- 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 benullruntimeTypeId- the type of C:Enterprise Runtime, cannot benullwizardId- the wizard id to open with button selection, wizard must be instance ofIRuntimeInstallationWizard, cannot benullinstallationsViewer- the target viewer to select created 1C:Enterprise Runtime installation, cannot benullprojectsViewer- the projects viewer to get information about project, ornullif noneinfobasesViewer- the infobases viewer to get information about infobase ornullif noneaccessType- the infobase access type to add installation for ornullif 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 benullinstallationsViewer- the target viewer to select created 1C:Enterprise Runtime installation, cannot benull- Returns:
- the created button, never
null
-
createAddRuntimeLwtButton
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
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 benullfilter- the fileter to fileter infobases input ornullif 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 benullinstallationsViewer- the 1C:Enterprise Runtime installation viewer, ornullof not neededinfobaseUser- the infobase user text, ornullof not neededinfobasePassword- the infobase user password, ornullof not neededadditionalParameters- the infobase additional parameters, ornullof not neededosAuthentication- the OS authentication button, ornullof not neededinfobaseAuthentication- the infobase OS authentication button, ornullof 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 benullaccessType- the infobase access type, cannot benullproject- the project to get access settings for, can benullif not neededinstallationsViewer- the 1C:Enterprise Runtime installation viewer, ornullof not neededinfobaseUser- the infobase user text, ornullof not neededinfobasePassword- the infobase user password, ornullof not neededadditionalParameters- the infobase additional parameters, ornullof not neededosAuthentication- the OS authentication button, ornullof not neededinfobaseAuthentication- the infobase OS authentication button, ornullof 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 ornullif 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 benullinfobaseViewer- the infobase viewer to get intitial selection from and to set dialog result to, cannot benull- Returns:
- the created button, never
null
-
createSelectInfobaseLWtButton
Create ... infobase selection LWT button. Button will open tree infobase selection dialog.- Parameters:
parent- the parent composite, cannot benullviewer- 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 benullinfobasesViewer- 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 benullinfobase- the infobase to change infobase access settings, cannot benullproject- the project to open infobase access settings for ornullif not needed- Returns:
- the created button, never
null
-
createInfobaseSettingsLwtButton
Create infobase Settings editing button. Button will show infobase settings editing dialog.- Parameters:
parent- the parent composite, cannot benullinfobasesViewer- 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 benullinfobasesViewer- 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 benullinfobasesViewer- the infobases viewer, cannot benullinstallationsViewer- the 1C:Enterprise installations viewer, ornullif 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 benullinfobaseViewer- the infobase viewer to get editing infobase from, cannot benullproject- the project to open infobase access settings for ornull. Can benullif field for choosing runtime installation 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 benullinfobase- the infobase to change infobase access settings, cannot benullproject- the project to open infobase access settings for ornull. Can benullif field for choosing runtime installation 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 ornullif canceled.- Parameters:
shell- the shell to use, cannot benullinfobase- the infobase to change infobase access settingsrequestMessage- the request access message, ifnullthen default dialog message used- Returns:
- new
IInfobaseAccessSettingsif 'Ok' pressed,nullotherwise
-
openDumpInfobaseWizard
public int openDumpInfobaseWizard(org.eclipse.swt.widgets.Shell shell, InfobaseReference infobase, IResolvableRuntimeInstallation installation) Opens 1C:Enterprise infobase dump to.dtfile wizard. Returns the wizard dialog return code.- Parameters:
shell- the shell to use, cannot benullinfobase- the infobase to dump, cannot benullinstallation- 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.dtfile wizard. Returns the wizard dialog return code.- Parameters:
shell- the shell to use, cannot benullinfobase- the infobase to dump, cannot benullinstallation- 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|.cfefile wizard. Returns the wizard dialog return code.- Parameters:
shell- the shell to use, cannot benullinfobase- the infobase to export to file, cannot benullinstallation- 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 benullselectionSupplier- the selection supplier with (IApplicationorInfobaseReference) type, cannot benull
-