public void setElementContext(
org.eclipse.wst.xml.core.internal.provisional.document.IDOMNode ancester,
IDOMElement element) {
IProject prj = StructuredModelUtil.getProjectFor(ancester.getModel());
IStringButtonAdapter adapter = getStringButtonAdapter();
if (adapter instanceof MyStringButtonAdapter)
{
((MyStringButtonAdapter)adapter)._project = prj;
}