how to clear all macro values appearing in context panel?

MausumiMausumi Member Posts: 4 Newbie

Answers

  • BalazsBaranyBalazsBarany Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert Posts: 955 Unicorn
    Hi,

    for a few macros, doubleclick, ctrl + a, delete is doable.

    If you have a lot to clean, you could open the XML view (View => Show Panel => XML) and copy the contents of /context/macros to an editor. You can do advanced replacements there, and then you just copy the result back.

       <macros>
          <macro>
            <key>m1</key>
            <value>v1</value>
    </macro>
    <macro>
    <key>m2</key>
    <value>v2</value>
    </macro>
    <macro>
    <key>m3</key>
    <value/>
    </macro>
    </macros>
    In this example you see that the third key doesn't have a value. So in your editor (capable of regular expression replacement) you would change <value.+/value> to <value/>.

    Regards,
    Balázs
Sign In or Register to comment.