Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » PopUp window appears before the GMF Editor comes up(PopUp window appears before the GMF Editor comes up)
PopUp window appears before the GMF Editor comes up [message #757097] Wed, 16 November 2011 08:53
vinny503 Missing name is currently offline 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(Cool,
getMapMode().DPtoLP(Cool));
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
Previous Topic:Combine two ecore Models
Next Topic:[SOLVED] How to build this type of diagram?
Goto Forum:
  


Current Time: Wed Jul 30 15:24:28 EDT 2014

Powered by FUDForum. Page generated in 0.01305 seconds