Skip to main content


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 13:53
vinny503 Missing name is currently offline vinny503 Missing nameFriend
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: Tue Apr 23 07:50:41 GMT 2024

Powered by FUDForum. Page generated in 0.03259 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top