Java 类org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage 实例源码

项目:bdf2    文件:PropertySectionTransitionLabel.java   
@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);
}
项目:turnus    文件:TypeSystemSection.java   
@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);
        }
    }
}
项目:SecureBPMN    文件:ExtensionUtil.java   
/**
 * 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;
}
项目:SecureBPMN    文件:PropertyTimerStartEventSection.java   
@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$

}
项目:SecureBPMN    文件:PropertyMailTaskSection.java   
@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$

}
项目:SecureBPMN    文件:PropertyIntermediateCatchTimerSection.java   
@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$
}
项目:SecureBPMN    文件:PropertyAlfrescoMailTaskSection.java   
@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$
}
项目:Environment    文件:TreeViewSection.java   
@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);
}
项目:seg.jUCMNav    文件:AbstractDialogPropertySection.java   
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$
}
项目:seg.jUCMNav    文件:AbstractTextPropertySection.java   
/**
 * @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);
}
项目:seg.jUCMNav    文件:UrnEditor.java   
/**
 * 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);
}
项目:elexis-3-core    文件:StammDatenComposite.java   
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);
    }
}
项目:bdf2    文件:AbstractGraphicalPropertySection.java   
@Override
public void createControls(Composite parent,TabbedPropertySheetPage aTabbedPropertySheetPage) {
    super.createControls(parent, aTabbedPropertySheetPage);
    if(aTabbedPropertySheetPage instanceof GraphicalPropertySheetPage){
        GraphicalPropertySheetPage page=(GraphicalPropertySheetPage)aTabbedPropertySheetPage;
        commandStack=page.getCommandStack();
    }
}
项目:bdf2    文件:DbToolGefEditor.java   
@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);
}
项目:bdf2    文件:TableSection.java   
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();
}
项目:bdf2    文件:ConnectionSection.java   
public void createControls(Composite composite, TabbedPropertySheetPage tabbedPropertySheetPage) {
    super.createControls(composite, tabbedPropertySheetPage);
    Composite parent = getWidgetFactory().createFlatFormComposite(composite);
    createConstraintNameText(parent);
    createConstraintNameLabel(parent);
    createPkColumnNameText(parent);
    createPkColumnNameLabel(parent);
    createFkColumnNameText(parent);
    createFkColumnNameLabel(parent);
    createTypeCombo(parent);
    createTypeLabel(parent);
    hookListeners();
}
项目:bdf2    文件:ColumnSection.java   
public void createControls(Composite composite, TabbedPropertySheetPage tabbedPropertySheetPage) {
    super.createControls(composite, tabbedPropertySheetPage);
    Composite parent = getWidgetFactory().createFlatFormComposite(composite);

    createButtons(parent);

    createNameText(parent);
    createNameLabel(parent);

    createLabelText(parent);
    createLabelLabel(parent);

    createTypeCombo(parent);
    createTypeLabel(parent);

    createLengthText(parent);
    createLengthLabel(parent);

    createDecimalLengthText(parent);
    createDecimalLengthLabel(parent);

    createDefaultValueText(parent);
    createDefaultValueLabel(parent);

    createCommentText(parent);
    createCommentLabel(parent);

    hookListeners();
}
项目:turnus    文件:GenericProcessingUnitMainSection.java   
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
    super.createControls(parent, tabbedPropertySheetPage);

    /*widgetFactory.createCLabel(formBody, "Name:");
    puName = widgetFactory.createText(formBody, "", SWT.BORDER);
    puName.setLayoutData(fillHorizontalData);
    puName.setEditable(false);
    puName.setBackground(disabledFieldBGColor);*/

    widgetFactory.createCLabel(formBody, "Type:");
    puType = widgetFactory.createText(formBody, "", SWT.BORDER);
    puType.setLayoutData(fillHorizontalData);
    puType.setEditable(false);
    puType.setBackground(disabledFieldBGColor);

    widgetFactory.createCLabel(formBody, "Family:");
    puFamily = widgetFactory.createText(formBody, "", SWT.BORDER);
    puFamily.setLayoutData(fillHorizontalData);
    puFamily.setEditable(true);
    puFamily.setBackground(disabledFieldBGColor);

    widgetFactory.createCLabel(formBody, "Clock-Period (ns):");
    puClockPeriod = widgetFactory.createText(formBody, "", SWT.BORDER);
    puClockPeriod.setLayoutData(fillHorizontalData);
    puClockPeriod.setEditable(true);
    puClockPeriod.setBackground(disabledFieldBGColor);
}
项目:turnus    文件:CpuSection.java   
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
    super.createControls(parent, tabbedPropertySheetPage);

    widgetFactory.createCLabel(formBody, "Cores:");
    cores = widgetFactory.createText(formBody, "", SWT.BORDER);
    cores.setLayoutData(fillHorizontalData);
    cores.setEditable(true);
    cores.setBackground(disabledFieldBGColor);
}
项目:turnus    文件:DspSection.java   
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
    super.createControls(parent, tabbedPropertySheetPage);

    widgetFactory.createCLabel(formBody, "Cores:");
    cores = widgetFactory.createText(formBody, "", SWT.BORDER);
    cores.setLayoutData(fillHorizontalData);
    cores.setEditable(true);
    cores.setBackground(disabledFieldBGColor);
}
项目:turnus    文件:SchedulerSection.java   
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
    super.createControls(parent, tabbedPropertySheetPage);

    GridLayout gridLayout = new GridLayout(1, false);
    formBody.setLayout(gridLayout);

    for (EScheduler scheduler : EScheduler.values()) {
        Button widget = widgetFactory.createButton(formBody, scheduler.getLiteral(), SWT.CHECK);
        widget.setEnabled(true);
        widget.setLayoutData(fillHorizontalData);
        schedulersWidget.put(scheduler, widget);
    }

}
项目:turnus    文件:OperatorsSection.java   
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
    super.createControls(parent, tabbedPropertySheetPage);

    GridLayout gridLayout = new GridLayout(1, false);
    formBody.setLayout(gridLayout);

    for (EOperator op : EOperator.values()) {
        Button widget = widgetFactory.createButton(formBody, op.getLiteral(), SWT.CHECK);
        widget.setEnabled(true);
        widget.setLayoutData(fillHorizontalData);
        operatorsWidget.put(op, widget);
    }

}
项目:turnus    文件:AbstractDiagramSection.java   
@Override
public void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage) {
    super.createControls(parent, aTabbedPropertySheetPage);

    widgetFactory = getWidgetFactory();

    final Form form = widgetFactory.createForm(parent);
    form.setText(getFormText());
    widgetFactory.decorateFormHeading(form);
    formBody = form.getBody();
}
项目:turnus    文件:AbstractGridBasedSection.java   
@Override
public void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage) {
    super.createControls(parent, aTabbedPropertySheetPage);

    final GridLayout gridLayout = new GridLayout(2, false);
    fillHorizontalData = new GridData(SWT.FILL, SWT.BEGINNING, true, true);

    // Set GridLayout as default for a properties section
    formBody.setLayout(gridLayout);

    addHiddenTextFieldToForm(formBody);
}
项目:NEXCORE-UML-Modeler    文件:CommonGeneralSectionPartFactory.java   
/**
 * @see nexcore.tool.uml.ui.core.property.part.factory.SectionPartFactoryAdapter#createParts(org.eclipse.swt.widgets.Composite,
 *      org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)
 */
