property.clear();
}
}
);
final PropertyEditorAssistSection section = context.getSection( SECTION_ID_ACTIONS );
section.addContribution( contribution.create() );
}
else if( property.definition() instanceof ListProperty )
{
final PropertyEditorAssistContribution.Factory contribution = PropertyEditorAssistContribution.factory();
contribution.text( "<p><a href=\"action\" nowrap=\"true\">" + escapeForXml( clear.text() ) + "</a></p>" );
contribution.link
(
"action",
new Runnable()
{
public void run()
{
property.clear();
}
}
);
final PropertyEditorAssistSection section = context.getSection( SECTION_ID_ACTIONS );
section.addContribution( contribution.create() );
}
else if( property instanceof ElementHandle<?> )
{
final PropertyEditorAssistContribution.Factory contribution = PropertyEditorAssistContribution.factory();
contribution.text( "<p><a href=\"action\" nowrap=\"true\">" + escapeForXml( clear.text() ) + "</a></p>" );
contribution.link
(
"action",
new Runnable()
{
public void run()
{
property.clear();
}
}
);
final PropertyEditorAssistSection section = context.getSection( SECTION_ID_ACTIONS );
section.addContribution( contribution.create() );
}
}