本文整理汇总了Java中org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory.createComposite方法的典型用法代码示例。如果您正苦于以下问题:Java TabbedPropertySheetWidgetFactory.createComposite方法的具体用法?Java TabbedPropertySheetWidgetFactory.createComposite怎么用?Java TabbedPropertySheetWidgetFactory.createComposite使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory
的用法示例。
在下文中一共展示了TabbedPropertySheetWidgetFactory.createComposite方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createAppearancePropertySection
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入方法依赖的package包/类
protected Control createAppearancePropertySection(Composite parent, TabbedPropertySheetWidgetFactory widgetFactory, InstallOptionsCommandHelper commandHelper)
{
Composite composite = widgetFactory.createComposite(parent);
GridLayout layout = new GridLayout(2,false);
layout.marginWidth = layout.marginHeight = 0;
composite.setLayout(layout);
return composite;
}
示例2: createOtherPropertySection
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入方法依赖的package包/类
protected Control createOtherPropertySection(Composite parent, TabbedPropertySheetWidgetFactory widgetFactory, InstallOptionsCommandHelper commandHelper)
{
Composite composite = widgetFactory.createComposite(parent);
GridLayout layout = new GridLayout(2,false);
layout.marginWidth = layout.marginHeight = 0;
composite.setLayout(layout);
return composite;
}
示例3: createControls
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入方法依赖的package包/类
/**
* @wbp.parser.entryPoint
*/
@Override
public void createControls(final Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
super.createControls(parent, tabbedPropertySheetPage);
TabbedPropertySheetWidgetFactory factory = getWidgetFactory();
Composite composite = factory.createFlatFormComposite(parent);
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 2;
composite.setLayout(gridLayout);
CLabel label = factory.createCLabel(composite, "Name:"); //$NON-NLS-1$
label.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, false, false));
nameText = factory.createText(composite, ""); //$NON-NLS-1$
nameText.setEditable(true);
nameText.setLayoutData(new GridData(GridData.FILL, GridData.CENTER, true, false));
editorsComposite = factory.createComposite(composite);
GridData gd = new GridData(GridData.FILL, GridData.FILL, true, true, 2, 1);
editorsComposite.setLayoutData(gd);
FillLayout fillLayout = new FillLayout();
fillLayout.type = SWT.HORIZONTAL;
editorsComposite.setLayout(fillLayout);
FormToolkit toolkit = new FormToolkit(parent.getDisplay());
// Provided interfaces section
{
sectionProInterfaces = factory.createSection(editorsComposite, Section.DESCRIPTION | Section.TITLE_BAR);
sectionProInterfaces.setText("Provided interfaces"); //$NON-NLS-1$
sectionProInterfaces.setDescription("Provided OperationInterface operations.");
sectionProInterfaces.marginHeight = 3;
sectionProInterfaces.marginWidth = 3;
// Composite for storing the data
this.proInterfaceComposite = new ProvidedInterfaceComposite(sectionProInterfaces);
toolkit.paintBordersFor(this.proInterfaceComposite);
sectionProInterfaces.setClient(proInterfaceComposite);
}
// Required interfaces section
{
sectionReqInterfaces = factory.createSection(editorsComposite, Section.DESCRIPTION | Section.TITLE_BAR);
sectionReqInterfaces.setText("Required interfaces"); //$NON-NLS-1$
sectionReqInterfaces.setDescription("Provided OperationInterface operations.");
sectionReqInterfaces.marginHeight = 3;
sectionReqInterfaces.marginWidth = 3;
// Composite for storing the data
this.reqInterfaceComposite = new RequiredInterfaceComposite(sectionReqInterfaces);
toolkit.paintBordersFor(this.reqInterfaceComposite);
sectionReqInterfaces.setClient(reqInterfaceComposite);
}
composite.pack();
}