• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java TabbedPropertySheetWidgetFactory类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



TabbedPropertySheetWidgetFactory类属于org.eclipse.ui.views.properties.tabbed包,在下文中一共展示了TabbedPropertySheetWidgetFactory类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: createControls

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
	super.createControls(parent, tabbedPropertySheetPage);

	TabbedPropertySheetWidgetFactory factory = getWidgetFactory();
	Composite composite = factory.createFlatFormComposite(parent);
	FormData data;
	
	timeDurationText = createText(composite, factory, null);
	createLabel(composite, "Time duration", timeDurationText, factory); //$NON-NLS-1$
	
	timeDateText = createText(composite, factory, timeDurationText);
   createLabel(composite, "Time date (ISO 8601)", timeDateText, factory); //$NON-NLS-1$
   
   timeCycleText = createText(composite, factory, timeDateText);
   createLabel(composite, "Time cycle", timeCycleText, factory); //$NON-NLS-1$

}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:19,代码来源:PropertyTimerStartEventSection.java


示例2: createControls

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
	super.createControls(parent, tabbedPropertySheetPage);

	TabbedPropertySheetWidgetFactory factory = getWidgetFactory();
	Composite composite = factory.createFlatFormComposite(parent);
	
	toText = createControl(composite, null, false);
	createLabel(composite, "To:", toText); //$NON-NLS-1$
	fromText = createControl(composite, toText, false);
	createLabel(composite, "From:", fromText); //$NON-NLS-1$
	subjectText = createControl(composite, fromText, false);
	createLabel(composite, "Subject:", subjectText); //$NON-NLS-1$
	ccText = createControl(composite, subjectText, false);
	createLabel(composite, "Cc:", ccText); //$NON-NLS-1$
	bccText = createControl(composite, ccText, false);
	createLabel(composite, "Bcc:", bccText); //$NON-NLS-1$
	htmlText = createControl(composite, bccText, true);
	createLabel(composite, "Html text:", htmlText); //$NON-NLS-1$
	nonHtmlText = createControl(composite, htmlText, true);
	createLabel(composite, "Non-Html text:", nonHtmlText); //$NON-NLS-1$

}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:24,代码来源:PropertyMailTaskSection.java


示例3: createControls

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
	super.createControls(parent, tabbedPropertySheetPage);

	TabbedPropertySheetWidgetFactory factory = getWidgetFactory();
	Composite composite = factory.createFlatFormComposite(parent);
	
	timeDurationText = createText(composite, factory, null);
	createLabel(composite, "Time duration", timeDurationText, factory); //$NON-NLS-1$
	
	timeDateText = createText(composite, factory, timeDurationText);
   createLabel(composite, "Time date (ISO 8601)", timeDateText, factory); //$NON-NLS-1$
   
   timeCycleText = createText(composite, factory, timeDateText);
   createLabel(composite, "Time cycle", timeCycleText, factory); //$NON-NLS-1$
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:17,代码来源:PropertyIntermediateCatchTimerSection.java


示例4: createControls

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
	super.createControls(parent, tabbedPropertySheetPage);

	TabbedPropertySheetWidgetFactory factory = getWidgetFactory();
	Composite composite = factory.createFlatFormComposite(parent);
	
	toText = createControl(composite, null, false);
	createLabel(composite, "To:", toText); //$NON-NLS-1$
	toManyText = createControl(composite, toText, false);
	createLabel(composite, "To many:", toManyText); //$NON-NLS-1$
	fromText = createControl(composite, toManyText, false);
	createLabel(composite, "From:", fromText); //$NON-NLS-1$
	subjectText = createControl(composite, fromText, false);
	createLabel(composite, "Subject:", subjectText); //$NON-NLS-1$
	templateText = createControl(composite, subjectText, false);
	createLabel(composite, "Template:", templateText); //$NON-NLS-1$
	templateModelText = createControl(composite, templateText, false);
	createLabel(composite, "Template model:", templateModelText); //$NON-NLS-1$
	htmlText = createControl(composite, templateModelText, true);
	createLabel(composite, "Html:", htmlText); //$NON-NLS-1$
	nonHtmlText = createControl(composite, htmlText, true);
	createLabel(composite, "Text:", nonHtmlText); //$NON-NLS-1$
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:25,代码来源:PropertyAlfrescoMailTaskSection.java


示例5: createControls

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
	super.createControls(parent, tabbedPropertySheetPage);
	
	TabbedPropertySheetWidgetFactory factory = getWidgetFactory();
	final Composite composite = factory.createFlatFormComposite(parent);
	FillLayout compositeLayout = new FillLayout(SWT.VERTICAL | SWT.HORIZONTAL);
    compositeLayout.spacing = 3;
    composite.setLayout(compositeLayout);
	
    this.csmTreeEditor = new CsmTreeViewEditor(composite, SWT.NONE);
    
    if(highlightProvider != null){
    	highlightProvider.dispose();
    }
    highlightProvider = new HighlightDecorationProvider(this.csmTreeEditor.treeViewer);
}
 
