[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
|
- From: proyslim@xxxxxxxxx (Yong Sub)
- Date: Sun, 19 Feb 2006 03:44:58 +0000 (UTC)
- Newsgroups: eclipse.tools.gef
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
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.