|
From: Lieven D. (JIRA) <no...@sp...> - 2008-10-09 20:09:22
|
[ http://jira.springframework.org/browse/RCP-376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lieven Doclo resolved RCP-376.
------------------------------
Resolution: Won't Fix
> null application window
> -----------------------
>
> Key: RCP-376
> URL: http://jira.springframework.org/browse/RCP-376
> Project: Spring Framework Rich Client Project
> Issue Type: Bug
> Affects 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://jira.springframework.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|