cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Module JMX- Add Attributes  Action - UI Specification

Authors: Alexandre Neubert, Thomas LevequeJean-Francois Denise

Add Attributes Action

This action helps user in generating code to add attributes to an existing standard MBean.

This action results in some generated code at the end of selected MBean class and the MBean interface.

The action is enabled for all MBean class which follow Standard MBean design pattern.

Call the Action

Current module actions are located under Run menu. We could introduce a new Management menu if the set of actions requires it.
This ui spec defines a new Management menu. It could be replaced by a Management submenu under Tools.

  • From contextual menu :
    • The Add MBean Attributes... action is called by right click on a standard MBean class in the project view.
    • Select Management submenu. Select the Add MBeanAttributes... item.
  • From main menu :
    • Management menu  then select the Add MBean Attributes... item.

 

Scope of the action

This action should be accessible from any kind of project. 

Action Popup window

This popup windows allows user to provide for each added attribute :
  • A name
  • A type
  • An access (ReadOnly or Read / Write)
  • A description

This popup appears with all already existing MBean attributes. These attributes are not editable and the user can't select them.
The Remove Attribute button is disabled.

A message notify the user that he have to add at least one new attribute.

The Add Attribute button is enabled.

Ok button is enabled when at least one attribute is specified and there aren't two same attribute names.


Add an Attribute

The user can do it in two ways  :

  • Click on Add Attribute button.
  • Type ALT + A keys.
A new Row appears with default values.


Remove an Attribute

The user can do it in two ways after selecting the row to remove :

  • Click on Remove Notification button.
  • Type ALT + R keys.
The selected Row disappears and the next row is selected.

Specify Attribute name.

The user can type a new attribute name in the textfield. The first letter is always in an upper case.

If the attribute name already exists, a warning message notify the user and the ok button becomes disabled.

Specify Description

The user can directly type a new description in the TextField.

Specify Access

The user can choose between a ReadOnly or a Read / Write access.

Specify Type

The user can do it in two ways  :

  • Type a class name.
  • Select one of proposed types.

Special Case : A getter or a setter method for an attribute already exists

A warning message appears in a new popup to notify the user.
The generation is performed only if the user click on Ok button.




Companion
Projects:
MySQL Database Server   GlassFish Community: an Open Source Application Server   Open Solaris  Open JDK: an Open SourceJDK   Mobile & Embedded Community     Sponsored by 
Sponsored by Sun Microsystems