本文整理汇总了Java中org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants类的典型用法代码示例。如果您正苦于以下问题:Java ITabbedPropertyConstants类的具体用法?Java ITabbedPropertyConstants怎么用?Java ITabbedPropertyConstants使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ITabbedPropertyConstants类属于org.eclipse.ui.views.properties.tabbed包,在下文中一共展示了ITabbedPropertyConstants类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: createControls
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
/**
* @see org.eclipse.ui.views.properties.tabbed.ITabbedPropertySection#createControls(org.eclipse.swt.widgets.Composite,
* org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)
*/
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
super.createControls(parent, tabbedPropertySheetPage);
parentComposite = getWidgetFactory().createFlatFormComposite(parent);
FormData data;
text = createText(parentComposite, ""); //$NON-NLS-1$
CLabel nameLabel = getWidgetFactory().createCLabel(parentComposite, getLabelText());
data = new FormData();
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(text, -ITabbedPropertyConstants.HSPACE);
data.top = new FormAttachment(text, 0, SWT.CENTER);
nameLabel.setLayoutData(data);
listener = new TextChangeHelper() {
public void textChanged(Control control) {
handleTextModified();
}
};
listener.startListeningTo(text);
if (fireChangeOnEnter())
listener.startListeningForEnter(text);
}
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:29,代码来源:AbstractTextPropertySection.java
示例2: createNameLabel
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
private void createNameLabel(Composite parent) {
this.nameLabel = getWidgetFactory().createCLabel(parent, "列名:");
FormData data = new FormData();
data.top = new FormAttachment(nameText, 0, SWT.CENTER);
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(nameText, -ITabbedPropertyConstants.HSPACE);
this.nameLabel.setLayoutData(data);
}
开发者ID:bsteker,项目名称:bdf2,代码行数:9,代码来源:TableSection.java
示例3: createLabelLabel
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
private void createLabelLabel(Composite parent) {
this.labelLabel = getWidgetFactory().createCLabel(parent, "名称:");
FormData data = new FormData();
data.top = new FormAttachment(labelText, 0, SWT.CENTER);
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(labelText, -ITabbedPropertyConstants.HSPACE);
this.labelLabel.setLayoutData(data);
}
开发者ID:bsteker,项目名称:bdf2,代码行数:9,代码来源:TableSection.java
示例4: createCommentLabel
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
private void createCommentLabel(Composite parent) {
this.commentLabel = getWidgetFactory().createCLabel(parent, "备注:");
FormData data = new FormData();
data.top = new FormAttachment(commentText, 0, SWT.CENTER);
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(commentText, -ITabbedPropertyConstants.HSPACE);
this.commentLabel.setLayoutData(data);
}
开发者ID:bsteker,项目名称:bdf2,代码行数:9,代码来源:TableSection.java
示例5: createConstraintNameLabel
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
private void createConstraintNameLabel(Composite parent) {
this.constraintNameLabel = getWidgetFactory().createCLabel(parent, "约束名称:");
FormData data = new FormData();
data.top = new FormAttachment(constraintNameText, 0, SWT.CENTER);
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(constraintNameText, -ITabbedPropertyConstants.HSPACE);
this.constraintNameLabel.setLayoutData(data);
}
开发者ID:bsteker,项目名称:bdf2,代码行数:9,代码来源:ConnectionSection.java
示例6: createPkColumnNameLabel
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
private void createPkColumnNameLabel(Composite parent) {
this.pkColumnNameLabel = getWidgetFactory().createCLabel(parent, "主键名称:");
FormData data = new FormData();
data.top = new FormAttachment(pkColumnNameText, 0, SWT.CENTER);
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(pkColumnNameText, -ITabbedPropertyConstants.HSPACE);
this.pkColumnNameLabel.setLayoutData(data);
}
开发者ID:bsteker,项目名称:bdf2,代码行数:9,代码来源:ConnectionSection.java
示例7: createFkColumnNameLabel
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
private void createFkColumnNameLabel(Composite parent) {
this.fkColumnNameLabel = getWidgetFactory().createCLabel(parent, "外键名称:");
FormData data = new FormData();
data.top = new FormAttachment(fkColumnNameText, 0, SWT.CENTER);
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(fkColumnNameText, -ITabbedPropertyConstants.HSPACE);
this.fkColumnNameLabel.setLayoutData(data);
}
开发者ID:bsteker,项目名称:bdf2,代码行数:9,代码来源:ConnectionSection.java
示例8: createTypeLabel
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
private void createTypeLabel(Composite parent) {
this.typeLabel = getWidgetFactory().createCLabel(parent, "对应关系:");
FormData data = new FormData();
data.top = new FormAttachment(typeCombo, 0, SWT.CENTER);
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(typeCombo, -ITabbedPropertyConstants.HSPACE);
this.typeLabel.setLayoutData(data);
}
开发者ID:bsteker,项目名称:bdf2,代码行数:9,代码来源:ConnectionSection.java
示例9: createTypeLabel
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
private void createTypeLabel(Composite parent) {
this.typeLabel = getWidgetFactory().createCLabel(parent, "类型:");
FormData data = new FormData();
data.top = new FormAttachment(typeCombo, 0, SWT.CENTER);
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(typeCombo, -ITabbedPropertyConstants.HSPACE);
this.typeLabel.setLayoutData(data);
}
开发者ID:bsteker,项目名称:bdf2,代码行数:9,代码来源:ColumnSection.java
示例10: createLengthLabel
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
private void createLengthLabel(Composite parent) {
this.lengthLabel = getWidgetFactory().createCLabel(parent, "长度:");
FormData data = new FormData();
data.top = new FormAttachment(lengthText, 0, SWT.CENTER);
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(lengthText, -ITabbedPropertyConstants.HSPACE);
this.lengthLabel.setLayoutData(data);
}
开发者ID:bsteker,项目名称:bdf2,代码行数:9,代码来源:ColumnSection.java
示例11: createDecimalLengthLabel
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
private void createDecimalLengthLabel(Composite parent) {
this.decimalLengthLabel = getWidgetFactory().createCLabel(parent, "小数位:");
FormData data = new FormData();
data.top = new FormAttachment(decimalLengthText, 0, SWT.CENTER);
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(decimalLengthText, -ITabbedPropertyConstants.HSPACE);
this.decimalLengthLabel.setLayoutData(data);
}
开发者ID:bsteker,项目名称:bdf2,代码行数:9,代码来源:ColumnSection.java
示例12: createDefaultValueLabel
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
private void createDefaultValueLabel(Composite parent) {
this.defaultValueLabel = getWidgetFactory().createCLabel(parent, "默认值:");
FormData data = new FormData();
data.top = new FormAttachment(defaultValueText, 0, SWT.CENTER);
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(defaultValueText, -ITabbedPropertyConstants.HSPACE);
this.defaultValueLabel.setLayoutData(data);
}
开发者ID:bsteker,项目名称:bdf2,代码行数:9,代码来源:ColumnSection.java
示例13: createDbTypeLabel
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
private void createDbTypeLabel(Composite parent) {
this.dbTypeLabel = getWidgetFactory().createCLabel(parent, "数据库:");
FormData data = new FormData();
data.top = new FormAttachment(dbTypeText, 0, SWT.CENTER);
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(dbTypeText, -ITabbedPropertyConstants.HSPACE);
this.dbTypeLabel.setLayoutData(data);
}
开发者ID:bsteker,项目名称:bdf2,代码行数:9,代码来源:SchemaSection.java
示例14: estimateRowSize
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
@Override
public int estimateRowSize(Composite subComposite, IElementParameter param) {
final DecoratedField dField = new DecoratedField(subComposite, SWT.BORDER, new IControlCreator() {
public Control createControl(Composite parent, int style) {
return getWidgetFactory().createButton(parent, EParameterName.ROUTE_RESOURCE_TYPE.getDisplayName(), SWT.None);
}
});
Point initialSize = dField.getLayoutControl().computeSize(SWT.DEFAULT, SWT.DEFAULT);
dField.getLayoutControl().dispose();
return initialSize.y + ITabbedPropertyConstants.VSPACE;
}
开发者ID:Talend,项目名称:tesb-studio-se,代码行数:15,代码来源:RouteResourceController.java
示例15: createControls
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
/**
* @see org.eclipse.ui.views.properties.tabbed.ISection#createControls(org.eclipse.swt.widgets.Composite,
* org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)
*/
public void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage) {
super.createControls(parent, aTabbedPropertySheetPage);
Composite composite = getWidgetFactory().createFlatFormComposite(parent);
FormData data;
combo = getWidgetFactory().createCCombo(composite);
data = new FormData();
data.left = new FormAttachment(0, getStandardLabelWidth(composite, new String[] { getLabelText() }));
data.right = new FormAttachment(100, 0);
data.top = new FormAttachment(0, ITabbedPropertyConstants.VSPACE);
combo.setLayoutData(data);
CLabel nameLabel = getWidgetFactory().createCLabel(composite, getLabelText());
data = new FormData();
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(combo, -ITabbedPropertyConstants.HSPACE);
data.top = new FormAttachment(combo, 0, SWT.CENTER);
nameLabel.setLayoutData(data);
combo.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
handleComboModified();
}
});
}
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:31,代码来源:AbstractEnumerationPropertySection.java
示例16: createText
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
protected Text createText(Composite composite, String value) {
Text text = getWidgetFactory().createText(composite, value, SWT.MULTI | SWT.WRAP);
FormData data = new FormData();
data.height = 75;
data.width = composite.getBounds().width;
data.left = new FormAttachment(0, getStandardLabelWidth(composite, new String[] { getLabelText() }));
data.right = new FormAttachment(100, 0);
data.top = new FormAttachment(0, ITabbedPropertyConstants.VSPACE);
text.setLayoutData(data);
return text;
}
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:14,代码来源:AbstractMultiLineStringPropertySection.java
示例17: createText
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
protected Text createText(Composite composite, String value) {
Text text = getWidgetFactory().createText(composite, value);
FormData data = new FormData();
data.left = new FormAttachment(0, getStandardLabelWidth(composite, new String[] { getLabelText() }));
data.right = new FormAttachment(100, 0);
data.top = new FormAttachment(0, ITabbedPropertyConstants.VSPACE);
text.setLayoutData(data);
return text;
}
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:12,代码来源:AbstractTextPropertySection.java
示例18: createControls
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
super.createControls(parent, tabbedPropertySheetPage);
Composite parentComposite = getWidgetFactory().createFlatFormComposite(parent);
combo = getWidgetFactory().createCCombo(parentComposite);
combo.setItems(getList());
combo.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
itemSelected(combo.getSelectionIndex());
}
});
CLabel nameLabel = getWidgetFactory().createCLabel(parentComposite, getLabelText());
FormData data = new FormData();
data.left = new FormAttachment(0, 0);
data.right = new FormAttachment(combo, -ITabbedPropertyConstants.HSPACE);
data.top = new FormAttachment(combo, 0, SWT.CENTER);
nameLabel.setLayoutData(data);
data = new FormData();
data.left = new FormAttachment(0, getStandardLabelWidth(parent, new String[] { getLabelText() }));
data.right = new FormAttachment(100, 0);
data.top = new FormAttachment(0, ITabbedPropertyConstants.VSPACE);
combo.setLayoutData(data);
}
开发者ID:McGill-DP-Group,项目名称:seg.jUCMNav,代码行数:28,代码来源:AbstractChoicePropertySection.java
示例19: createControl
import org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants; //导入依赖的package包/类
@Override
public Control createControl(Composite subComposite, IElementParameter param, int numInRow, int nbInRow, int top,
Control lastControl) {
Button theBtn = getWidgetFactory().createButton(subComposite, "", SWT.PUSH); //$NON-NLS-1$
theBtn.setBackground(subComposite.getBackground());
if (param.getDisplayName().equals("")) { //$NON-NLS-1$
theBtn.setImage(ImageProvider.getImage(CoreUIPlugin.getImageDescriptor(DOTS_BUTTON)));
} else {
theBtn.setText(param.getDisplayName());
}
FormData data = new FormData();
if (isInWizard()) {
if (lastControl != null) {
data.right = new FormAttachment(lastControl, 0);
} else {
data.right = new FormAttachment(100, -ITabbedPropertyConstants.HSPACE);
}
} else {
if (lastControl != null) {
data.left = new FormAttachment(lastControl, 0);
} else {
data.left = new FormAttachment((((numInRow - 1) * MAX_PERCENT) / nbInRow), 0);
}
}
data.top = new FormAttachment(0, top);
theBtn.setLayoutData(data);
theBtn.setEnabled(!param.isReadOnly());
theBtn.setData(param);
hashCurControls.put(param.getName(), theBtn);
theBtn.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {
Command cmd = createCommand((Button) e.getSource());
executeCommand(cmd);
}
});
Point initialSize = theBtn.computeSize(SWT.DEFAULT, SWT.DEFAULT);
dynamicProperty.setCurRowSize(initialSize.y + ITabbedPropertyConstants.VSPACE);
if (nexusServerBean == null) {
theBtn.setVisible(false);
}
Display.getDefault().asyncExec(new Runnable() {
@Override
public void run() {
refresh(param, true);
}
});
return theBtn;
}
开发者ID:Talend,项目名称:tesb-studio-se,代码行数:57,代码来源:ConfigOptionController.java
注:本文中的org.eclipse.ui.views.properties.tabbed.ITabbedPropertyConstants类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论