当前位置: 首页>>代码示例>>Java>>正文


Java TabbedPropertySheetWidgetFactory.createText方法代码示例

本文整理汇总了Java中org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory.createText方法的典型用法代码示例。如果您正苦于以下问题:Java TabbedPropertySheetWidgetFactory.createText方法的具体用法?Java TabbedPropertySheetWidgetFactory.createText怎么用?Java TabbedPropertySheetWidgetFactory.createText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory的用法示例。


在下文中一共展示了TabbedPropertySheetWidgetFactory.createText方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createText

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入方法依赖的package包/类
private Text createText(Composite parent, TabbedPropertySheetWidgetFactory factory, Control top) {
  Text text = factory.createText(parent, ""); //$NON-NLS-1$
  FormData data = new FormData();
  data.left = new FormAttachment(0, 220);
  data.right = new FormAttachment(70, 0);
  if(top == null) {
    data.top = new FormAttachment(0, VSPACE);
  } else {
    data.top = new FormAttachment(top, VSPACE);
  }
  text.setLayoutData(data);
  text.addFocusListener(listener);
  return text;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:15,代码来源:PropertySodBodSection.java

示例2: createText

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入方法依赖的package包/类
private Text createText(Composite parent, TabbedPropertySheetWidgetFactory factory, Control top) {
  Text text = factory.createText(parent, ""); //$NON-NLS-1$
  FormData data = new FormData();
   data.left = new FormAttachment(0, 160);
   data.right = new FormAttachment(100, -HSPACE);
   if(top == null) {
     data.top = new FormAttachment(0, VSPACE);
   } else {
     data.top = new FormAttachment(top, VSPACE);
   }
   text.setLayoutData(data);
   text.addFocusListener(listener);
   return text;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:15,代码来源:PropertyMultiInstanceSection.java

示例3: createText

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入方法依赖的package包/类
private Text createText(Composite parent, TabbedPropertySheetWidgetFactory factory, Control top) {
  Text text = factory.createText(parent, ""); //$NON-NLS-1$
  FormData data = new FormData();
  data.left = new FormAttachment(0, 160);
  data.right = new FormAttachment(100, -HSPACE);
  if(top == null) {
    data.top = new FormAttachment(0, VSPACE);
  } else {
    data.top = new FormAttachment(top, VSPACE);
  }
  text.setLayoutData(data);
  text.addFocusListener(listener);
  return text;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:15,代码来源:PropertyTimerStartEventSection.java

示例4: createText

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入方法依赖的package包/类
private Text createText(Composite parent, TabbedPropertySheetWidgetFactory factory, Control top) {
  Text text = factory.createText(parent, ""); //$NON-NLS-1$
  FormData data = new FormData();
  data.left = new FormAttachment(0, 160);
  data.right = new FormAttachment(100, -HSPACE);
  data.top = new FormAttachment(top, VSPACE);
  text.setLayoutData(data);
  text.addFocusListener(listener);
  return text;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:11,代码来源:PropertyAlfrescoScriptTaskSection.java

示例5: 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();
}
 
开发者ID:CloudScale-Project,项目名称:Environment,代码行数:64,代码来源:BasicSection.java


注:本文中的org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory.createText方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。