Uploaded image for project: 'HiveMind'
  1. HiveMind
  2. HIVEMIND-15

hivemind fails on translating a string attribute in a string

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0
    • 1.1
    • framework
    • None
    • Windows 2000, Eclipse 3.0, j2sdk1.4.2

    Description

      I have a configuration-point that builds a list of strings. When I build the schema for the cp, hivemind expects a translator for an attribute. Since I want to have Strings in my list, I don't need a translator.

      Sadly the SmartTranslator fails on translating a string into a string, so I had to write my own (very simple implementation . Maybe I did something wrong in my configuration-point:

      configuration-point (id=model) {
      schema {
      element (name=model) {
      attribute (name=name required=true)

      rules

      { push-attribute (attribute=name) invoke-parent (method=addElement) }

      }
      }
      }

      contribution (configuration-id=model) {
      model (name=MyModelName)
      }

      If this is correct, it would be a great enhancement, if hivemind would be able to "translate" strings into strings without implementing a custom translator. This is not very intuitive.

      Greetings,

      Christian Domsch

      Attachments

        1. patch.txt
          2 kB
          James Carman

        Activity

          People

            knut Knut Wannheden
            landrus Christian Domsch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment