Package com.onpositive.semantic.model.api.property.adapters

Examples of com.onpositive.semantic.model.api.property.adapters.TextProviderAdapter


          type.setReadOnly(false);
          type.setRequired(true);
          final OneLineTextElement<String> keyKind = new OneLineTextElement<String>(
              kc);
          type.setAdapter(ITextLabelProvider.class,
              new TextProviderAdapter() {

                public String getText(Object object) {
                  Class<?> c = (Class<?>) object;
                  return c.getSimpleName();
                }
View Full Code Here


      combo.setAutoCommit(true);
      combo.setRealm(realm);
      combo.setRequired(true);

      combo.setAdapter(ITextLabelProvider.class,
          new TextProviderAdapter() {

            public String getText(Object object) {
              return ((Field) object).name;
            }
          });
View Full Code Here

            final Binding type = tmpBinding.getBinding("type");
            type.setReadOnly(false);
            type.setRequired(true);
            type.setName("Select type");
            type.setAdapter(ITextLabelProvider.class,
                new TextProviderAdapter() {

                  public String getText(Object object) {
                    Class<?> c = (Class<?>) object;
                    return c.getSimpleName();
                  }
View Full Code Here

TOP

Related Classes of com.onpositive.semantic.model.api.property.adapters.TextProviderAdapter

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.