How can i trigger refresh diagram from command [message #1059842] |
Tue, 21 May 2013 20:25  |
Eclipse User |
|
|
|
Hi all
I want to refesh diagram automaticaly from java code.
For example on CreatingXXXElementCommand class how can i trigger refresh diagram ?
But i cant find how can done this so anyone can help me ?
Regards
|
|
|
|
Re: How can i trigger refresh diagram from command [message #1061019 is a reply to message #1060250] |
Wed, 29 May 2013 14:22  |
Eclipse User |
|
|
|
Hi,
I use
import org.eclipse.gmf.tooling.runtime.update.UpdateDiagramCommand;
UpdateDiagramCommand updater = new UpdateDiagramCommand();
try {
updater.execute(null);
} catch (ExecutionException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
and its work perfect but i need to ask u i give null as ExecutionEvent
is it right way ?
Regards
|
|
|
Powered by
FUDForum. Page generated in 0.03247 seconds