DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
<?xml version="1.0"?>

<bindings id="splitterBindings"
   xmlns="http://www.mozilla.org/xbl"
   xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <binding id="splitter" extends="xul:splitter">
    <resources>
      <stylesheet src="chrome://global/skin/splitter.css"/>
    </resources>
  </binding>

  <binding id="grippy" extends="xul:button">
    <resources>
      <stylesheet src="chrome://global/skin/splitter.css"/>
    </resources>
    <handlers>
      <handler event="command">
        <![CDATA[
          var splitter = this.parentNode;
          if (splitter) {
            var state = splitter.getAttribute("state");
            if (state == "collapsed")
              splitter.setAttribute("state", "open");
            else
              splitter.setAttribute("state", "collapsed");
          }
        ]]>
      </handler>
    </handlers>
  </binding>

</bindings>