Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Composite.pack()


    iconColumn.setText("Column 2");
    // iconColumn.setMoveable(true);
    keysLayout.setColumnData(iconColumn, new ColumnWeightData(1, 20));

    reload();
    tableContainer.pack();

    _lineDragHandler = new BindingsDragHandler(this);

    JavaCore.addElementChangedListener(this, ElementChangedEvent.POST_CHANGE);
  }
View Full Code Here


      createLanguageControls(container);
     
      // then create the condition text area
      createConditionControls(container);
     
      container.pack();
     
    prepareContextMenu();
     
      return area;
  }
View Full Code Here

      this.imageViewer.setLabelProvider(imageContentProvider);
           
      this.progressBar = new ProgressBar(container, SWT.BORDER | SWT.SMOOTH | SWT.HORIZONTAL | SWT.INDETERMINATE);
      this.progressBar.setLayoutData(new GridData(SWT.FILL, SWT.BOTTOM, true, true, 3, 1));
     
      container.pack();
     
      this.progressBar.setVisible(false);
     
      return area;
  }
View Full Code Here

        public void modifyText(ModifyEvent e) {
          validate();
        }
      });
     
      container.pack();
     
      return area;
    }
   
    /* (non-Javadoc)
 
View Full Code Here

      Label combinerLabel = new Label(panel, SWT.NONE);
      combinerLabel.setText("Combiner");
      combinerClass = new Text(panel, SWT.SINGLE | SWT.BORDER);
      createRow(parent, panel, combinerClass);

      panel.pack();
      setControl(panel);
    }

    private void createRow(final Composite parent, Composite panel,
        final Text text) {
View Full Code Here

    createMessageAndPersonArea(sashForm);
    filesSection = createFileSection(sashForm);
    sashForm.setWeights(new int[] { 50, 50 });

    applyDialogFont(container);
    container.pack();
    commitText.setFocus();
    Image titleImage = UIIcons.WIZBAN_CONNECT_REPO.createImage();
    UIUtils.hookDisposal(parent, titleImage);
    setTitleImage(titleImage);
    setTitle(UIText.CommitDialog_Title);
View Full Code Here

  // init values
  initializeValues();

  // font = null;
  Composite contents = new Composite(parent, SWT.NULL);
  contents.pack(true);
  return contents;
}

/**
* Utility method that creates a label instance and sets the default layout
View Full Code Here

    embeddedEditor = embeddedEditorFactory.newEditor(editedResourceProvider).readOnly().withParent(composite);
    embeddedEditor.createPartialEditor();
    configuration.getHighlightingHelper().install(embeddedEditor.getConfiguration(), embeddedEditor.getViewer());
    embeddedEditor.getViewer().getControl().setFont(new Font(Display.getDefault(), FONT_NAME, FONT_SIZE, SWT.NORMAL));
    embeddedEditor.getDocument().set(content);
    composite.pack();
    return composite;
  }
 
  @Override
  protected Control createContents(Composite parent) {
View Full Code Here

        treeViewer.setSelection(new StructuredSelection(treeViewer.getExpandedElements()[0]));
    }

    public void createControl(Composite composite) {
        Composite main = createMainComp(composite);
        main.pack();
        this.setControl(main);
    }

    private ComboViewer createComboViewer(Composite comboComp) {
        ComboViewer v = new ComboViewer(comboComp);
View Full Code Here

        treeViewer.setSelection(new StructuredSelection(treeViewer.getExpandedElements()[0]));
    }

    public void createControl(Composite composite) {
        Composite main = createMainComp(composite);
        main.pack();
        this.setControl(main);
    }

    private ComboViewer createComboViewer(Composite comboComp) {
        ComboViewer v = new ComboViewer(comboComp);
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.