DbSelect Dialog Plug-in
Category Database Dialog Eclipse
Bookmark :
The DbSelectDialog for Lotus Notes 8 is an SWT Dialog which can be used in Eclipse Plug-ins to select Notes Databases, Templates and Servers.

Installing DbSelect
There are two plug-ins for download. The DbSelect Feature contains the Dialog. This is the only plug-in you need of you want to use the Dialog in your own code. There is a demo plug-in called DbSelect Demo Feature which contains a simple Notes 8 Sidebar that demonstrates how to use the dialog.
Refer to this page for installation instructions.
DbSelect Source Code
Refer to this page for instructions on how to obtain the source code.
Using the DbSelect Dialog
The DbSelect dialog works just like any other SWT Dialog. The following code shows how to create the dialog and get the selected values:
DbSelectDialog dialog = new DbSelectDialog( this.getSite().getShell(), SWT.NONE );
if ( dialog.open() == Window.OK ) {
System.out.println( dialog.getServer() ) ;
System.out.println( dialog.getDbPath() ) ;
}
There are four flags which can be used in the constructor:
DbSelectDialog.HIDE_TOOLBAR: Hides the dialog toolbar.
DbSelectDialog.HIDE_DATABASES: Hides databases (.nsf) files. If the toolbar is visible the user can toggle this setting via a toolbar button.
DbSelectDialog.HIDE_TEMPLATES: Hides templates (.ntf) files. If the toolbar is visible the user can toggle this setting via a toolbar button.
DbSelectDialog.SERVERS_ONLY: Hides databases and templates so the dialog can be used to select just a server.
Bookmark :
The DbSelectDialog for Lotus Notes 8 is an SWT Dialog which can be used in Eclipse Plug-ins to select Notes Databases, Templates and Servers.
Installing DbSelect
There are two plug-ins for download. The DbSelect Feature contains the Dialog. This is the only plug-in you need of you want to use the Dialog in your own code. There is a demo plug-in called DbSelect Demo Feature which contains a simple Notes 8 Sidebar that demonstrates how to use the dialog.
Refer to this page for installation instructions.
DbSelect Source Code
Refer to this page for instructions on how to obtain the source code.
Using the DbSelect Dialog
The DbSelect dialog works just like any other SWT Dialog. The following code shows how to create the dialog and get the selected values:
DbSelectDialog dialog = new DbSelectDialog( this.getSite().getShell(), SWT.NONE );
if ( dialog.open() == Window.OK ) {
System.out.println( dialog.getServer() ) ;
System.out.println( dialog.getDbPath() ) ;
}
There are four flags which can be used in the constructor:
DbSelectDialog.HIDE_TOOLBAR: Hides the dialog toolbar.
DbSelectDialog.HIDE_DATABASES: Hides databases (.nsf) files. If the toolbar is visible the user can toggle this setting via a toolbar button.
DbSelectDialog.HIDE_TEMPLATES: Hides templates (.ntf) files. If the toolbar is visible the user can toggle this setting via a toolbar button.
DbSelectDialog.SERVERS_ONLY: Hides databases and templates so the dialog can be used to select just a server.
Comments
Posted by tiji At 17:03:21 On 09/06/2008 | - Website - |