Examples of IndexDialog


Examples of com.dbxml.db.admin.dialogs.IndexDialog

   public int menuAction(int action) {
      Admin admin = Admin.getInstance();

      switch ( action ) {
         case ACTION_ADD: {
            IndexDialog id = new IndexDialog(admin, col);
            id.show();
            if ( id.isOkClicked() )
               return REFRESH_SELF;
         }
      }
      return REFRESH_NONE;
   }
View Full Code Here

Examples of org.apache.directory.studio.apacheds.configuration.v2.dialogs.IndexDialog

        StructuredSelection selection = ( StructuredSelection ) indexesTableViewer.getSelection();
        if ( !selection.isEmpty() )
        {
            JdbmIndexBean<String, Entry> index = ( JdbmIndexBean<String, Entry> ) selection.getFirstElement();

            IndexDialog dialog = new IndexDialog( index );
            if ( IndexDialog.OK == dialog.open() && dialog.isDirty() )
            {
                indexesTableViewer.refresh();
                masterDetailsBlock.setEditorDirty();
            }
        }
View Full Code Here

Examples of org.apache.directory.studio.apacheds.configuration.v2.dialogs.IndexDialog

    {
        JdbmIndexBean<String, Entry> newIndex = new JdbmIndexBean<String, Entry>();
        newIndex.setIndexAttributeId( "" ); //$NON-NLS-1$
        newIndex.setIndexCacheSize( 100 );

        IndexDialog dialog = new IndexDialog( newIndex );
        if ( IndexDialog.OK == dialog.open() )
        {
            indexesList.add( dialog.getIndex() );
            indexesTableViewer.refresh();
            indexesTableViewer.setSelection( new StructuredSelection( dialog.getIndex() ) );
            masterDetailsBlock.setEditorDirty();
        }
    }
View Full Code Here

Examples of org.apache.directory.studio.apacheds.configuration.v2.dialogs.IndexDialog

        StructuredSelection selection = ( StructuredSelection ) indexesTableViewer.getSelection();
        if ( !selection.isEmpty() )
        {
            JdbmIndexBean<String, Entry> index = ( JdbmIndexBean<String, Entry> ) selection.getFirstElement();

            IndexDialog dialog = new IndexDialog( index );
            if ( IndexDialog.OK == dialog.open() && dialog.isDirty() )
            {
                indexesTableViewer.refresh();
                masterDetailsBlock.setEditorDirty();
            }
        }
View Full Code Here

Examples of org.apache.directory.studio.apacheds.configuration.v2.dialogs.IndexDialog

    {
        JdbmIndexBean<String, Entry> newIndex = new JdbmIndexBean<String, Entry>();
        newIndex.setIndexAttributeId( "" ); //$NON-NLS-1$
        newIndex.setIndexCacheSize( 100 );

        IndexDialog dialog = new IndexDialog( newIndex );
        if ( IndexDialog.OK == dialog.open() )
        {
            indexesList.add( dialog.getIndex() );
            indexesTableViewer.refresh();
            indexesTableViewer.setSelection( new StructuredSelection( dialog.getIndex() ) );
            masterDetailsBlock.setEditorDirty();
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.