@Override protected Control createContents(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(); layout.numColumns= 2; layout.marginWidth= 0; layout.marginHeight= 0; control.setLayout(layout); createFavoriteList(control); initialize(); scrolled.setContent(control); final Point size= control.computeSize(SWT.DEFAULT, SWT.DEFAULT); scrolled.setMinSize(size.x, size.y); Dialog.applyDialogFont(scrolled); return scrolled; }
@Override protected Control createContents(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(); layout.numColumns= 2; layout.marginWidth= 0; layout.marginHeight= 0; control.setLayout(layout); createFavoriteList(control); initialize(); scrolled.setContent(control); final Point size= control.computeSize(SWT.DEFAULT, SWT.DEFAULT); scrolled.setMinSize(size.x, size.y); Dialog.applyDialogFont(scrolled); return scrolled; }
protected Control createContents(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(); layout.numColumns= 2; layout.marginWidth= 0; layout.marginHeight= 0; control.setLayout(layout); createFavoriteList(control); initialize(); scrolled.setContent(control); final Point size= control.computeSize(SWT.DEFAULT, SWT.DEFAULT); scrolled.setMinSize(size.x, size.y); Dialog.applyDialogFont(scrolled); return scrolled; }
/** * Creates page for appearance preferences. * * @param parent the parent composite * @return the control for the preference page */ public Control createControl(Composite parent) { initializeDialogUnits(parent); ScrolledPageContent scrolled= new ScrolledPageContent(parent, SWT.H_SCROLL | SWT.V_SCROLL); scrolled.setExpandHorizontal(true); scrolled.setExpandVertical(true); Composite composite= new Composite(scrolled, SWT.NONE); GridLayout layout= new GridLayout(); layout.marginWidth= 0; layout.marginHeight= 0; composite.setLayout(layout); createHeader(composite); createAppearancePage(composite); scrolled.setContent(composite); final Point size= composite.computeSize(SWT.DEFAULT, SWT.DEFAULT); scrolled.setMinSize(size.x, size.y); return scrolled; }
/** * Creates page for appearance preferences. * * @param parent the parent composite * @return the control for the preference page */ @Override public Control createControl(Composite parent) { initializeDialogUnits(parent); ScrolledPageContent scrolled= new ScrolledPageContent(parent, SWT.H_SCROLL | SWT.V_SCROLL); scrolled.setExpandHorizontal(true); scrolled.setExpandVertical(true); Composite composite= new Composite(scrolled, SWT.NONE); GridLayout layout= new GridLayout(); layout.marginWidth= 0; layout.marginHeight= 0; composite.setLayout(layout); createHeader(composite); createAppearancePage(composite); scrolled.setContent(composite); final Point size= composite.computeSize(SWT.DEFAULT, SWT.DEFAULT); scrolled.setMinSize(size.x, size.y); return scrolled; }
/** * Creates page for appearance preferences. * * @param parent the parent composite * @return the control for the preference page */ @Override public Control createControl(Composite parent) { initializeDialogUnits(parent); ScrolledPageContent scrolled= new ScrolledPageContent(parent, SWT.H_SCROLL | SWT.V_SCROLL); scrolled.setExpandHorizontal(true); scrolled.setExpandVertical(true); Composite composite= new Composite(scrolled, SWT.NONE); GridLayout layout= new GridLayout(); layout.marginWidth= 0; layout.marginHeight= 0; composite.setLayout(layout); createHeader(composite); createAppearancePage(composite); scrolled.setContent(composite); final Point size= composite.computeSize(SWT.DEFAULT, SWT.DEFAULT); scrolled.setMinSize(size.x, size.y); return scrolled; }
public ScrolledPageContent(Composite parent, int style) { super(parent, style); setFont(parent.getFont()); fToolkit= JavaPlugin.getDefault().getDialogsFormToolkit(); setExpandHorizontal(true); setExpandVertical(true); Composite body= new Composite(this, SWT.NONE); body.setFont(parent.getFont()); setContent(body); }
public ScrolledPageContent(Composite parent, int style) { super(parent, style); setFont(parent.getFont()); fToolkit= JavaPlugin.getDefault().getDialogsFormToolkit(); setExpandHorizontal(true); setExpandVertical(true); Composite body= new Composite(this, SWT.NONE); body.setFont(parent.getFont()); setContent(body); }
protected Control createContents(Composite ancestor) { ScrolledPageContent scrolled= new ScrolledPageContent(ancestor, SWT.H_SCROLL | SWT.V_SCROLL); scrolled.setExpandHorizontal(true); scrolled.setExpandVertical(true); Control control= super.createContents(scrolled); scrolled.setContent(control); final Point size= control.computeSize(SWT.DEFAULT, SWT.DEFAULT); scrolled.setMinSize(size.x, size.y); return scrolled; }
public ScrolledPageContent(Composite parent, int style) { super(parent, style); setFont(parent.getFont()); fToolkit= JavaPlugin.getDefault().getDialogsFormToolkit(); setExpandHorizontal(true); setExpandVertical(true); Composite body= new Composite(this, SWT.NONE); body.setFont(parent.getFont()); setContent(body); }
@Override protected Control createContents(Composite ancestor) { ScrolledPageContent scrolled= new ScrolledPageContent(ancestor, SWT.H_SCROLL | SWT.V_SCROLL); scrolled.setExpandHorizontal(true); scrolled.setExpandVertical(true); Control control= super.createContents(scrolled); scrolled.setContent(control); final Point size= control.computeSize(SWT.DEFAULT, SWT.DEFAULT); scrolled.setMinSize(size.x, size.y); return scrolled; }
@Override protected Control createContents(Composite ancestor) { ScrolledPageContent scrolled= new ScrolledPageContent(ancestor, SWT.H_SCROLL | SWT.V_SCROLL); scrolled.setExpandHorizontal(true); scrolled.setExpandVertical(true); Control control= super.createContents(scrolled); scrolled.setContent(control); final Point size= control.computeSize(SWT.DEFAULT, SWT.DEFAULT); scrolled.setMinSize(size.x, size.y); return scrolled; }
protected Control createContents(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(); layout.marginHeight= 0; layout.marginWidth= 0; control.setLayout(layout); Composite composite; composite= createSubsection(control, PreferencesMessages.CodeAssistConfigurationBlock_insertionSection_title); addInsertionSection(composite); composite= createSubsection(control, PreferencesMessages.CodeAssistConfigurationBlock_sortingSection_title); addSortingSection(composite); composite= createSubsection(control, PreferencesMessages.CodeAssistConfigurationBlock_autoactivationSection_title); addAutoActivationSection(composite); initialize(); scrolled.setContent(control); final Point size= control.computeSize(SWT.DEFAULT, SWT.DEFAULT); scrolled.setMinSize(size.x, size.y); return scrolled; }
@Override protected Control createContents(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(); layout.marginHeight= 0; layout.marginWidth= 0; control.setLayout(layout); Composite composite; composite= createSubsection(control, PreferencesMessages.CodeAssistConfigurationBlock_insertionSection_title); addInsertionSection(composite); composite= createSubsection(control, PreferencesMessages.CodeAssistConfigurationBlock_sortingSection_title); addSortingSection(composite); composite= createSubsection(control, PreferencesMessages.CodeAssistConfigurationBlock_autoactivationSection_title); addAutoActivationSection(composite); initialize(); scrolled.setContent(control); final Point size= control.computeSize(SWT.DEFAULT, SWT.DEFAULT); scrolled.setMinSize(size.x, size.y); return scrolled; }
@Override protected Control createContents(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(); layout.marginHeight= 0; layout.marginWidth= 0; control.setLayout(layout); Composite composite; composite= createSubsection(control, PreferencesMessages.CodeAssistConfigurationBlock_insertionSection_title); addInsertionSection(composite); composite= createSubsection(control, PreferencesMessages.CodeAssistConfigurationBlock_sortingSection_title); addSortingSection(composite); composite= createSubsection(control, PreferencesMessages.CodeAssistConfigurationBlock_autoactivationSection_title); addAutoActivationSection(composite); initialize(); scrolled.setContent(control); final Point size= control.computeSize(SWT.DEFAULT, SWT.DEFAULT); scrolled.setMinSize(size.x, size.y); return scrolled; }
/** * Creates page for hover preferences. * * @param parent the parent composite * @return the control for the preference page */ public Control createControl(Composite parent) { initializeDialogUnits(parent); ScrolledPageContent scrolled= new ScrolledPageContent(parent, SWT.H_SCROLL | SWT.V_SCROLL); scrolled.setExpandHorizontal(true); scrolled.setExpandVertical(true); Control control= createSyntaxPage(scrolled); scrolled.setContent(control); final Point size= control.computeSize(SWT.DEFAULT, SWT.DEFAULT); scrolled.setMinSize(size.x, size.y); return scrolled; }
/** * Creates page for hover preferences. * * @param parent the parent composite * @return the control for the preference page */ @Override public Control createControl(Composite parent) { initializeDialogUnits(parent); ScrolledPageContent scrolled= new ScrolledPageContent(parent, SWT.H_SCROLL | SWT.V_SCROLL); scrolled.setExpandHorizontal(true); scrolled.setExpandVertical(true); Control control= createSyntaxPage(scrolled); scrolled.setContent(control); final Point size= control.computeSize(SWT.DEFAULT, SWT.DEFAULT); scrolled.setMinSize(size.x, size.y); return scrolled; }
/** * Creates page for hover preferences. * * @param parent the parent composite * @return the control for the preference page */ @Override public Control createControl(Composite parent) { initializeDialogUnits(parent); ScrolledPageContent scrolled= new ScrolledPageContent(parent, SWT.H_SCROLL | SWT.V_SCROLL); scrolled.setExpandHorizontal(true); scrolled.setExpandVertical(true); Control control= createSyntaxPage(scrolled); scrolled.setContent(control); final Point size= control.computeSize(SWT.DEFAULT, SWT.DEFAULT); scrolled.setMinSize(size.x, size.y); return scrolled; }
scrolled.setExpandHorizontal(true); scrolled.setExpandVertical(true);
@Override protected Control createContents(Composite parent) { ScrolledPageContent scrolled= new ScrolledPageContent(parent, SWT.H_SCROLL | SWT.V_SCROLL); scrolled.setExpandHorizontal(true); scrolled.setExpandVertical(true); Composite composite= new Composite(scrolled, SWT.NONE); int columns= 2; GridLayout layout= new GridLayout(columns, false); layout.marginWidth= 0; layout.marginHeight= 0; composite.setLayout(layout); createDefaultLabel(composite, columns); createDefaultViewer(composite, columns); createKeysLink(composite, columns); createFiller(composite, columns); createSeparateLabel(composite, columns); createSeparateSection(composite); createFiller(composite, columns); createParameterTimeoutControl(composite, columns); updateControls(); if (fModel.elements.size() > 0) { fDefaultViewer.getTable().select(0); fSeparateViewer.getTable().select(0); handleTableSelection(); } scrolled.setContent(composite); scrolled.setMinSize(composite.computeSize(SWT.DEFAULT, SWT.DEFAULT)); return scrolled; }