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
- In the Enterprise Explorer view, double-click your Java class to open the file in the Java editor.
- 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.
- You can also edit the values of the parameters associated
with the annotation, by highlighting the value and typing the value
you want: In this example, the default value of the attribute was changed
from Audit.class to Test.class.