Examples of BorderType


Examples of org.dyno.visual.swing.types.editor.borders.BorderType

    lbl.setLayoutData(data);
    Combo cmbType = new Combo(innerComposite, SWT.DROP_DOWN | SWT.READ_ONLY);
    viewer = new ComboViewer(cmbType);
    viewer.setContentProvider(new BorderContentProvider());
    viewer.setInput(BorderType.getBorderTypes());
    BorderType type = BorderType.getBorderType(border);
    ISelection selection = null;
    if (type != null) {
      borders.put(type, border);
      selection = createSelection(type);
      viewer.setSelection(selection);
View Full Code Here

Examples of org.dyno.visual.swing.types.editor.borders.BorderType

    return composite;
  }

  private void viewer_selectionChanged(ISelection selection) {
    if (selection instanceof StructuredSelection && !selection.isEmpty()) {
      BorderType type = (BorderType) ((StructuredSelection) selection).getFirstElement();
      if (borders.containsKey(type)) {
        border = borders.get(type);
      } else {
        border = type.createBorder();
        borders.put(type, border);
      }
      propertyPage.setPropertySourceProvider(null);
      if (border != null) {
        propertyPage.selectionChanged(null, createSelection(border));
        propertyPage.setPropertySourceProvider(type.getPropertySourceProvider(border));
      }
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.