* "EditAttribute" button from Attribute tab.
*/
public void editAttribute() throws Exception
{
if (_mbean == null)
throw new InfoRequiredException("Please select the managed object and then attribute to be edited");
String name = (_mbean.getName() != null) ? _mbean.getName() : _mbean.getType();
ServerRegistry serverRegistry = ApplicationRegistry.getServerRegistry(_mbean);
if (serverRegistry.getAttributeModel(_mbean).getCount() == 0)
{
throw new InfoRequiredException("There are no attributes to be edited for " + name);
}
TabFolder tabFolder = tabFolderMap.get(_mbean.getType());
int index = tabFolder.getSelectionIndex();
if (index != 0)
{
tabFolder.setSelection(0);
throw new InfoRequiredException("Please select the attribute to be edited");
}
TabItem tab = tabFolder.getItem(0);
AttributesTabControl tabControl = (AttributesTabControl)tab.getData(CONTROLLER);
AttributeData attribute = tabControl.getSelectionAttribute();
if (attribute == null)
throw new InfoRequiredException("Please select the attribute to be edited");
tabControl.createDetailsPopup(attribute);
}