PopUp window appears before the GMF Editor comes up [message #757097] |
Wed, 16 November 2011 13:53 |
vinny503 Missing name Messages: 156 Registered: August 2011 |
Senior Member |
|
|
Hi,
I am trying to implement a pop up window when a node is dragged and dropped on to the editor, I am able to do that but it appears twice even before the GMF Editor comes up....!!
I am having the popup window class in xxx.diagram.edit.parts package and invoking that in xxxFigure inner class of xxxEditPart.java
Sample code shown below, I have highlighted the added code to the xxxFigure() constructor and InputDialog is my popup window class
-------sample code--------
/**
* @generated
*/
public xxxFigure() {
this.setCornerDimensions(new Dimension(getMapMode().DPtoLP(,
getMapMode().DPtoLP());
this.setBackgroundColor(COMP_Color);
this.setBorder(new MarginBorder(getMapMode().DPtoLP(5),
getMapMode().DPtoLP(5), getMapMode().DPtoLP(5),
getMapMode().DPtoLP(5)));
Shell shell = new Shell();
int var = 100;
dialog = new InputDialog(shell,var);
dialog.open();
createContents();
this.setForegroundColor(COMP_Color);
}
I am not able to resolve this...Does anyone have the idea ??
Thanks,
Vinay
|
|
|
Powered by
FUDForum. Page generated in 0.03259 seconds