Editing annotations manually

You can edit annotations in your source code by directly modifying the annotation in the Java™ editor or by using the Annotations view.

Before you begin

In the Java EE perspective, if the Annotations view does not appear in the bottom of the workspace, you need to add the Annotations view. For more information, see Using the Annotations view.

Procedure

  1. In the Enterprise Explorer view, double-click your Java class to open the file in the Java editor.
  2. In the Java editor, highlight the annotation that you want to edit. You can change the annotation by typing in a different value, for example, you can change @Stateless to @Stateful to change an EJB from a Stateless Java bean to a Stateful one.
  3. You can also edit the values of the parameters associated with the annotation, by highlighting the value and typing the value you want:
    Edit parameter
    Edit annotation
    In this example, the default value of the attribute was changed from Audit.class to Test.class.

Feedback