performOK not called (Properties) [message #444602] |
Fri, 15 October 2004 22:28 |
Eclipse User |
|
|
|
Originally posted by: manish.garg.gmail.com
Hi,
I have a properties page and the code snippet is as below. The propery
page comes up, but when I click OK, the performOk in my class is not called.
Is there something missing or something wrong?
Thanks.
P.
public class MyPropertyPage extends PropertyPage
implements IWorkbenchPropertyPage {
Text text_MessageLocation;
/**
*
*/
public MyPropertyPage () {
super();
// TODO Auto-generated constructor stub
}
public boolean performOk(){
setLocationValue(text_MessageLocation.getText());
return super.performOk();
}
protected void setLocationValue(String location){
IProject project = (IProject)getElement();
try {
project.setPersistentProperty(MessageIDProperty.LOCATION_PRO PERTY,
location);
} catch (CoreException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.01673 seconds