Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.ToolBarManager.createControl()


        return menu;
      }
    });

    dialogToolBar.add(savedSearches);
    dialogToolBar.createControl(topControlsContainer);
    dialogToolBar.getControl().setLayoutData(new GridData(SWT.END, SWT.CENTER, true, true));

    /* Container for Conditions */
    final Composite conditionsContainer = new Composite(container, SWT.NONE);
    conditionsContainer.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 1));
View Full Code Here


    ToolBarManager toolBarManager = new ToolBarManager();
    // TODO: should obtain the open perspective action from ActionFactory
    openPerspectiveAction = ActionFactory.OPEN_PERSPECTIVE_DIALOG
        .create(window);
    toolBarManager.add(openPerspectiveAction);
    ToolBar toolBar = toolBarManager.createControl(composite);
    toolBar.setBackground(bgCol);
    return composite;
  }
  /* (non-Javadoc)
   * @see org.eclipse.ui.application.WorkbenchWindowAdvisor#dispose()
View Full Code Here

    Table table = new Table(tableArea, SWT.BORDER | SWT.SINGLE | SWT.CHECK);

    GridDataFactory.fillDefaults().grab(true, true).applyTo(table);

    ToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT);
    ToolBar bar = toolBarManager.createControl(toolBarArea);
    GridDataFactory.fillDefaults().align(SWT.END, SWT.BEGINNING).grab(true, false).applyTo(bar);

    servicesViewer = new CheckboxTableViewer(table);

    servicesViewer.setContentProvider(new TreeContentProvider());
View Full Code Here

  }

  protected ToolBarManager createToolBarManager(Composite parent) {
    ToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT);
    ToolBar toolBar = toolBarManager.createControl(parent);

    // Adapt it to a form if a form tool kit is specified
    adaptControl(toolBar);

    GridDataFactory.fillDefaults().grab(false, false).align(SWT.BEGINNING, SWT.BEGINNING).applyTo(toolBar);
View Full Code Here

    rowLayout.marginBottom = 0;
    headerComposite.setLayout(rowLayout);
    headerComposite.setBackground(null);

    ToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT);
    toolBarManager.createControl(headerComposite);

    servicesViewer = new TableViewer(toolkit.createTable(client, SWT.MULTI));
    new ServiceViewerConfigurator().configureViewer(servicesViewer);

    servicesViewer.setContentProvider(new TreeContentProvider());
View Full Code Here

    rowLayout.marginBottom = 0;
    headerComposite.setLayout(rowLayout);
    headerComposite.setBackground(null);

    ToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT);
    toolBarManager.createControl(headerComposite);

    applicationsViewer = new TableViewer(toolkit.createTable(client, SWT.NONE));
    applicationsViewer.setContentProvider(new TreeContentProvider());
    applicationsViewer.setLabelProvider(new ServerLabelProvider() {
      @Override
View Full Code Here

    forward = action;
    action.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages()
        .getImageDescriptor(ISharedImages.IMG_TOOL_FORWARD));
    action.setText("Forward");
    man.add(action);
    man.createControl(toolComposite);
    Label l = new Label(toolComposite, SWT.NONE);
    l.setText("Url:");
    final Text ts = new Text(toolComposite, SWT.BORDER);
    ts.setLayoutData(GridDataFactory.fillDefaults().grab(true, false)
        .create());
View Full Code Here

      }
    });
    for (IBrowserConfigurationPart p : parts) {
      p.createPartControl(tman, this);
    }
    tman.createControl(toolComposite);
    browser = new Browser(parent, SWT.NONE);
    browser.setLayoutData(GridDataFactory.fillDefaults().grab(true, true)
        .create());
    BroswserEditorInput br = (BroswserEditorInput) getEditorInput();
    browser.setUrl(br.uri);
View Full Code Here

           *
           * public void run() { addView(false); }
           *
           * });
           */
          return tm.createControl(conComposite);
        }

      });
      viewHolder.addSelectionListener(new SelectionListener() {

View Full Code Here

           *
           * public void run() { addView(false); }
           *
           * });
           */
          return tm.createControl(conComposite);
        }

      });
      viewHolder.addSelectionListener(new SelectionListener() {

View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.