Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » performOK not called (Properties)
performOK not called (Properties) [message #444602] Fri, 15 October 2004 22:28 Go to next message
Eclipse UserFriend
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 14:44 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
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();
> }
> }
>
>
>
Previous Topic:Editor closing/background
Next Topic:Centralized event manager
Goto Forum:
  


Current Time: Fri Apr 19 01:31:14 GMT 2024

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

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

Back to the top