Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.OwnerDrawLabelProvider$OwnerDrawListener


      }
    });
    sorter.addColumn(column0, COLUMN_ELEMENT);

    final TreeViewerColumn column1 = new TreeViewerColumn(viewer, SWT.RIGHT);
    column1.setLabelProvider(new OwnerDrawLabelProvider() {

      @Override
      public void update(ViewerCell cell) {
        if (cell.getElement() == LOADING_ELEMENT) {
          cell.setText(""); //$NON-NLS-1$
View Full Code Here


            cell.setText(line.label);
          }
        });
    createColumn(viewer, SWT.RIGHT, 20,
        UIMessages.CoveragePropertyPageColumnCoverage_label,
        new OwnerDrawLabelProvider() {
          @Override
          public void update(ViewerCell cell) {
            final Line line = (Line) cell.getElement();
            cell.setText(COVERAGE_VALUE.format(line.counter.getCoveredRatio()));
          }
View Full Code Here

    manaColumn = new TableViewerColumn(this, SWT.NONE);
    manaColumn.getColumn().setWidth(8 * CardTemplate.MANA_SYMBOL_SIZE);
    manaColumn.getColumn().setText("Casting Cost");
    manaColumn.getColumn().setMoveable(true);
    manaColumn.getColumn().setResizable(false);
    manaColumn.setLabelProvider(new OwnerDrawLabelProvider() {
      @Override
      protected void erase(Event event, Object element) {
      }

      @Override
View Full Code Here

        }

        @Override
        protected CellLabelProvider createLabelProvider()
        {
            return new OwnerDrawLabelProvider()
            {
                @Override
                protected void erase( final org.eclipse.swt.widgets.Event event,
                                      final Object element )
                {
View Full Code Here

            layout.setColumnData(col.getColumn(), new ColumnPixelData(80));
            ColumnViewerSorter.create(ReportedIssue.class, "amount").attachTo(tableViewer, col); //$NON-NLS-1$

            col = new TableViewerColumn(tableViewer, SWT.NONE);
            col.getColumn().setText(Messages.ColumnIssue);
            col.setLabelProvider(new OwnerDrawLabelProvider()
            {
                protected void measure(Event event, Object element)
                {
                    ReportedIssue line = (ReportedIssue) element;
                    Point size = event.gc.textExtent(line.getLabel());
View Full Code Here

      }
    });
    sorter.addColumn(column0, COLUMN_ELEMENT);

    final TreeViewerColumn column1 = new TreeViewerColumn(viewer, SWT.RIGHT);
    column1.setLabelProvider(new OwnerDrawLabelProvider() {

      @Override
      public void update(ViewerCell cell) {
        if (cell.getElement() == LOADING_ELEMENT) {
          cell.setText(""); //$NON-NLS-1$
View Full Code Here

            cell.setText(line.label);
          }
        });
    createColumn(viewer, SWT.RIGHT, 20,
        UIMessages.CoveragePropertyPageColumnCoverage_label,
        new OwnerDrawLabelProvider() {
          @Override
          public void update(ViewerCell cell) {
            final Line line = (Line) cell.getElement();
            cell.setText(COVERAGE_VALUE.format(line.counter.getCoveredRatio()));
          }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.viewers.OwnerDrawLabelProvider$OwnerDrawListener

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.