public override bool OnDisplayJumpToTool(object commandObject, ref XCore.UIItemDisplayProperties display)
{
CheckDisposed();
XCore.Command command = (XCore.Command)commandObject;
string tool = SIL.Utils.XmlUtils.GetManditoryAttributeValue(command.Parameters[0], "tool");
string toolChoice = m_mediator.PropertyTable.GetStringProperty("currentContentControl", null);
if (tool == "posEdit" && toolChoice == "reversalToolReversalIndexPOS")
{
display.Visible = display.Enabled = false; // we're already there!
return true;
}
else
{
return base.OnDisplayJumpToTool(commandObject, ref display);
}
}
}