请问这个是CALLBACK的语法么??谁用过能不能详细解释一下,谢谢~~
1 以下为何种语法?CallBack ?
public static final ActionFactory QUIT = new ActionFactory("quit") {//$NON-NLS-1$
/* (non-Javadoc)
* @see org.eclipse.ui.actions.ActionFactory#create(org.eclipse.ui.IWorkbenchWindow)
*/
public IWorkbenchAction create(IWorkbenchWindow window) {
if (window == null) {
throw new IllegalArgumentException();
}
IWorkbenchAction action = new QuitAction(window);
action.setId(getId());
return action;
}
};