开发者ID:CloudScale-Project,项目名称:Environment,代码行数:18,代码来源:TreeViewSection.java


示例6: createOtherPropertySection

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
@Override
protected Control createOtherPropertySection(Composite parent, TabbedPropertySheetWidgetFactory widgetFactory, InstallOptionsCommandHelper commandHelper)
{
    Composite parent2 = (Composite)super.createOtherPropertySection(parent, widgetFactory, commandHelper);
    Text text = createTextSection(parent2, InstallOptionsModel.PROPERTY_TEXT, widgetFactory, commandHelper);
    //Move it to top
    if(text.getParent().equals(parent2)) {
        text.moveAbove(null);
        Object o = text.getData(LABEL);
        if(o != null && o instanceof Control) {
            ((Control)o).moveAbove(text);
        }
    }
    else {
        Control c = text;
        while(!c.getParent().equals(parent2)) {
            c = c.getParent();
        }
        c.moveAbove(null);
    }
    createTextSection(parent2, InstallOptionsModel.PROPERTY_ROOT, widgetFactory, commandHelper);
    return parent2;
}
 
开发者ID:henrikor2,项目名称:eclipsensis,代码行数:24,代码来源:DirRequestPropertySectionCreator.java


示例7: createAppearancePropertySection

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
@Override
protected Control createAppearancePropertySection(Composite parent, TabbedPropertySheetWidgetFactory widgetFactory, InstallOptionsCommandHelper commandHelper)
{
    Composite composite = (Composite)super.createAppearancePropertySection(parent, widgetFactory, commandHelper);
    InstallOptionsCheckBox checkbox = (InstallOptionsCheckBox)getWidget();
    Integer[] stateData = checkbox.getStateData();
    String[] stateDisplay = checkbox.getStateDisplay();
    Map<Integer,String> map = new LinkedHashMap<Integer,String>();
    for (int i = 0; i < Math.min(stateData.length,stateDisplay.length); i++) {
        map.put(stateData[i], stateDisplay[i]);
    }
    Integer defaultValue = null;
    if(checkbox.getStateDefault() < map.size()) {
        defaultValue = stateData[checkbox.getStateDefault()];
    }
    createComboSection(composite, InstallOptionsModel.PROPERTY_STATE, map, defaultValue, widgetFactory, commandHelper);
    return composite;
}
 
开发者ID:henrikor2,项目名称:eclipsensis,代码行数:19,代码来源:CheckBoxPropertySectionCreator.java


示例8: createOtherPropertySection

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
@Override
protected Control createOtherPropertySection(Composite parent, TabbedPropertySheetWidgetFactory widgetFactory, InstallOptionsCommandHelper commandHelper)
{
    Composite parent2 = (Composite)super.createOtherPropertySection(parent, widgetFactory, commandHelper);
    Text text = createTextSection(parent2, InstallOptionsModel.PROPERTY_MINLEN, widgetFactory, commandHelper);
    if(text != null) {
        text.addVerifyListener(getNumberVerifyListener());
    }

    text = createTextSection(parent2, InstallOptionsModel.PROPERTY_MAXLEN, widgetFactory, commandHelper);
    if(text != null) {
        text.addVerifyListener(getNumberVerifyListener());
    }

    text = createTextSection(parent2, InstallOptionsModel.PROPERTY_VALIDATETEXT, widgetFactory, commandHelper, true);
    if(text != null) {
        GC gc = new GC(text);
        gc.setFont(JFaceResources.getDialogFont());
        FontMetrics fontMetrics = gc.getFontMetrics();
        gc.dispose();
        GridData data = (GridData)text.getLayoutData();
        data.heightHint = fontMetrics.getHeight()*2;
    }
    return parent2;
}
 
开发者ID:henrikor2,项目名称:eclipsensis,代码行数:26,代码来源:EditableElementPropertySectionCreator.java


示例9: createControls

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
  super.createControls(parent, tabbedPropertySheetPage);

  TabbedPropertySheetWidgetFactory factory = getWidgetFactory();
  Composite composite = factory.createFlatFormComposite(parent);

  nameField = createTextField("Name", composite, null);
  classField = createTextField("Ptolemy Class", composite, nameField);
}
 
开发者ID:eclipse,项目名称:triquetrum,代码行数:11,代码来源:TriqNamedObjSection.java


示例10: 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


