[Bug 688] New: Implement skin/macro introspection

View: New views
3 Messages — Rating Filter:   Alert me  

[Bug 688] New: Implement skin/macro introspection

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=688

           Summary: Implement skin/macro introspection
           Product: Helma
           Version: CVS trunk
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Web Support
        AssignedTo: helma-dev@...
        ReportedBy: interface@...


Created an attachment (id=124)
 --> (http://dev.helma.org/bugs/attachment.cgi?id=124)
Patch for Skin.java enabling skin/macro introspection

I created a patch for Skin.java that enables some fields and methods for skin
and macro introspection. It does not introduce anything new, only changes some
private modifiers to public and adds some wrapper methods.

It all starts off with the Skin.getMacros() method that returns an Array object
containing all macros found in a skin.

Each macro item in turn has the following fields and methods:

 * start - the character position where the macro starts (Number)
 * end - the character position where the macro ends (Number)
 * getName() - the macro name (String)
 * getHandlerType() - the type of macro handler (Number)
 * getNamedParams() - the list of named parameters (java.util.Map)
 * getPositionalParams() - the list of positional parameters (java.util.List)
 * hasNestedMacros() - true if the macro contains other macros (Boolean)

Would be nice to see the patch applied in a future version of Helma.

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 688] Implement skin/macro introspection

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=688


tobi <interface@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |1.7.0




--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev

[Bug 688] Implement skin/macro introspection

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=688


Hannes Wallnoefer <hannes@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |hannes@...
         Resolution|                            |FIXED




--- Comment #1 from Hannes Wallnoefer <hannes@...>  2009-11-04 12:31:31 ---
I committed your patch.

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev