|
From: Ryan S. (JIRA) <no...@at...> - 2006-07-01 15:03:47
|
[ http://opensource.atlassian.com/projects/spring/browse/RCP-376?page=comments#action_18351 ] Ryan Sonnek commented on RCP-376: --------------------------------- looks like the LifecycleAdvisor is supposed to initialize this field. is it true that *only* commands declared in the windowCommandBarDefinitions get the application window set on them? > null application window > ----------------------- > > Key: RCP-376 > URL: http://opensource.atlassian.com/projects/spring/browse/RCP-376 > Project: Spring Framework Rich Client Project > Type: Bug > Versions: 0.1.0 > Reporter: Ryan Sonnek > > My action command executor extends the ApplicationWindowAwareCommand, yet when I run the command, I get a null pointer exception. > how does the application window get initialized on my object? > public class ApplicationWindowProgressMonitorActionCommandExecutor extends ApplicationWindowAwareCommand implements ActionCommandExecutor { > private final ParameterizableActionCommandExecutor delegate; > public ApplicationWindowProgressMonitorActionCommandExecutor(ParameterizableActionCommandExecutor delegate) { > this.delegate = delegate; > } > protected void doExecuteCommand() { > BusyIndicator.showAt(getApplicationWindow().getControl()); > getProgressMonitor().taskStarted(getText(), StatusBar.UNKNOWN); > delegate.execute(getParameters()); > BusyIndicator.clearAt(getApplicationWindow().getControl()); > getProgressMonitor().done(); > } > private ProgressMonitor getProgressMonitor() { > return getApplicationWindow().getStatusBar().getProgressMonitor(); > } > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/spring/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |