Hello,
I've just updated my WindowBuilder to 7.6.0 release, but I have another problem now.
Instead of using an AbstractAction I actually use a SecureAction (a class of mine) which extends AbstractAction (just to add an actionId property to enable/disable it at runtime..).
- Code: Select all
public class SecureAction extends AbstractAction implements Action {
private String actionId;
public SecureAction(String actionId, String name) {
super(name);
this.actionId = actionId;
}
public String getActionId() {
return actionId;
}
public void setActionId(String actionId) {
this.actionId = actionId;
}
public void execute() {
}
....
If I put inside a JXTaskPane a new SecureAction without overriding any method, everything works fine (see screen01.jpg), instead, if I declare an anonymous inner class, overriding SecureAction.execute() method, the designer shows no more the action in panel and, badly, it does not recognize anymore the true type of the action in the property view, saying it is an AbstractAction instead of a SecureAction (WindowBuilder version 7.5.0 did this correctly) (see screen02.jpg). The same happen even if I don't override any method but if I just write this:
- Code: Select all
protected SecureAction getAction() {
if (action == null) {
action = new SecureAction("actionId", "action caption") {
// No override!! Anonymous inner class only!!
};
}
return action;
}
Please help this is very important for me!!
I've even tried this with eclipse 3.6.0 and WB 7.6.0 for eclipse 3.6, with same results.
Thanks
Luca