Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » TutoGEF Example problem
TutoGEF Example problem [message #535017] Fri, 21 May 2010 05:25 Go to next message
Rima Mising name is currently offline Rima Mising nameFriend
Messages: 6
Registered: April 2010
Junior Member
Hi
Currently am looking for TutoGEF RCP Example .
In that Example i try to popup error dialog while entering wrong value as below but its error dialog popup twice ...

else if (id.equals(Service.PROPERTY_FLOOR)) {
try {
Integer floor = Integer.parseInt((String)value);
((Service)node).setEtage(floor);
}
catch (NumberFormatException e) {
MessageDialog.openError(null, "NumberFormat Exception",
"Entered Value is not Integer");
}
}

Suppose am using
JOptionPane.showMessageDialog(null, "Entered Value is not Integer", "Error",
JOptionPane.ERROR_MESSAGE);

its popup once....

So I need to know how to avoid MessageDialog popup twice

plz help....
Re: TutoGEF Example problem [message #535534 is a reply to message #535017] Mon, 24 May 2010 09:49 Go to previous message
Vijay RajFriend
Messages: 608
Registered: July 2009
Senior Member
can u provide a snippet reproducing the problem....

---------------------
why, mr. Anderson, why, why do you persist?
Because I Choose To.
Regards,
Vijay
Previous Topic:Creating only Figure Without UI.
Next Topic:How to dynamically add new items to the palette
Goto Forum:
  


Current Time: Thu Apr 25 01:46:40 GMT 2024

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

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

Back to the top