@Override
public void createParts(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
    // TODO Auto-generated method stub
    super.createParts(parent, tabbedPropertySheetPage);

    createNamePart(parent);
    createVisibilityPart(parent);
}
项目:NEXCORE-UML-Modeler    文件:AbstractDiagramEditor.java   
/**
 * @see org.eclipse.gef.ui.parts.GraphicalEditorWithFlyoutPalette#getAdapter(java.lang.Class)
 */
@SuppressWarnings("unchecked")
public Object getAdapter(Class adapter) {
    if (adapter == IPropertySheetPage.class)
        return new TabbedPropertySheetPage(this);

    if (adapter == IContentOutlinePage.class) {
        return new UMLContentOutlinePage();
    }

    return super.getAdapter(adapter);
}
项目:NEXCORE-UML-Modeler    文件:AbstractPropertyCommonSection.java   
/**
 * @see org.eclipse.ui.views.properties.tabbed.AbstractPropertySection#createControls(org.eclipse.swt.widgets.Composite,
 *      org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)
 */
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
    this.parent = parent;
    super.createControls(parent, tabbedPropertySheetPage);
    this.createMainComposite();
    this.sectionComposite.pack();
}
项目:NEXCORE-UML-Modeler    文件:AssociationGeneralSection.java   
/**
 * @see org.eclipse.ui.views.properties.tabbed.AbstractPropertySection#createControls(org.eclipse.swt.widgets.Composite,
 *      org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetPage)
 */
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
    super.createControls(parent, tabbedPropertySheetPage);

    this.initComposite(parent);
}
项目:triquetrum    文件:TriqNamedObjSection.java   
@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);
}
项目:eavp    文件:ShapeTreeView.java   
@Override
public Object getAdapter(Class adapter) {
    if (adapter == IPropertySheetPage.class) {
        return new TabbedPropertySheetPage(this);
    }
    return super.getAdapter(adapter);
}
项目:statecharts    文件:AbstractEditorPropertySection.java   
@Override
public final void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage) {
    toolkit = new FormToolkit(parent.getDisplay());
    toolkit.setBorderStyle(SWT.BORDER);
    super.createControls(parent, aTabbedPropertySheetPage);
    GridDataFactory.fillDefaults().grab(true, true).applyTo(parent);
    parent.setLayout(new GridLayout(1, true));
    form = toolkit.createForm(parent);
    toolkit.decorateFormHeading(form);
    GridDataFactory.fillDefaults().grab(true, true).applyTo(form);
    form.getBody().setLayout(createBodyLayout());
    createControls(form.getBody());
}
项目:SecureBPMN    文件:PropertyStartEventSection.java   
@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$
}
项目:SecureBPMN    文件:PropertyBoundaryTimerSection.java   
@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$
}
项目:SecureBPMN    文件:PropertyCustomServiceTaskSection.java   
@Override
public void createControls(Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
  super.createControls(parent, tabbedPropertySheetPage);
  if (boldFont == null) {
    boldFont = new Font(parent.getDisplay(), new FontData("boldFontData", 10, SWT.BOLD));
  }
  if (italicFont == null) {
    italicFont = new Font(parent.getDisplay(), new FontData("italicFontData", 10, SWT.ITALIC));
  }
  this.parent = parent;
}
项目:translationstudio8    文件:TabbedPropertySheetAdapterFactory.java   
public Object getAdapter(Object adaptableObject, Class adapterType) {
    if (adaptableObject instanceof ProjectExplorer) {
        if (IPropertySheetPage.class == adapterType)
            return new TabbedPropertySheetPage(
                new TabbedPropertySheetProjectExplorerContributor(
                    (CommonNavigator) adaptableObject));
    }
    return null;
}
项目:Environment    文件:PropertySection.java   
@Override
public void createControls(Composite parent, TabbedPropertySheetPage aTabbedPropertySheetPage) {
    super.createControls(parent, aTabbedPropertySheetPage);

    mainComposite = new Composite(parent, SWT.NONE);
    RowLayout rowLayout = new RowLayout(SWT.VERTICAL);
    mainComposite.setLayout(rowLayout);

}
项目:Environment    文件:ImportSection.java   
/**
 * @wbp.parser.entryPoint
 */
