/** * Creates a label as a part of the form. * * @param parent * the label parent. * @param text * the label text. * @return the label. */ public CLabel createCLabel(Composite parent, String text) { return createCLabel(parent, text, SWT.NONE); }
data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false; CLabel refLabel = getWidgetFactory().createCLabel(composite, XSDConstants.REF_ATTRIBUTE + ":"); //$NON-NLS-1$ refLabel.setLayoutData(data); data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false; CLabel nameLabel = getWidgetFactory().createCLabel(composite, Messages._UI_LABEL_NAME); nameLabel.setLayoutData(data);
CLabel schemaLocationLabel = getWidgetFactory().createCLabel(composite, XSDEditorPlugin.getXSDString("_UI_LABEL_SCHEMA_LOCATION")); //$NON-NLS-1$ data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false;
data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false; CLabel nameLabel = getWidgetFactory().createCLabel(composite, org.eclipse.wst.xsd.ui.internal.common.util.Messages._UI_LABEL_NAME); nameLabel.setLayoutData(data); getWidgetFactory().createCLabel(composite, typeLabel); //$NON-NLS-1$ getWidgetFactory().createCLabel(composite, ""); //$NON-NLS-1$ data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false; CLabel useLabel = getWidgetFactory().createCLabel(composite, XSDEditorPlugin.getXSDString("_UI_USAGE")); useLabel.setLayoutData(data); getWidgetFactory().createCLabel(composite, ""); //$NON-NLS-1$
CLabel namespaceLabel = getWidgetFactory().createCLabel(composite, XSDEditorPlugin.getXSDString("_UI_LABEL_NAMESPACE")); //$NON-NLS-1$ data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false; data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false; getWidgetFactory().createCLabel(composite, ""); //$NON-NLS-1$ CLabel prefixLabel = getWidgetFactory().createCLabel(composite, XSDEditorPlugin.getXSDString("_UI_LABEL_PREFIX")); //$NON-NLS-1$ data = new GridData(); data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false; getWidgetFactory().createCLabel(composite, ""); //$NON-NLS-1$ CLabel schemaLocationLabel = getWidgetFactory().createCLabel(composite, XSDEditorPlugin.getXSDString("_UI_LABEL_SCHEMA_LOCATION")); //$NON-NLS-1$ data = new GridData(); data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING;
data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false; CLabel nameLabel = getWidgetFactory().createCLabel(composite, Messages.UI_LABEL_NAME); nameLabel.setLayoutData(data); getWidgetFactory().createCLabel(composite, Messages.UI_LABEL_INHERIT_FROM); //$NON-NLS-1$ getWidgetFactory().createCLabel(composite, ""); data.grabExcessHorizontalSpace = false; CLabel derivedByLabel = getWidgetFactory().createCLabel(composite, Messages.UI_LABEL_INHERIT_BY); //$NON-NLS-1$ derivedByLabel.setLayoutData(data); getWidgetFactory().createCLabel(composite, "");
CLabel nameLabel = factory.createCLabel(composite, Messages._UI_LABEL_NAME); nameLabel.setLayoutData(data); CLabel label = getWidgetFactory().createCLabel(composite, XSDEditorPlugin.getXSDString("_UI_LABEL_VARIETY")); //$NON-NLS-1$ getWidgetFactory().createCLabel(composite, ""); //$NON-NLS-1$ typesLabel = getWidgetFactory().createCLabel(composite, XSDEditorPlugin.getXSDString("_UI_LABEL_MEMBERTYPES")); //$NON-NLS-1$
CLabel abstractLabel = getWidgetFactory().createCLabel(composite, XSDConstants.ABSTRACT_ATTRIBUTE + ":"); abstractLabel.setLayoutData(data); CLabel blockLabel = getWidgetFactory().createCLabel(composite, XSDConstants.BLOCK_ATTRIBUTE + ":"); blockLabel.setLayoutData(data); CLabel finalLabel = getWidgetFactory().createCLabel(composite, XSDConstants.FINAL_ATTRIBUTE + ":"); finalLabel.setLayoutData(data); CLabel subGroupLabel = getWidgetFactory().createCLabel(composite, XSDConstants.SUBSTITUTIONGROUP_ATTRIBUTE + ":"); subGroupLabel.setLayoutData(data);
CLabel prefixLabel = getWidgetFactory().createCLabel(composite, XSDEditorPlugin.getXSDString("_UI_LABEL_SCHEMA_PREFIX")); //$NON-NLS-1$ data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false; CLabel targetNamespaceLabel = getWidgetFactory().createCLabel(composite, XSDEditorPlugin.getXSDString("_UI_LABEL_TARGET_NAME_SPACE")); //$NON-NLS-1$ data = new GridData(); data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING;
CLabel abstractLabel = getWidgetFactory().createCLabel(composite, XSDConstants.ABSTRACT_ATTRIBUTE + ":"); abstractLabel.setLayoutData(data); CLabel blockLabel = getWidgetFactory().createCLabel(composite, XSDConstants.BLOCK_ATTRIBUTE + ":"); blockLabel.setLayoutData(data); CLabel finalLabel = getWidgetFactory().createCLabel(composite, XSDConstants.FINAL_ATTRIBUTE + ":"); finalLabel.setLayoutData(data); CLabel mixedLabel = getWidgetFactory().createCLabel(composite, XSDConstants.MIXED_ATTRIBUTE + ":"); mixedLabel.setLayoutData(data);
composite.setLayout(gridLayout); title = factory.createCLabel(composite, ""); //$NON-NLS-1$ FontData fontData = composite.getFont().getFontData()[0]; title.setFont(JFaceResources.getFontRegistry().getBold(fontData.getName())); compositeForButtons.setLayoutData(data); factory.createCLabel(compositeForButtons, Messages._UI_LABEL_RESTRICT_VALUES_BY);
CLabel nameLabel = factory.createCLabel(composite, org.eclipse.wst.xsd.ui.internal.common.util.Messages._UI_LABEL_NAME); nameLabel.setLayoutData(data); data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false; CLabel refLabel = getWidgetFactory().createCLabel(composite, org.eclipse.wst.xsd.ui.internal.common.util.Messages._UI_LABEL_REFERENCE); refLabel.setLayoutData(data); XSDEditorCSHelpIds.GENERAL_TAB__ELEMENT__REFERENCE); getWidgetFactory().createCLabel(composite, ""); //$NON-NLS-1$ getWidgetFactory().createCLabel(composite, typeLabel); data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false; getWidgetFactory().createCLabel(composite, ""); //$NON-NLS-1$ getWidgetFactory().createCLabel(composite, Messages.UI_LABEL_MINOCCURS); data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false; getWidgetFactory().createCLabel(composite, ""); //$NON-NLS-1$ getWidgetFactory().createCLabel(composite, Messages.UI_LABEL_MAXOCCURS);
data.grabExcessHorizontalSpace = false; CLabel namespaceLabel = getWidgetFactory().createCLabel(composite, XSDConstants.NAMESPACE_ATTRIBUTE); namespaceLabel.setLayoutData(data); XSDEditorCSHelpIds.GENERAL_TAB__ANYELEMENT__NAMESPACE); CLabel processContentsLabel = getWidgetFactory().createCLabel(composite, XSDConstants.PROCESSCONTENTS_ATTRIBUTE); data = new GridData(); data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; getWidgetFactory().createCLabel(composite, Messages.UI_LABEL_MINOCCURS); getWidgetFactory().createCLabel(composite, Messages.UI_LABEL_MAXOCCURS);
data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false; CLabel nameLabel = getWidgetFactory().createCLabel(composite, Messages.UI_LABEL_KIND); nameLabel.setLayoutData(data); getWidgetFactory().createCLabel(composite, Messages.UI_LABEL_MINOCCURS); getWidgetFactory().createCLabel(composite, Messages.UI_LABEL_MAXOCCURS);
data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false; CLabel refLabel = getWidgetFactory().createCLabel(composite, XSDConstants.REF_ATTRIBUTE + ":"); //$NON-NLS-1$ refLabel.setLayoutData(data); getWidgetFactory().createCLabel(composite, org.eclipse.wst.xsd.ui.internal.editor.Messages.UI_LABEL_MINOCCURS); getWidgetFactory().createCLabel(composite, org.eclipse.wst.xsd.ui.internal.editor.Messages.UI_LABEL_MAXOCCURS); data.horizontalAlignment = GridData.HORIZONTAL_ALIGN_BEGINNING; data.grabExcessHorizontalSpace = false; CLabel nameLabel = getWidgetFactory().createCLabel(composite, Messages._UI_LABEL_NAME); nameLabel.setLayoutData(data);
label = factory.createCLabel(this, BLANK); label.setBackground(new Color[] { factory.getColors().getColor(IFormColors.H_GRADIENT_END),