Package com.dubture.composer.ui.parts

Examples of com.dubture.composer.ui.parts.TablePart


    section.setDescription("Manage repositories as sources for this package.");
    section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

    Composite container = createClientContainer(section, 2, toolkit);
    createViewerPartControl(container, SWT.MULTI, 2, toolkit);
    TablePart tablePart = getTablePart();
    RepositoriesController repositoriesController = new RepositoriesController();
    repositoryViewer = tablePart.getTableViewer();
    repositoryViewer.setContentProvider(repositoriesController);
    repositoryViewer.setLabelProvider(repositoriesController);
   
    toolkit.paintBordersFor(container);
    section.setClient(container);
View Full Code Here


  }
 
  private void updateButtons() {
    ISelection selection = repositoryViewer.getSelection();
   
    TablePart tablePart = getTablePart();
    tablePart.setButtonEnabled(ADD_INDEX, enabled);
    tablePart.setButtonEnabled(EDIT_INDEX, !selection.isEmpty() && enabled);
    tablePart.setButtonEnabled(REMOVE_INDEX, !selection.isEmpty() && enabled);
  }
View Full Code Here

    section.setDescription("Honour the glorious authors of this package.");
    section.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB));

    Composite container = createClientContainer(section, 2, toolkit);
    createViewerPartControl(container, SWT.MULTI, 2, toolkit);
    TablePart tablePart = getTablePart();
    AuthorController authorController = new AuthorController();
    authorViewer = tablePart.getTableViewer();
    authorViewer.setContentProvider(authorController);
    authorViewer.setLabelProvider(authorController);
   
    toolkit.paintBordersFor(container);
    section.setClient(container);
View Full Code Here

  }
 
  private void updateButtons() {
    ISelection selection = authorViewer.getSelection();
   
    TablePart tablePart = getTablePart();
    tablePart.setButtonEnabled(ADD_INDEX, enabled);
    tablePart.setButtonEnabled(EDIT_INDEX, !selection.isEmpty() && enabled);
    tablePart.setButtonEnabled(REMOVE_INDEX, !selection.isEmpty() && enabled);
  }
View Full Code Here

    gd.grabExcessVerticalSpace = expanded;
    section.setLayoutData(gd);
   
    Composite container = createClientContainer(section, 2, toolkit);
    createViewerPartControl(container, SWT.MULTI, 2, toolkit);
    TablePart tablePart = getTablePart();
    DependencyController dependencyController = new DependencyController();
    dependencyViewer = tablePart.getTableViewer();
    dependencyViewer.setContentProvider(dependencyController);
    dependencyViewer.setLabelProvider(dependencyController);
   
    toolkit.paintBordersFor(container);
    section.setClient(container);
View Full Code Here

  }
 
  private void updateButtons() {
    ISelection selection = dependencyViewer.getSelection();
   
    TablePart tablePart = getTablePart();
    tablePart.setButtonEnabled(EDIT_INDEX, !selection.isEmpty() && enabled);
    tablePart.setButtonEnabled(REMOVE_INDEX, !selection.isEmpty() && enabled);
    tablePart.setButtonEnabled(UPDATE_INDEX, !selection.isEmpty() && enabled);
  }
View Full Code Here

TOP

Related Classes of com.dubture.composer.ui.parts.TablePart

Copyright © 2018 www.massapicom. 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.