View unanswered posts | View active topics


Reply to topic  [ 2 posts ] 
Plugins storage in Project file 
Author Message
Admin

Joined: Wed Aug 31, 2005 7:27 am
Posts: 10747
Location: Paris, France
Post Plugins storage in Project file
Rejoice plugins developers, FlashDevelop 4 introduces project storage.

Storage isn't available in IProject, you'll have to cast it to Project:
- Add a reference to ProjectManager in your project
- cast PluginBase.CurrentProject (IProject) to Project

Now your project object has:
- project.Storage : Dictionary<string, string> where you can add new key-value pairs,
- project.Save() : persist your data (it will not be written automatically)


Fri Jun 03, 2011 7:37 pm
Profile WWW
Member

Joined: Tue Jan 19, 2010 7:14 pm
Posts: 12
Post Re: Plugins storage in Project file
Thanks Philippe!


Thu Jun 30, 2011 9:36 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.