Package org.eclipse.ui.part

Examples of org.eclipse.ui.part.DrillDownAdapter


        containerLayout.marginHeight = 0;
        containerLayout.verticalSpacing = 3;
        parent.setLayout(containerLayout);

        viewer = new TreeViewer(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL);
        drillDownAdapter = new DrillDownAdapter(viewer);
        viewer.setContentProvider(new StatsViewContentProvider(getViewSite()));
        viewer.setLabelProvider(new StatsViewLabelProvider());
        viewer.setSorter(new StatsNameSorter());
        viewer.setInput(getViewSite());
        viewer.getTree().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
View Full Code Here


     * it.
     */
    @Override
    public void createPartControl(final Composite parent) {
        viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
        drillDownAdapter = new DrillDownAdapter(viewer);
        viewer.setContentProvider(new ViewContentProvider());
        viewer.setLabelProvider(new ViewLabelProvider());
        viewer.setSorter(new NameSorter());
        viewer.setInput(getViewSite());
        makeActions();
View Full Code Here

     * (non-Javadoc)
     * @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
     */
    public void createPartControl(Composite parent) {
        viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
        drillDownAdapter = new DrillDownAdapter(viewer);
        viewer.setContentProvider(new RepositoryContentProvider());
        viewer.setLabelProvider(new RepositoryLabelProvider());
        viewer.setSorter(new NameSorter());
        viewer.setInput(viewer);
        makeActions();
View Full Code Here

  public RepositoryView() {
  }

  public void createPartControl(Composite parent) {
    viewer = new TreeViewer(parent, /* SWT.MULTI | */SWT.H_SCROLL | SWT.V_SCROLL);
    drillDownAdapter = new DrillDownAdapter(viewer);
    contentProvider = new ViewContentProvider();
    viewer.setContentProvider(contentProvider);
    viewer.setLabelProvider(new ViewLabelProvider());
    viewer.setSorter(new NameSorter());
    viewer.setInput(getViewSite());
View Full Code Here

   * Create the file tree viewer.
   */
  private void createDirTree()
    {
    _viewer = new TreeViewer(_sashForm, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
    drillDownAdapter = new DrillDownAdapter(_viewer);
    _viewer.setContentProvider(new FileBrowseViewContentProvider(this, _fbparam));
    _viewer.setLabelProvider(new FileBrowseViewLabelProvider());
    _viewer.setSorter(new NameSorter());
    _viewer.setInput(getViewSite());
    makeActions();
View Full Code Here

   * Create the file tree viewer.
   */
  private void createDirTree()
    {
    _viewer = new TreeViewer(_sashForm, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
    drillDownAdapter = new DrillDownAdapter(_viewer);
    _viewer.setContentProvider(new FileBrowseViewContentProvider(this));
    _viewer.setLabelProvider(new FileBrowseViewLabelProvider());
    _viewer.setSorter(new NameSorter());
    _viewer.setInput(getViewSite());
    makeActions();
View Full Code Here

   * Create the file tree viewer.
   */
  private void createDirTree()
    {
    _viewer = new TreeViewer(_parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
    drillDownAdapter = new DrillDownAdapter(_viewer);
    _viewer.setContentProvider(new SearchViewContentProvider(this));
    _viewer.setLabelProvider(new DBDataViewLabelProvider());
    _viewer.setSorter(new NameSorter());
    _viewer.setInput(getViewSite());
    makeActions();
View Full Code Here

   * to create the viewer and initialize it.
   */
  public void createPartControl(Composite parent)
    {
    viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
    drillDownAdapter = new DrillDownAdapter(viewer);
    viewer.setContentProvider(new DBStructViewContentProvider(this));
    viewer.setLabelProvider(new DBStructViewLabelProvider());
    viewer.setSorter(new NameSorter());
    viewer.setInput(getViewSite());
    makeActions();
View Full Code Here

   * to create the viewer and initialize it.
   */
  public void createPartControl(Composite parent)
    {
    viewer = new TreeViewer(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL);
    drillDownAdapter = new DrillDownAdapter(viewer);
    viewer.setContentProvider(new DBDataViewContentProvider(this));
    viewer.setLabelProvider(new DBDataViewLabelProvider());
    viewer.setSorter(new NameSorter());
    viewer.setInput(getViewSite());
    makeActions();
View Full Code Here

      onSetActiveConfig(config);
      viewer.configure(config);

      treeManager.removeAll();
      if (config.hasDrillDown()) {
        DrillDownAdapter dd = new DrillDownAdapter(viewer
            .getTreeViewer()) {

         
          public void goBack() {
            super.goBack();
            updateTitle(viewer.getTreeViewer().getInput());
          }

         
          public void goHome() {
            super.goHome();
            updateTitle(viewer.getTreeViewer().getInput());
          }

         
          public void goInto(Object newInput) {
            super.goInto(newInput);
            updateTitle(viewer.getTreeViewer().getInput());
          }

        };
        dd.addNavigationActions(treeManager);
      }
      treeManager.update(true);
      treeManager.getControl().getParent().layout(true, true);
      treeManager.getControl().getParent().getParent().layout(true);
      viewerHolder.setRedraw(true);
View Full Code Here

TOP

Related Classes of org.eclipse.ui.part.DrillDownAdapter

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.