Exemplo n.º 1
0
 @Override
 protected Sheet createSheet() {
   Sheet sheet = super.createSheet();
   //
   Sheet.Set mainPropertySet = getPropertySet(sheet, Constants.PropertiesGroups.MAIN_SET);
   PropertyUtils propUtil = PropertyUtils.getInstance();
   //
   propUtil.registerAttributeProperty(
       this,
       mainPropertySet,
       Import.IMPORT_TYPE,
       IMPORT_TYPE,
       "getImportType",
       "setImportType",
       null); // NOI18N
   //
   propUtil.registerAttributeProperty(
       this,
       mainPropertySet,
       NamespaceSpec.NAMESPACE,
       IMPORT_NAMESPACE,
       "getNamespace",
       "setNamespace",
       "removeNamespace"); // NOI18N
   //
   propUtil.registerAttributeProperty(
       this,
       mainPropertySet,
       Import.LOCATION,
       IMPORT_LOCATION,
       "getLocation",
       "setLocation",
       "removeLocation"); // NOI18N
   //
   propUtil.registerProperty(
       this,
       mainPropertySet,
       DOCUMENTATION,
       "getDocumentation",
       "setDocumentation",
       "removeDocumentation"); // NOI18N
   //
   return sheet;
 }
Exemplo n.º 2
0
  protected Sheet createSheet() {
    Sheet sheet = super.createSheet();

    if (getReference() == null) {
      return sheet;
    }
    //
    Sheet.Set mainPropertySet = getPropertySet(sheet, Constants.PropertiesGroups.MAIN_SET);
    PropertyUtils propUtil = PropertyUtils.getInstance();
    //
    propUtil.registerAttributeProperty(
        this,
        mainPropertySet,
        NamedElement.NAME,
        PropertyType.NAME,
        "getName",
        "setName",
        null); // NOI18N
    //
    propUtil.registerElementProperty(
        this,
        null,
        mainPropertySet,
        BooleanExpr.class,
        PropertyType.BOOLEAN_EXPRESSION,
        "getCondition",
        "setCondition",
        null); // NOI18N
    //
    propUtil.registerProperty(
        this,
        mainPropertySet,
        DOCUMENTATION,
        "getDocumentation",
        "setDocumentation",
        "removeDocumentation"); // NOI18N
    //
    return sheet;
  }