Examples of ScrolledPageContent


Examples of org.eclipse.php.internal.ui.util.ScrolledPageContent

    overlayKeys.toArray(keys);
    return keys;
  }

  public Control createControl(Composite parent) {
    ScrolledPageContent scrolled = new ScrolledPageContent(parent,
        SWT.H_SCROLL | SWT.V_SCROLL);
    scrolled.setExpandHorizontal(true);
    scrolled.setExpandVertical(true);

    Composite control = new Composite(scrolled, SWT.NONE);
    GridLayout layout = new GridLayout();
    control.setLayout(layout);

    Composite autoCloseComposite;
    autoCloseComposite = createSubsection(control,
        PHPUIMessages.typingPage_autoClose_title);
    addAutoclosingSection(autoCloseComposite);

    Composite smartPasteSection;
    smartPasteSection = createSubsection(control,
        PHPUIMessages.typingPage_smartPaste_title);
    addSmartPasteSection(smartPasteSection);

    Composite smartTabSection;
    smartTabSection = createSubsection(control,
        PHPUIMessages.typingPage_smartTab_title);
    addSmartTabSection(smartTabSection);

    scrolled.setContent(control);
    final Point size = control.computeSize(SWT.DEFAULT, SWT.DEFAULT);
    scrolled.setMinSize(size.x, size.y);
    return scrolled;

  }
View Full Code Here

Examples of org.eclipse.php.internal.ui.util.ScrolledPageContent

    return checkBox;
  }

  private void makeScrollableCompositeAware(Control control) {
    ScrolledPageContent parentScrolledComposite = getParentScrolledComposite(control);
    if (parentScrolledComposite != null) {
      parentScrolledComposite.adaptChild(control);
    }
  }
View Full Code Here

Examples of org.eclipse.php.internal.ui.util.ScrolledPageContent

    }
    return null;
  }

  private void makeScrollableCompositeAware(Control control) {
    ScrolledPageContent parentScrolledComposite = getParentScrolledComposite(control);
    if (parentScrolledComposite != null) {
      parentScrolledComposite.adaptChild(control);
    }
  }
View Full Code Here

Examples of org.eclipse.php.internal.ui.util.ScrolledPageContent

    makeScrollableCompositeAware(excomposite);
    return excomposite;
  }

  protected final void expandedStateChanged(ExpandableComposite expandable) {
    ScrolledPageContent parentScrolledComposite = getParentScrolledComposite(expandable);
    if (parentScrolledComposite != null) {
      parentScrolledComposite.reflow(true);
    }
  }
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent

  }

  private Composite createValidationSection(Composite page) {
    int nColumns = 3;

    final ScrolledPageContent spContent = new ScrolledPageContent(page);

    Composite composite = spContent.getBody();

    GridLayout layout = new GridLayout(nColumns, false);
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    composite.setLayout(layout);
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent

    excomposite.setClient(inner);
    return inner;
  }

  protected final void expandedStateChanged(ExpandableComposite expandable) {
    ScrolledPageContent parentScrolledComposite = getParentScrolledComposite(expandable);
    if (parentScrolledComposite != null) {
      parentScrolledComposite.reflow(true);
    }
  }
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent

      parentScrolledComposite.reflow(true);
    }
  }

  private void makeScrollableCompositeAware(Control control) {
    ScrolledPageContent parentScrolledComposite = getParentScrolledComposite(control);
    if (parentScrolledComposite != null) {
      parentScrolledComposite.adaptChild(control);
    }
  }
View Full Code Here

Examples of org.eclipse.wst.sse.ui.internal.preferences.ui.ScrolledPageContent

  }

  private Composite createValidationSection(Composite page) {
    int nColumns = 3;

    final ScrolledPageContent spContent = new ScrolledPageContent(page);

    Composite composite = spContent.getBody();

    GridLayout layout = new GridLayout(nColumns, false);
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    composite.setLayout(layout);
View Full Code Here

Examples of org.erlide.ui.prefs.plugin.internal.ScrolledPageContent

    private final List<Button> buttons = new ArrayList<Button>();
    private final List<Button> autoNLButtons = new ArrayList<Button>();

    @Override
    protected Control createContents(final Composite parent) {
        final ScrolledPageContent scrolled = new ScrolledPageContent(parent, SWT.H_SCROLL
                | SWT.V_SCROLL);
        scrolled.setExpandHorizontal(true);
        scrolled.setExpandVertical(true);

        final Composite control = new Composite(scrolled, SWT.NONE);
        final GridLayout layout = new GridLayout();
        layout.marginWidth = 0;
        layout.marginHeight = 0;
        control.setLayout(layout);

        Composite composite;

        composite = createSubsection(control,
                ErlEditorMessages.SmartTypingPrefs_AutomaticallyClose);
        addAutoclosingSection(composite);

        // composite = createSubsection(control,"Automove");
        // addAutopositionSection(composite);

        // composite = createSubsection(control, "Tabs");
        // addTabSection(composite);

        composite = createSubsection(control,
                ErlEditorMessages.SmartTypingPrefs_WhenPasting);
        addPasteSection(composite);

        // composite = createSubsection(control, "strings");
        // addStringsSection(composite);

        composite = createSubsection(control,
                ErlEditorMessages.SmartTypingPrefs_autoNewLine);
        addAutoNLSection(composite);

        scrolled.setContent(control);
        final Point size = control.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        scrolled.setMinSize(size.x, size.y);

        setToPreferences();

        return scrolled;
    }
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.