Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.ControlContribution


    form.setToolTipText(commitName);
    getToolkit().decorateFormHeading(form.getForm());

    IToolBarManager toolbar = form.getToolBarManager();

    ControlContribution repositoryLabelControl = new ControlContribution(
        "repositoryLabel") { //$NON-NLS-1$
      @Override
      protected Control createControl(Composite parent) {
        FormToolkit toolkit = getHeaderForm().getToolkit();
        Composite composite = toolkit.createComposite(parent);
View Full Code Here


        openShapeAction.setMapPane(mapPane);
        openCoverageAction.setMapPane(mapPane);

        StatusLineManager statusLineManager = getStatusLineManager();
        if (statusLineManager != null) {
            IContributionItem filler = new ControlContribution("org.geotools.swt.SwtMapFrame.ID"){
                protected Control createControl( Composite parent ) {
                    Label almostParent = new Label(parent, SWT.NONE);
                    StatusLineLayoutData statusLineLayoutData = new StatusLineLayoutData();
                    statusLineLayoutData.widthHint = 1;
                    statusLineLayoutData.heightHint = 45;
View Full Code Here

    };
    vaction.setChecked(false);
    vaction.setToolTipText("Vertical orientation");
    vaction.setImageDescriptor(ExamplesPlugin.getDefault()
        .getImageRegistry().getDescriptor(ExamplesPlugin.IMG_VERTICAL));
    ControlContribution save = new ControlContribution("save") {
      protected Control createControl(Composite parent) {
        Button saveButton = new Button(parent, SWT.PUSH);
        saveButton.setText("Save");
        return saveButton;
      }
View Full Code Here

      vaction.setChecked(false);
      vaction.setToolTipText("Vertical orientation");
      vaction.setImageDescriptor(ExamplesPlugin.getDefault()
          .getImageRegistry().getDescriptor(
              ExamplesPlugin.IMG_VERTICAL));
      ControlContribution save = new ControlContribution("save") {
        protected Control createControl(Composite parent) {
          Button saveButton = new Button(parent, SWT.PUSH);
          saveButton.setText("Save");
          return saveButton;
        }
View Full Code Here

      manager.add(new FilterJobAction("Ignore failed builds", "Do not report build errors for this project", j.getName()));
    }
  }

  private void fillLocalToolBar(IToolBarManager manager) {
    ControlContribution nameControlContribution = new ControlContribution("contribution_id") {
      protected Control createControl(Composite parent) {      
        nameText = new Text(parent, SWT.BORDER);

        nameText.addModifyListener(new ModifyListener() {
          public void modifyText(org.eclipse.swt.events.ModifyEvent e) {         
View Full Code Here

TOP

Related Classes of org.eclipse.jface.action.ControlContribution

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.