本文整理汇总了Java中org.eclipse.ui.forms.widgets.FormToolkit.createFormText方法的典型用法代码示例。如果您正苦于以下问题:Java FormToolkit.createFormText方法的具体用法?Java FormToolkit.createFormText怎么用?Java FormToolkit.createFormText使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.ui.forms.widgets.FormToolkit
的用法示例。
在下文中一共展示了FormToolkit.createFormText方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createModelFormContent
import org.eclipse.ui.forms.widgets.FormToolkit; //导入方法依赖的package包/类
@Override
protected void createModelFormContent(IManagedForm managedForm, Composite client) {
FormToolkit toolkit = managedForm.getToolkit();
_ScrolledFormText = new ScrolledFormText(client, false);
_ScrolledFormText.setExpandHorizontal(true);
toolkit.adapt(_ScrolledFormText, false, false);
_JmxDocFormText = toolkit.createFormText(_ScrolledFormText, true);
_ScrolledFormText.setFormText(_JmxDocFormText);
JmxDocFormText.initFormText(_JmxDocFormText);
FormData scrolledFormTextFormData = new FormData();
scrolledFormTextFormData.top = new FormAttachment(0, 0);
scrolledFormTextFormData.left = new FormAttachment(0, 0);
scrolledFormTextFormData.right = new FormAttachment(100, 0);
scrolledFormTextFormData.bottom = new FormAttachment(100, 0);
_ScrolledFormText.setLayoutData(scrolledFormTextFormData);
}
示例2: createDetailSection
import org.eclipse.ui.forms.widgets.FormToolkit; //导入方法依赖的package包/类
@Override
protected Section createDetailSection(ScrolledForm form, Composite client, FormToolkit toolkit) {
Section section = createSection(form, client, toolkit, DETAIL_SECTION_TITLE, JmxActivator
.getManagedImage(JmxActivator.IMAGE_KEY_OBJECT_JMX_DOC));
Composite sectionClient = createSectionClient(section, toolkit);
_JmxDocFormText = toolkit.createFormText(sectionClient, false);
JmxDocFormText.initFormText(_JmxDocFormText);
FormData jmxdocFormTextFormData = new FormData();
jmxdocFormTextFormData.top = new FormAttachment(0, 0);
jmxdocFormTextFormData.left = new FormAttachment(0, 0);
_JmxDocFormText.setLayoutData(jmxdocFormTextFormData);
GridData detailSectionGridData = new GridData(GridData.FILL_HORIZONTAL);
section.setLayoutData(detailSectionGridData);
return section;
}