@Override
    protected void setColumns(CmsListMetadata metadata) {

        // create column for edit
        CmsListColumnDefinition editCol = new CmsListColumnDefinition(LIST_COLUMN_EDIT);
        editCol.setName(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_EDIT_NAME_0));
        editCol.setHelpText(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_EDIT_NAME_HELP_0));
        editCol.setWidth("5");
        editCol.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT);
        editCol.setSorteable(false);
        // add dummy icon
        CmsListDirectAction editAction = new CmsListDirectAction(LIST_ACTION_EDIT);
        editAction.setName(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_ACTION_EDIT_NAME_0));
        editAction.setHelpText(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_EDIT_NAME_HELP_0));
        editAction.setIconPath(CmsSearchIndexList.LIST_ICON_INDEXSOURCE);
        editCol.addDirectAction(editAction);
        // add it to the list definition
        metadata.addColumn(editCol);

        // create column for resource assignment
        CmsListColumnDefinition resCol = new CmsListColumnDefinition(LIST_COLUMN_RESOURCES);
        resCol.setName(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_RESOURCES_NAME_0));
        resCol.setHelpText(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_RESOURCES_NAME_HELP_0));
        resCol.setWidth("5");
        resCol.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT);
        resCol.setSorteable(false);
        // add resource icon
        CmsListDirectAction resAction = new CmsListDirectAction(LIST_ACTION_RESOURCES);
        resAction.setName(Messages.get().container(Messages.GUI_LIST_SEARCHINDEX_ACTION_RESOURCES_NAME_0));
        resAction.setHelpText(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_RESOURCES_NAME_HELP_0));
        resAction.setIconPath(ICON_FOLDER);
        resCol.addDirectAction(resAction);
        // add it to the list definition
        metadata.addColumn(resCol);

        // create column for document type assignment
        CmsListColumnDefinition docCol = new CmsListColumnDefinition(LIST_COLUMN_DOCUMENTS);
        docCol.setName(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_DOCUMENTS_NAME_0));
        docCol.setHelpText(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_DOCUMENTS_NAME_HELP_0));
        docCol.setWidth("5");
        docCol.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT);
        docCol.setSorteable(false);
        // add document type icon
        CmsListDirectAction docAction = new CmsListDirectAction(LIST_ACTION_DOCUMENTS);
        docAction.setName(Messages.get().container(Messages.GUI_LIST_SEARCHINDEX_ACTION_DOCUMENTS_NAME_0));
        docAction.setHelpText(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_DOCUMENTS_NAME_HELP_0));
        docAction.setIconPath(CmsDocumentTypeList.ICON_DOCTYPE);
        docCol.addDirectAction(docAction);
        // add it to the list definition
        metadata.addColumn(docCol);

        // create column for deletion
        CmsListColumnDefinition deleteCol = new CmsListColumnDefinition(LIST_COLUMN_DELETE);
        deleteCol.setName(Messages.get().container(Messages.GUI_LIST_SEARCHINDEX_COL_DELETE_NAME_0));
        deleteCol.setHelpText(Messages.get().container(Messages.GUI_LIST_SEARCHINDEX_COL_DELETE_HELP_0));
        deleteCol.setWidth("10");
        deleteCol.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT);
        deleteCol.setSorteable(false);
        // add delete action
        CmsListDirectAction deleteAction = new CmsListDirectAction(LIST_ACTION_DELETE);
        deleteAction.setName(Messages.get().container(Messages.GUI_LIST_SEARCHINDEX_ACTION_DELETE_NAME_0));
        deleteAction.setHelpText(Messages.get().container(Messages.GUI_LIST_SEARCHINDEX_ACTION_DELETE_HELP_0));
        // skipped as the following page will have to ask for confirmation again (and additionally check a constraint)
        //        deleteAction.setConfirmationMessage(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_ACTION_DELETE_CONF_0));
        deleteAction.setIconPath(ICON_DELETE);
        deleteCol.addDirectAction(deleteAction);
        // add it to the list definition
        metadata.addColumn(deleteCol);

        // add column for name
        CmsListColumnDefinition nameCol = new CmsListColumnDefinition(LIST_COLUMN_NAME);
        nameCol.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT);
        nameCol.setName(Messages.get().container(Messages.GUI_LIST_SEARCHINDEX_COL_NAME_0));
        nameCol.setWidth("50%");
        // add overview action
        CmsListDefaultAction defEditAction = new CmsListDefaultAction(LIST_ACTION_OVERVIEW_INDEXSOURCE);
        defEditAction.setName(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_OVERVIEW_NAME_0));
        defEditAction.setHelpText(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_OVERVIEW_NAME_HELP_0));
        nameCol.addDefaultAction(defEditAction);
        metadata.addColumn(nameCol);

        // add column for analyzer
        CmsListColumnDefinition analyzerCol = new CmsListColumnDefinition(LIST_COLUMN_INDEXER);
        analyzerCol.setAlign(CmsListColumnAlignEnum.ALIGN_LEFT);
        analyzerCol.setName(Messages.get().container(Messages.GUI_LIST_INDEXSOURCE_COL_INDEXER_0));
        analyzerCol.setWidth("45%");
        metadata.addColumn(analyzerCol);

    }
