Exemple #1
0
  @Override
  protected void configureTreeViewer(TreeViewer viewer) {
    viewer.setUseHashlookup(true);
    artifactDecorator.setViewer(viewer);

    ArtifactSearchLabelProvider innerLabelProvider =
        new ArtifactSearchLabelProvider(this, artifactDecorator);
    viewer.setLabelProvider(new DecoratingArtifactSearchLabelProvider(innerLabelProvider));
    viewer.setContentProvider(new ArtifactTreeContentProvider(this, viewer));
    viewer.setComparator(new DecoratorIgnoringViewerSorter(innerLabelProvider));
    fContentProvider = (IArtifactSearchContentProvider) viewer.getContentProvider();
    addDragAdapters(viewer);
  }
Exemple #2
0
 @Override
 public void createControl(Composite parent) {
   super.createControl(parent);
   artifactDecorator.addActions(getSite().getActionBars().getMenuManager(), this);
 }