本文整理汇总了Java中org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage类的典型用法代码示例。如果您正苦于以下问题:Java TabbedPropertySheetPage类的具体用法?Java TabbedPropertySheetPage怎么用?Java TabbedPropertySheetPage使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TabbedPropertySheetPage类属于org.eclipse.ui.views.properties.tabbed包,在下文中一共展示了TabbedPropertySheetPage类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createControls
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; //导入依赖的package包/类
@Override
public void createControls(Composite parent,
TabbedPropertySheetPage aTabbedPropertySheetPage) {
super.createControls(parent, aTabbedPropertySheetPage);
Composite composite=this.getWidgetFactory().createFlatFormComposite(parent);
composite.setLayout(new FormLayout());
Label la=this.getWidgetFactory().createLabel(composite,"名称:");
FormData laData=new FormData();
laData.top=new FormAttachment(0,12);
laData.left=new FormAttachment(0,10);
la.setLayoutData(laData);
this.labelText=this.getWidgetFactory().createText(composite, "");
FormData textData=new FormData();
textData.left=new FormAttachment(la,1);
textData.top=new FormAttachment(0,12);
textData.right=new FormAttachment(100,-10);
this.labelText.setLayoutData(textData);
}
示例2: createControls
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; //导入依赖的package包/类
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
super.createControls(parent, tabbedPropertySheetPage);
GridLayout gridLayout = new GridLayout(1, false);
formBody.setLayout(gridLayout);
for (EType type : EType.values()) {
if (type != EType.UNDEFINED) {
Button widget = widgetFactory.createButton(formBody, type.getLiteral(), SWT.CHECK);
widget.setEnabled(true);
widget.setLayoutData(fillHorizontalData);
typesWidget.put(type, widget);
}
}
}
示例3: getCustomServiceTasks
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; //导入依赖的package包/类
/**
* Gets a list of {@link CustomServiceTask} objects based on the
* {@link TabbedPropertySheetPage} provided.
*
* @param tabbedPropertySheetPage
* the property sheet page linked to a diagram in a project that has
* {@link CustomServiceTask}s defined
* @return a list of all {@link CustomServiceTask}s or an empty list if none
* were found
*/
public static List<CustomServiceTask> getCustomServiceTasks(final TabbedPropertySheetPage tabbedPropertySheetPage) {
// Determine the part the property sheet page is in
final IWorkbenchPart part = tabbedPropertySheetPage.getSite().getWorkbenchWindow().getPartService().getActivePart();
// If the part is a diagram editor, get the project from the diagram
if (part instanceof DiagramEditor) {
final DiagramEditor editor = (DiagramEditor) part;
final IProject project = ActivitiUiUtil.getProjectFromDiagram(editor.getDiagramTypeProvider().getDiagram());
// Determine the custom service tasks using the project found
return getCustomServiceTasks(project);
}
return null;
}
示例4: createControls
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; //导入依赖的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$
}
示例5: createControls
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; //导入依赖的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$
}
示例6: createControls
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; //导入依赖的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$
}
示例7: createControls
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; //导入依赖的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$
}
示例8: createControls
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; //导入依赖的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);
}
示例9: createControls
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; //导入依赖的package包/类
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
super.createControls(parent, tabbedPropertySheetPage);
Composite parentComposite = getWidgetFactory().createFlatFormComposite(parent);
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 3;
gridLayout.horizontalSpacing = 0;
parentComposite.setLayout(gridLayout);
CLabel nameLabel = getWidgetFactory().createCLabel(parentComposite, getLabelText(), SWT.WRAP | SWT.MULTI);
GridData gridData = new GridData();
gridData.widthHint = getStandardLabelWidth(parentComposite, new String[] { getLabelText() });
nameLabel.setLayoutData(gridData);
text = createText(parentComposite);
Button b = new Button(parentComposite, SWT.NULL);
b.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent arg0) {
openDialog();
}
});
b.setText("..."); //$NON-NLS-1$
}
示例10: createControls
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; //导入依赖的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);
}
示例11: getAdapter
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; //导入依赖的package包/类
/**
* Returns the adapter for the specified key. Such as the property sheet, the outline view etc.
*
* @see org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette#getAdapter(java.lang.Class)
*/
public Object getAdapter(Class type) {
if (type == ZoomManager.class)
return getGraphicalViewer().getProperty(ZoomManager.class.toString());
else if (type == ActionRegistry.class)
return getActionRegistry();
else if (type == IContentOutlinePage.class)
return getOutlinePage();
else if (type == org.eclipse.ui.views.properties.IPropertySheetPage.class) {
return new TabbedPropertySheetPage(this);
// page.setRootEntry(new UndoablePropertySheetEntry(getParent().getDelegatingCommandStack()));
// return page;
}
return super.getAdapter(type);
}
示例12: StammDatenComposite
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; //导入依赖的package包/类
public StammDatenComposite(Composite parent, int style, TabbedPropertySheetPage tpsp){
this(parent, style);
tpsf = tpsp.getWidgetFactory();
if (tpsf != null) {
tpsf.adapt(compositeHeader);
tpsf.paintBordersFor(compositeHeader);
tpsf.adapt(lblContactType, true, false);
tpsf.adapt(lblHeadline, true, false);
tpsf.adapt(lblCode, true, true);
tpsf.adapt(comboViewerSex.getCombo());
tpsf.paintBordersFor(comboViewerSex.getCombo());
tpsf.paintBordersFor(dateTimeDob);
tpsf.adapt(dateTimeDob);
tpsf.adapt(comboViewerCountry.getCombo());
tpsf.paintBordersFor(comboViewerCountry.getCombo());
tpsf.adapt(btnEmail, true, true);
tpsf.adapt(btnWebsite, true, true);
tpsf.adapt(txtNotes, true, true);
}
}
示例13: createControls
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; //导入依赖的package包/类
@Override
public void createControls(Composite parent,TabbedPropertySheetPage aTabbedPropertySheetPage) {
super.createControls(parent, aTabbedPropertySheetPage);
if(aTabbedPropertySheetPage instanceof GraphicalPropertySheetPage){
GraphicalPropertySheetPage page=(GraphicalPropertySheetPage)aTabbedPropertySheetPage;
commandStack=page.getCommandStack();
}
}
示例14: getAdapter
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public Object getAdapter(Class type) {
if (type == IContentOutlinePage.class) {
return new DbToolGefEditorOutlinePage(new TreeViewer(), this);
} else if (type == IPropertySheetPage.class) {
return new TabbedPropertySheetPage(this);
} else if (type == ZoomManager.class) {
return getGraphicalViewer().getProperty(ZoomManager.class.toString());
}
return super.getAdapter(type);
}
示例15: createControls
import org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage; //导入依赖的package包/类
public void createControls(Composite composite, TabbedPropertySheetPage tabbedPropertySheetPage) {
super.createControls(composite, tabbedPropertySheetPage);
Composite parent = getWidgetFactory().createFlatFormComposite(composite);
createNameText(parent);
createNameLabel(parent);
createLabelText(parent);
createLabelLabel(parent);
createCommentText(parent);
createCommentLabel(parent);
hookListeners();
}