Package org.dyno.visual.swing.types.editor.spinnermodels

Examples of org.dyno.visual.swing.types.editor.spinnermodels.SpinnerModelType


        return 1;
      } else {
        Class clazz1 = o1.getClass();
        Class clazz2 = o2.getClass();
        if (clazz1 == clazz2) {
          SpinnerModelType type = SpinnerNumberModelType.getSpinnerModelType(o1);
          return type.compare(o1, o2);
        } else {
          return 1;
        }
      }
    }
View Full Code Here


 
  public String getInitJavaCode(Object value, ImportRewrite imports) {
    if (value == null)
      return null;
    SpinnerModelType type = SpinnerNumberModelType.getSpinnerModelType(value);
    return type.getInitJavaCode(value, imports);
  }
View Full Code Here

 
  public String getJavaCode(Object value, ImportRewrite imports) {
    if (value == null)
      return "null";
    SpinnerModelType type = SpinnerNumberModelType.getSpinnerModelType(value);
    return type.getJavaCode(value, imports);
  }
View Full Code Here

public class SpinnerModelCloner implements ICloner {

 
  public Object clone(Object object) {
    SpinnerModelType type = SpinnerModelType.getSpinnerModelType(object);
    return type.clone(object);
  }
View Full Code Here

    data.heightHint = 170;
    data.horizontalIndent = 36;
    modelPane.setLayoutData(data);
    applyDialogFont(composite);
    viewer_selectionChanged(selection);
    SpinnerModelType type = SpinnerModelType.getSpinnerModelType(model);
    AccessibleUI paneUI = modelPanes.get(type);
    if (paneUI != null)
      paneUI.setValue(model);
    applyDialogFont(composite);
    return composite;
View Full Code Here

    return composite;
  }

  private void viewer_selectionChanged(ISelection selection) {
    if (selection instanceof StructuredSelection && !selection.isEmpty()) {
      SpinnerModelType type = (SpinnerModelType) ((StructuredSelection) selection).getFirstElement();
      AccessibleUI paneUI = modelPanes.get(type);
      if (paneUI == null) {
        paneUI = type.createEditPane(modelPane);
        if (paneUI != null) {
          modelPanes.put(type, paneUI);
        }
      }
      if (paneUI != null) {
View Full Code Here

    ISelection selection = viewer.getSelection();
    if (selection.isEmpty()) {
      MessageDialog.openError(getShell(), Messages.SpinnerModelDialog_Error, Messages.SpinnerModelDialog_Select);
      return;
    }
    SpinnerModelType type = (SpinnerModelType) ((StructuredSelection) selection).getFirstElement();
    AccessibleUI paneUI = modelPanes.get(type);
    String message = paneUI.isInputValid();
    if (message != null) {
      MessageDialog.openError(getShell(), Messages.SpinnerModelDialog_Error, message);
      return;
View Full Code Here

TOP

Related Classes of org.dyno.visual.swing.types.editor.spinnermodels.SpinnerModelType

Copyright © 2018 www.massapicom. 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.