Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [bpel-dev] refresh all Activities of bpel-editor

Hallo, Michael,
Thank you for you answer, i have tried this but unfortunately it doesnt work. :-(
The modifications is in paint(IFigure figure, Graphics graphics, Insets insets) method of leafborder, the BPELUtil.regenerateVisuals(Process process, GraphicalViewer viewer) didnt make the system to call the paint, so the Figur of the activities havent changed.

My test:
------------------------------------------------------------------------------------------------------------
public class customervisualAction implements IWorkbenchWindowActionDelegate {
  public void run(IAction action) {
            ...
      org.eclipse.bpel.model.Process testProcess = (org.eclipse.bpel.model.Process)editorpart.getDesignEditor().getProcess();
      GraphicalViewer testGraphicalViewer  = editorpart.getDesignEditor().getGraphicalViewer();
      BPELUtil.regenerateVisuals( testProcess, testGraphicalViewer);

/////////// i think this means the same with: ///////////////////////////////////////////
     IWorkbenchPage page = this.window.getActivePage();
      BPELMultipageEditorPart editorpart = (BPELMultipageEditorPart)page.getActiveEditor();
      editorpart.getDesignEditor().refreshGraphicalViewer();
-------------------------------------------------------------------------------------------------------------
But the both didnt work.
It works, only when i close the editor and open the bpel file again, or wenn ich drag the activity nodes with mouse.
How can i call the paint(Graphics graphics) method or make the system to call it, is there anyway to create a "fake event message" the cheat the system, tell it the activity nodes have been draged by the mouse and then take the change?

I so sorry that my diplomarbeit brought you so much trouble.

thant you.

Zhen

Back to the top