[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.gef] Re: Add a toggle action to figure and communicate it to model via CommandSt

Hi

I also had almost same problem as yours.

In my case, I solved this problem below.

------------------------------------------------------------------------
 final CheckBox selector = new CheckBox();
 selector.addActionListener(new ActionListener() {
   public void actionPerformed(ActionEvent event) {
	Request request = new Toggle();
	Command cmd = getCommand(request);
	if( cmd != null )
	    getViewer().getEditDomain().getCommandStack().execute(cmd);
	}
 });
------------------------------------------------------------------------

It would be good if my reply could help you.