Package com.halware.nakedide.eclipse.ext.annot.mdd

Examples of com.halware.nakedide.eclipse.ext.annot.mdd.IEvaluator


   
    List<MetadataDescriptor> descriptors = new ArrayList<MetadataDescriptor>();
   
    descriptors.add(
      new MetadataDescriptor("Parameter",
        new IEvaluator(){
          public Object evaluate(Object object) {
            NakedObjectActionParameter nakedObjectActionParameter = (NakedObjectActionParameter)object;
            return nakedObjectActionParameter.getParameterName();
          }
                    public MetadataDescriptorKind<? extends CellEditor> getKind() {
                        return MetadataDescriptorKind.STRING;
                    }
        }, null
      ));

    descriptors.add(
        new MetadataDescriptor("Type",
          new IEvaluator(){
            public Object evaluate(Object object) {
              NakedObjectActionParameter nakedObjectActionParameter = (NakedObjectActionParameter)object;
              return nakedObjectActionParameter.getType();
            }
                        public MetadataDescriptorKind<? extends CellEditor> getKind() {
View Full Code Here


   
    List<MetadataDescriptor> descriptors = new ArrayList<MetadataDescriptor>();
   
    descriptors.add(
      new MetadataDescriptor("Action",
        new IEvaluator(){
          public Object evaluate(Object object) {
            NakedObjectAction nakedObjectAction = (NakedObjectAction)object;
            return nakedObjectAction.getActionMethodName();
          }
                    public MetadataDescriptorKind<? extends CellEditor> getKind() {
View Full Code Here

public class PropertyMetadataDescriptor extends MetadataDescriptor {

  public PropertyMetadataDescriptor() {
    super("Property",
                new IEvaluator(){
                    public Object evaluate(Object object) {
                        NakedObjectProperty nakedObjectProperty = (NakedObjectProperty)object;
                        return nakedObjectProperty.getAccessorMethodName();
                    }
                    public MetadataDescriptorKind<? extends CellEditor> getKind() {
View Full Code Here

public class PropertyReturnTypeMetadataDescriptor extends MetadataDescriptor {

  public PropertyReturnTypeMetadataDescriptor() {
    super(
            "Type",
      new IEvaluator() {
          public Object evaluate(Object object) {
            NakedObjectProperty nakedObjectProperty = (NakedObjectProperty)object;
            String returnTypeName = nakedObjectProperty.getReturnTypeName();
            return returnTypeName != null? returnTypeName: "void";
          }
View Full Code Here

public class CollectionReturnTypeMetadataDescriptor extends MetadataDescriptor {

  public CollectionReturnTypeMetadataDescriptor() {
    super(
            "Type",
      new IEvaluator() {
          public Object evaluate(Object object) {
            NakedObjectCollection nakedObjectCollection = (NakedObjectCollection)object;
            String returnTypeName = nakedObjectCollection.getReturnTypeName();
            return returnTypeName != null? returnTypeName: "void";
          }
View Full Code Here

   
    List<MetadataDescriptor> descriptors = new ArrayList<MetadataDescriptor>();
   
    descriptors.add(
      new MetadataDescriptor("Collection",
        new IEvaluator(){
          public Object evaluate(Object object) {
            NakedObjectCollection nakedObjectCollection = (NakedObjectCollection)object;
            return nakedObjectCollection.getAccessorMethodName();
          }
                    public MetadataDescriptorKind<? extends CellEditor> getKind() {
View Full Code Here

   
    List<MetadataDescriptor> descriptors = new ArrayList<MetadataDescriptor>();
   
        descriptors.add(
            new ReadonlyMetadataDescriptor("Member",
                new IEvaluator() {
                    public Object evaluate(
                            Object object) {
                        NakedObjectMember nakedObjectMember = (NakedObjectMember)object;
                        return nakedObjectMember.getMemberName();
                    }
       
                    public MetadataDescriptorKind<? extends CellEditor> getKind() {
                        return MetadataDescriptorKind.STRING;
                    }
                }));
        descriptors.add(
                new ReadonlyMetadataDescriptor("Kind", "Property, collection, action or reserved",
                    new IEvaluator() {
                        public Object evaluate(
                                Object object) {
                            NakedObjectMember nakedObjectMember = (NakedObjectMember)object;
                            return nakedObjectMember.getMemberTypeName();
                        }
View Full Code Here

TOP

Related Classes of com.halware.nakedide.eclipse.ext.annot.mdd.IEvaluator

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.