@ Override protected void setColumns ( CmsListMetadata metadata ) { CmsListColumnDefinition editCol = new CmsListColumnDefinition ( LIST_COLUMN_EDIT ) ; editCol . setName ( Messages . get ( ) . container ( Messages . GUI_LIST_INDEXSOURCE_COL_EDIT_NAME_0 ) ) ; editCol . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LIST_INDEXSOURCE_COL_EDIT_NAME_HELP_0 ) ) ; editCol . setWidth ( "5" ) ; editCol . setAlign ( CmsListColumnAlignEnum . ALIGN_LEFT ) ; editCol . setSorteable ( false ) ; CmsListDirectAction editAction = new CmsListDirectAction ( LIST_ACTION_EDIT ) ; editAction . setName ( Messages . get ( ) . container ( Messages . GUI_LIST_INDEXSOURCE_ACTION_EDIT_NAME_0 ) ) ; editAction . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LIST_INDEXSOURCE_COL_EDIT_NAME_HELP_0 ) ) ; editAction . setIconPath ( CmsSearchIndexList . LIST_ICON_INDEXSOURCE ) ; editCol . addDirectAction ( editAction ) ; metadata . addColumn ( editCol ) ; CmsListColumnDefinition resCol = new CmsListColumnDefinition ( LIST_COLUMN_RESOURCES ) ; resCol . setName ( Messages . get ( ) . container ( Messages . GUI_LIST_INDEXSOURCE_COL_RESOURCES_NAME_0 ) ) ; resCol . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LIST_INDEXSOURCE_COL_RESOURCES_NAME_HELP_0 ) ) ; resCol . setWidth ( "5" ) ; resCol . setAlign ( CmsListColumnAlignEnum . ALIGN_LEFT ) ; resCol . setSorteable ( false ) ; CmsListDirectAction resAction = new CmsListDirectAction ( LIST_ACTION_RESOURCES ) ; resAction . setName ( Messages . get ( ) . container ( Messages . GUI_LIST_SEARCHINDEX_ACTION_RESOURCES_NAME_0 ) ) ; resAction . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LIST_INDEXSOURCE_COL_RESOURCES_NAME_HELP_0 ) ) ; resAction . setIconPath ( ICON_FOLDER ) ; resCol . addDirectAction ( resAction ) ; metadata . addColumn ( resCol ) ; CmsListColumnDefinition docCol = new CmsListColumnDefinition ( LIST_COLUMN_DOCUMENTS ) ; docCol . setName ( Messages . get ( ) . container ( Messages . GUI_LIST_INDEXSOURCE_COL_DOCUMENTS_NAME_0 ) ) ; docCol . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LIST_INDEXSOURCE_COL_DOCUMENTS_NAME_HELP_0 ) ) ; docCol . setWidth ( "5" ) ; docCol . setAlign ( CmsListColumnAlignEnum . ALIGN_LEFT ) ; docCol . setSorteable ( false ) ; CmsListDirectAction docAction = new CmsListDirectAction ( LIST_ACTION_DOCUMENTS ) ; docAction . setName ( Messages . get ( ) . container ( Messages . GUI_LIST_SEARCHINDEX_ACTION_DOCUMENTS_NAME_0 ) ) ; docAction . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LIST_INDEXSOURCE_COL_DOCUMENTS_NAME_HELP_0 ) ) ; docAction . setIconPath ( CmsDocumentTypeList . ICON_DOCTYPE ) ; docCol . addDirectAction ( docAction ) ; metadata . addColumn ( docCol ) ; CmsListColumnDefinition deleteCol = new CmsListColumnDefinition ( LIST_COLUMN_DELETE ) ; deleteCol . setName ( Messages . get ( ) . container ( Messages . GUI_LIST_SEARCHINDEX_COL_DELETE_NAME_0 ) ) ; deleteCol . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LIST_SEARCHINDEX_COL_DELETE_HELP_0 ) ) ; deleteCol . setWidth ( "10" ) ; deleteCol . setAlign ( CmsListColumnAlignEnum . ALIGN_LEFT ) ; deleteCol . setSorteable ( false ) ; CmsListDirectAction deleteAction = new CmsListDirectAction ( LIST_ACTION_DELETE ) ; deleteAction . setName ( Messages . get ( ) . container ( Messages . GUI_LIST_SEARCHINDEX_ACTION_DELETE_NAME_0 ) ) ; deleteAction . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LIST_SEARCHINDEX_ACTION_DELETE_HELP_0 ) ) ; deleteAction . setIconPath ( ICON_DELETE ) ; deleteCol . addDirectAction ( deleteAction ) ; metadata . addColumn ( deleteCol ) ; CmsListColumnDefinition nameCol = new CmsListColumnDefinition ( LIST_COLUMN_NAME ) ; nameCol . setAlign ( CmsListColumnAlignEnum . ALIGN_LEFT ) ; nameCol . setName ( Messages . get ( ) . container ( Messages . GUI_LIST_SEARCHINDEX_COL_NAME_0 ) ) ; nameCol . setWidth ( "50%" ) ; CmsListDefaultAction defEditAction = new CmsListDefaultAction ( LIST_ACTION_OVERVIEW_INDEXSOURCE ) ; defEditAction . setName ( Messages . get ( ) . container ( Messages . GUI_LIST_INDEXSOURCE_COL_OVERVIEW_NAME_0 ) ) ; defEditAction . setHelpText ( Messages . get ( ) . container ( Messages . GUI_LIST_INDEXSOURCE_COL_OVERVIEW_NAME_HELP_0 ) ) ; nameCol . addDefaultAction ( defEditAction ) ; metadata . addColumn ( nameCol ) ; CmsListColumnDefinition analyzerCol = new CmsListColumnDefinition ( LIST_COLUMN_INDEXER ) ; analyzerCol . setAlign ( CmsListColumnAlignEnum . ALIGN_LEFT ) ; analyzerCol . setName ( Messages . get ( ) . container ( Messages . GUI_LIST_INDEXSOURCE_COL_INDEXER_0 ) ) ; analyzerCol . setWidth ( "45%" ) ; metadata . addColumn ( analyzerCol ) ; }
@see org.opencms.workplace.list.A_CmsListDialog#setColumns(org.opencms.workplace.list.CmsListMetadata)