Hey all,
I have AspectJ working real nice right now and I would like to see if @AspectJ
can let me do those same things in a slicker fashion. I can illustrate want I
am thinking about by showing my function:
undoService.addCallback(new ActionListener()
{
public void actionPerformed(ActionEvent ae)
{
undoService.addEdit(new UndoableEditDocumentCustom(textField));
}
});
Right now my actionPerformed is hard-wired to send my undoService that
particular UndoableEdit for a JTextfield. I'd like to automate the process of
adding these edits. Could I possibly add an annotation above my JComponents
that would be able to call the code above based on the type of JComponent it
is? I think I know how to do this in AspectJ, but I am having a hard time
grasping how @AspectJ works, so any suggestions or pointers would be great :)
This e-mail and any files transmitted with it may be proprietary and are
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this e-mail in error please notify the sender.
Please note that any views or opinions presented in this e-mail are solely
those of the author and do not necessarily represent those of ITT Corporation.
The recipient should check this e-mail and any attachments for the presence of
viruses. ITT accepts no liability for any damage caused by any virus
transmitted by this e-mail.
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users