performOK not called (Properties) [message #444602] |
Fri, 15 October 2004 18: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();
}
}
|
|
|
Re: performOK not called (Properties) [message #444636 is a reply to message #444602] |
Mon, 18 October 2004 10:44  |
Eclipse User |
|
|
|
Please ask your question in the eclipse.platform newsgroup.
"Piranha" <manish.garg@gmail.com> wrote in message
news:ckpikc$9bo$1@eclipse.org...
> 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.03830 seconds