Package org.eclipse.php.internal.ui.preferences

Examples of org.eclipse.php.internal.ui.preferences.ScrolledCompositeImpl


  public void createControl(final Composite parent) {
    if (getLaunchConfigurationDialog().getMode().equals(
        ILaunchManager.RUN_MODE))
      setEnableDebugInfoOption(true);

    ScrolledCompositeImpl scrolledCompositeImpl = new ScrolledCompositeImpl(
        parent, SWT.V_SCROLL | SWT.H_SCROLL);
    final Composite mainComposite = new Composite(scrolledCompositeImpl,
        SWT.NONE);
    setControl(scrolledCompositeImpl);
    mainComposite.setFont(parent.getFont());
    final GridLayout layout = new GridLayout();
    layout.numColumns = 1;
    final GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
    mainComposite.setLayout(layout);
    mainComposite.setLayoutData(gridData);

    scrolledCompositeImpl.setContent(mainComposite);
    scrolledCompositeImpl.setLayout(layout);
    scrolledCompositeImpl.setFont(parent.getFont());

    createLocationComponent(mainComposite);

    if (enableFileSelection) {
      createArgumentComponent(mainComposite);
View Full Code Here


  /**
   * @see org.eclipse.debug.ui.ILaunchConfigurationTab#createControl(Composite)
   */
  public void createControl(Composite parent) {

    ScrolledCompositeImpl scrolledComposite = new ScrolledCompositeImpl(
        parent, SWT.V_SCROLL);
    Composite composite = new Composite(scrolledComposite, SWT.NONE);
    composite.setLayout(new GridLayout(1, false));

    createServerControl(composite);
    createFileComponent(composite);
    createURLControl(composite);
    createExtensionControls(composite);

    Dialog.applyDialogFont(composite);
    scrolledComposite.setContent(composite);
    Point size = composite.computeSize(SWT.DEFAULT, SWT.DEFAULT);
    scrolledComposite.setMinSize(size.x, size.y);

    PlatformUI.getWorkbench().getHelpSystem()
        .setHelp(parent, IPHPHelpContextIds.DEBUGGING_A_PHP_WEB_PAGE);
    setControl(scrolledComposite);
  }
View Full Code Here

    layout.marginWidth = 0;
    layout.numColumns = 2;

    PixelConverter conv = new PixelConverter(parent);

    ScrolledCompositeImpl scrolledCompositeImpl = new ScrolledCompositeImpl(
        parent, SWT.V_SCROLL | SWT.H_SCROLL);
    Composite composite = new Composite(scrolledCompositeImpl, SWT.NONE);
    composite.setLayout(layout);
    scrolledCompositeImpl.setContent(composite);

    scrolledCompositeImpl.setLayout(layout);
    scrolledCompositeImpl.setFont(parent.getFont());

    GridData data = new GridData(GridData.FILL_BOTH);
    data.widthHint = conv.convertWidthInCharsToPixels(50);
    Control listControl = fServersList.getListControl(composite);
    listControl.setLayoutData(data);

    Control buttonsControl = fServersList.getButtonBox(composite);
    buttonsControl.setLayoutData(new GridData(
        GridData.HORIZONTAL_ALIGN_FILL
            | GridData.VERTICAL_ALIGN_BEGINNING));

    addFiller(composite);

    Point size = composite.computeSize(SWT.DEFAULT, SWT.DEFAULT);
    scrolledCompositeImpl.setMinSize(size.x, size.y);

    return scrolledCompositeImpl;
  }
View Full Code Here

    setLayout(layout);
    setLayoutData(new GridData(GridData.FILL_BOTH));

    PixelConverter conv = new PixelConverter(this);

    ScrolledCompositeImpl scrolledCompositeImpl = new ScrolledCompositeImpl(
        this, SWT.V_SCROLL | SWT.H_SCROLL);
    scrolledCompositeImpl.setLayout(layout);
    scrolledCompositeImpl.setLayoutData(new GridData(GridData.FILL_BOTH));

    Composite composite = new Composite(scrolledCompositeImpl, SWT.NONE);
    layout = new GridLayout();
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    layout.numColumns = 2;
    composite.setLayout(layout);
    scrolledCompositeImpl.setContent(composite);
    scrolledCompositeImpl.setFont(getFont());

    GridData data = new GridData(GridData.FILL_BOTH);
    data.widthHint = conv.convertWidthInCharsToPixels(50);
    Control listControl = fMapList.getListControl(composite);
    listControl.setLayoutData(data);

    Control buttonsControl = fMapList.getButtonBox(composite);
    buttonsControl.setLayoutData(new GridData(
        GridData.HORIZONTAL_ALIGN_FILL
            | GridData.VERTICAL_ALIGN_BEGINNING));

    Point size = composite.computeSize(SWT.DEFAULT, SWT.DEFAULT);
    scrolledCompositeImpl.setMinSize(size.x, size.y);

    updateButtonsEnablement();
  }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.ui.preferences.ScrolledCompositeImpl

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.