示例11: createLabel

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
private CLabel createLabel(String text, Composite parent, TabbedPropertySheetWidgetFactory factory, Control control) {
  CLabel label = factory.createCLabel(parent, text);
  FormData data = new FormData();
  data.left = new FormAttachment(0, 0);
  data.right = new FormAttachment(control, -HSPACE);
  data.top = new FormAttachment(control, 0, SWT.CENTER);
  label.setLayoutData(data);
  return label;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:10,代码来源:PropertySodBodSection.java


示例12: 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


示例13: createLabel

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
private CLabel createLabel(String text, Composite parent, TabbedPropertySheetWidgetFactory factory, Control control) {
  CLabel label = factory.createCLabel(parent, text);
  FormData data = new FormData();
   data.left = new FormAttachment(0, 0);
   data.right = new FormAttachment(control, -HSPACE);
   data.top = new FormAttachment(control, 0, SWT.CENTER);
   label.setLayoutData(data);
   return label;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:10,代码来源:PropertyMultiInstanceSection.java


示例14: 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


示例15: createLabel

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
private CLabel createLabel(Composite parent, String text, Control control, TabbedPropertySheetWidgetFactory factory) {
  CLabel label = factory.createCLabel(parent, text); //$NON-NLS-1$
  FormData data = new FormData();
  data.left = new FormAttachment(0, 0);
  data.right = new FormAttachment(control, -HSPACE);
  data.top = new FormAttachment(control, 0, SWT.TOP);
  label.setLayoutData(data);
  return label;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:10,代码来源:PropertyTimerStartEventSection.java


示例16: createControls

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
	super.createControls(parent, tabbedPropertySheetPage);

	TabbedPropertySheetWidgetFactory factory = getWidgetFactory();
	Composite composite = factory.createFlatFormComposite(parent);
	
	initiatorText = createText(composite, factory, null);
	createLabel(composite, "Initiator", initiatorText, factory); //$NON-NLS-1$

	formKeyText = createText(composite, factory, initiatorText);
	createLabel(composite, "Form key:", formKeyText, factory); //$NON-NLS-1$
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:14,代码来源:PropertyStartEventSection.java


示例17: createControls

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
	super.createControls(parent, tabbedPropertySheetPage);

	TabbedPropertySheetWidgetFactory factory = getWidgetFactory();
	Composite composite = factory.createFlatFormComposite(parent);
	
	cancelActivityCombo = factory.createCCombo(composite, SWT.NONE);
	cancelActivityCombo.setItems((String[]) cancelFormats.toArray());
	FormData data = new FormData();
	data.left = new FormAttachment(0, 160);
	data.right = new FormAttachment(100, 0);
	data.top = new FormAttachment(0, VSPACE);
	cancelActivityCombo.setLayoutData(data);
	cancelActivityCombo.addFocusListener(listener);
	
	createLabel(composite, "Cancel activity", cancelActivityCombo, factory); //$NON-NLS-1$

	timeDurationText = createText(composite, factory, cancelActivityCombo);
	createLabel(composite, "Time duration", timeDurationText, factory); //$NON-NLS-1$
	
	timeDateText = createText(composite, factory, timeDurationText);
   createLabel(composite, "Time date (ISO 8601)", timeDateText, factory); //$NON-NLS-1$
   
   timeCycleText = createText(composite, factory, timeDateText);
   createLabel(composite, "Time cycle", timeCycleText, factory); //$NON-NLS-1$
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:28,代码来源:PropertyBoundaryTimerSection.java


示例18: createCCombo

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
private CCombo createCCombo(Composite parent, String[] values, TabbedPropertySheetWidgetFactory factory, Control top) {
  CCombo combo = factory.createCCombo(parent, SWT.NONE);
  combo.setItems(values);
  FormData data = new FormData();
  data.left = new FormAttachment(0, 160);
  data.right = new FormAttachment(100, 0);
  if(top == null) {
    data.top = new FormAttachment(0, VSPACE);
  } else {
    data.top = new FormAttachment(top, VSPACE);
  }
  combo.setLayoutData(data);
  combo.addFocusListener(listener);
  return combo;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:16,代码来源:PropertyUserTaskSection.java


示例19: 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


示例20: createLabel

import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory; //导入依赖的package包/类
private CLabel createLabel(Composite parent, String text, Control control, TabbedPropertySheetWidgetFactory factory) {
  CLabel label = factory.createCLabel(parent, text); //$NON-NLS-1$
   FormData data = new FormData();
   data.left = new FormAttachment(0, 0);
   data.right = new FormAttachment(control, -HSPACE);
   data.top = new FormAttachment(control, 0, SWT.TOP);
   label.setLayoutData(data);
   return label;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:10,代码来源:PropertyAlfrescoScriptTaskSection.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Transaction类代码示例发布时间:2022-05-23
下一篇:
Java Poly1305KeyGenerator类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap