Links

Custom Button

Phorm Prohibited

The contents of this site, and communications between this site and its users, are protected by database right, copyright, confidentiality and the right not to be intercepted conferred by section 1(3) of the Regulation of Investigatory Powers Act 2000.

The use of those contents and communications by Internet Service Providers or others to profile or classify users of this site for advertising or other purposes is strictly forbidden.

DbSelect Dialog Plug-in

Category   
Bookmark : del.icio.us  Technorati  Digg This  Add To Furl  Add To YahooMyWeb  Add To Reddit  Add To NewsVine 


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.

A picture named M2

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

GravatarImage1 - vry gooddddddddddd

Post A Comment

:-D:-o:-p:-x:-(:-):-\:angry::cool::cry::emb::grin::huh::laugh::lips::rolleyes:;-)