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 workspace, you need to add the Annotations view. For more information, see 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 that are associated with the annotation, by highlighting the value and typing the value that you want:
    Edit parameter
    Edit annotation
    In this example, the default value of the attribute was changed from Audit.class to Test.class.
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: teditannoman.html