001 package org.springframework.richclient.command.support; 002 003 import org.springframework.richclient.command.ActionCommand; 004 import org.springframework.richclient.dialog.ApplicationDialog; 005 import org.springframework.richclient.util.RcpSupport; 006 007 /** 008 * Command that shows an application dialog 009 * 010 * @author ldo 011 */ 012 public class ShowDialogCommand extends ActionCommand 013 { 014 015 private final ApplicationDialog dialog; 016 private String actionCluster; 017 018 public ShowDialogCommand(String id, ApplicationDialog dialog) 019 { 020 super(id); 021 this.dialog = dialog; 022 RcpSupport.configure(this); 023 } 024 025 @Override 026 protected void doExecuteCommand() 027 { 028 dialog.showDialog(); 029 } 030 031 public String getActionCluster() 032 { 033 return actionCluster; 034 } 035 036 public void setActionCluster(String actionCluster) 037 { 038 this.actionCluster = actionCluster; 039 040 } 041 }