Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Access Persistent Property value from outside of PropertyPage
Access Persistent Property value from outside of PropertyPage [message #299460] Fri, 17 February 2006 12:21 Go to next message
Eclipse UserFriend
Originally posted by: zhengxie.ie.ibm.com

I have used the new plugin wizard creatd a plugin with property dialog ( a
subclass of PropertyPage), in it I use the following code to persist a
property.

public class MyPropertyPage extends PropertyPage {

.....
public boolean performOk() {
// store the value in the outputSqlFile text field
try {
((IResource) getElement()).setPersistentProperty(
new QualifiedName(Platform.getBundle("com.myPlugin").getSymbolicName(),
OUTPUT_SQL_FILE_PROPERTY),
outputSqlFileText.getText());

} catch (CoreException e) {
return false;
}
return true;
}

I need to get the persistent property value outside of MyPorpertyPage,
because the value needs to be available even the user does not open the
properties dialog. How can I do it?

I have searched eclipse help, it says "Persistent properties are used to
store resource-specific information on disk. The value of a persistent
property is an arbitrary string. Your plug-in decides how to interpret the
string. The strings are intended to be short (under 2KB). "

But how do I access the property persisted on the PropertyPage, from
outside of the PropertyPage class?

Thanks a million.

Jenny
Re: Access Persistent Property value from outside of PropertyPage [message #1728648 is a reply to message #299460] Wed, 06 April 2016 09:00 Go to previous message
Vinod Kumar is currently offline Vinod KumarFriend
Messages: 1
Registered: April 2016
Junior Member
I am also facing same problem. Could, some one please help me?

Thanks
ALEX
Previous Topic:Tab Sequence properties is not working properly
Next Topic:Eclipse Mars system.setproperty javax.net.ssh.truststore not working anymore
Goto Forum:
  


Current Time: Tue Mar 19 06:39:00 GMT 2024

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

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

Back to the top