本文整理匯總了Java中org.eclipse.ui.forms.widgets.ScrolledForm.getForm方法的典型用法代碼示例。如果您正苦於以下問題:Java ScrolledForm.getForm方法的具體用法?Java ScrolledForm.getForm怎麽用?Java ScrolledForm.getForm使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.ui.forms.widgets.ScrolledForm
的用法示例。
在下文中一共展示了ScrolledForm.getForm方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: updateTitle
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
protected void updateTitle() {
M model = getModel();
if (model == null) {
return;
}
setPartName(getPartName(model));
setTitleToolTip(getTitleToolTip(model));
setTitleImage(getTitleImage(model));
IManagedForm headerForm = getHeaderForm();
if (headerForm != null) {
ScrolledForm scrolledForm = headerForm.getForm();
Form form = scrolledForm.getForm();
form.setText(getFormText(model));
form.setImage(getFormImage(model));
}
}
示例2: createFormContent
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
/**
* @see org.eclipse.ui.forms.editor.FormPage#createFormContent(org.eclipse.ui.forms.IManagedForm)
*/
@Override
protected void createFormContent(final IManagedForm managedForm) {
final FormToolkit toolkit = managedForm.getToolkit();
final ScrolledForm scrolledForm = managedForm.getForm();
scrolledForm.setText(Messages.GeneratorEntryFormPage_formPageHeaderPrefix + getStatechartName());
final Form form = scrolledForm.getForm();
toolkit.decorateFormHeading(form);
final IToolBarManager toolBarManager = form.getToolBarManager();
toolBarManager.add(createGenerateAction());
form.updateToolBar();
final Composite body = scrolledForm.getBody();
body.setLayout(new TableWrapLayout());
createSections(toolkit, body);
startListeningToModelChanges();
}
示例3: createFigure
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
* createFigure(org.eclipse.swt.widgets.Composite, org.eclipse.ui.forms.widgets.FormToolkit)
* @generated
*/
public Composite createFigure(final Composite parent, final FormToolkit widgetFactory) {
ScrolledForm scrolledForm = widgetFactory.createScrolledForm(parent);
Form form = scrolledForm.getForm();
view = form.getBody();
GridLayout layout = new GridLayout();
layout.numColumns = 3;
view.setLayout(layout);
createControls(widgetFactory, view);
return scrolledForm;
}
示例4: createFigure
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
* createFigure(org.eclipse.swt.widgets.Composite, org.eclipse.ui.forms.widgets.FormToolkit)
*
*/
public Composite createFigure(final Composite parent, final FormToolkit widgetFactory) {
ScrolledForm scrolledForm = widgetFactory.createScrolledForm(parent);
Form form = scrolledForm.getForm();
view = form.getBody();
GridLayout layout = new GridLayout();
layout.numColumns = 3;
view.setLayout(layout);
createControls(widgetFactory, view);
return scrolledForm;
}
示例5: createFigure
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
/**
* {@inheritDoc}
*
* @see org.eclipse.emf.eef.runtime.api.parts.IFormPropertiesEditionPart#
* createFigure(org.eclipse.swt.widgets.Composite,
* org.eclipse.ui.forms.widgets.FormToolkit)
*
*/
public Composite createFigure(final Composite parent, final FormToolkit widgetFactory) {
ScrolledForm scrolledForm = widgetFactory.createScrolledForm(parent);
Form form = scrolledForm.getForm();
view = form.getBody();
GridLayout layout = new GridLayout();
layout.numColumns = 3;
view.setLayout(layout);
createControls(widgetFactory, view);
return scrolledForm;
}
示例6: populateTitleComposite
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
protected void populateTitleComposite(FormToolkit toolkit, ScrolledForm sform, Composite titleComposite) {
imageLabel = toolkit.createLabel(titleComposite, "");
Form form = sform.getForm();
textLabel = toolkit.createLabel(titleComposite, "");
textLabel.setFont(form.getFont());
textLabel.setForeground(form.getForeground());
}
示例7: populateTitleComposite
import org.eclipse.ui.forms.widgets.ScrolledForm; //導入方法依賴的package包/類
protected void populateTitleComposite(FormToolkit toolkit, ScrolledForm sform, Composite titleComposite) {
imageLabel = toolkit.createLabel(titleComposite, "");
Form form = sform.getForm();
textLabel = toolkit.createLabel(titleComposite, "");
textLabel.setFont(form.getFont());
textLabel.setForeground(form.getForeground());
lockedLabel = toolkit.createLabel(titleComposite, "");
}