@Override
public void createControls(final Composite parent, TabbedPropertySheetPage tabbedPropertySheetPage) {
    super.createControls(parent, tabbedPropertySheetPage);

    TabbedPropertySheetWidgetFactory factory = getWidgetFactory();

    Composite composite = factory.createFlatFormComposite(parent);
    FillLayout fillLayout = new FillLayout();
    fillLayout.type = SWT.HORIZONTAL;
    composite.setLayout(fillLayout);

    FormToolkit toolkit = new FormToolkit(parent.getDisplay());


    // Extractor seciton
    {
        sectionWizard = toolkit.createSection(composite, Section.DESCRIPTION
            | Section.TITLE_BAR);
        sectionWizard.setText("Extracted models"); //$NON-NLS-1$
        sectionWizard.setDescription("Location of extracted PCM models used for this component.");
        // Composite for storing the data
        extractorComposite = new ExtractorComposite(parent);
        extractorComposite.setParent(sectionWizard);
        toolkit.paintBordersFor(extractorComposite);
        sectionWizard.setClient(extractorComposite);
    }

    composite.pack();
}
项目:tmxeditor8    文件:TabbedPropertySheetAdapterFactory.java   
public Object getAdapter(Object adaptableObject, Class adapterType) {
    if (adaptableObject instanceof ProjectExplorer) {
        if (IPropertySheetPage.class == adapterType)
            return new TabbedPropertySheetPage(
                new TabbedPropertySheetProjectExplorerContributor(
                    (CommonNavigator) adaptableObject));
    }
    return null;
}
项目:seg.jUCMNav    文件:AbstractEnumerationPropertySection.java   
/**
 * @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();
        }
    });
}
项目:seg.jUCMNav    文件:AbstractChoicePropertySection.java   
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);
}