|How can I update property file in other plug-in? [message #726960]
||Tue, 20 September 2011 04:25
Registered: July 2011
Hello, Thank you for your attention.|
Sorry for my poor English.
As title, I want to update property file in other plug-in.
In attached file 1.png, you can see structure of project which has property files.
In attached file 2.png, you can see main program "Plan".
As you know, there is information for connection to database in client.properties.
The file is used in applicationContext.xml for spring framework.
I want to change the connection information as dialog in Plan.
I tried to use below code in core plug-in :
IWorkspace workspace = ResourcesPlugin.getWorkspace();
IWorkspaceRoot root = workspace.getRoot() ;
IProject project = root.getProject("com.clt.client.core");
IFile file = project.getFile("properties/client.properties");
and so on.
But, I couldn't access client.properties file.
How can I access the file and update it?
If I have to change structure of core plug-in, please advice me about that.
It is difficult to access some resource in eclipse as beginner.
Please help me.
Thank in advance.
Have a nice day.
(Size: 4.62KB, Downloaded 144 times)
(Size: 4.14KB, Downloaded 121 times)
Powered by FUDForum
. Page generated in 0.05364 seconds