Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
Workspace loading and Active Project
frithjofh:
@jens
Hello Jens,
you mentioned a plugin you use for developement: "DisplayEvents-plugin". Where do I find this one to use it myself?
Regards
frithjof
MortenMacFly:
--- Quote from: nausea on October 27, 2011, 05:45:14 pm ---you mentioned a plugin you use for developement: "DisplayEvents-plugin". Where do I find this one to use it myself?
--- End quote ---
Search the forums. ;-)
MortenMacFly:
--- Quote from: daniloz on October 27, 2011, 05:01:03 pm ---Ok, I haven't dug into it neither, so I'm also not sure....
--- End quote ---
I had a look: I guess for your purpose this event is no good. It really fires several times, whenever a project is closed, all projects are closed, a WS is closed, a project has finished loading and a WS has finished loading. If that' still OK with you - go ahead. However, the most accurate way for your purpose would really be to implement such an event yourself and provide us with a patch.
Alpha:
--- Quote from: MortenMacFly on October 27, 2011, 07:26:14 pm ---
--- Quote from: nausea on October 27, 2011, 05:45:14 pm ---you mentioned a plugin you use for developement: "DisplayEvents-plugin". Where do I find this one to use it myself?
--- End quote ---
Search the forums. ;-)
--- End quote ---
I also indexed it in the plugins page about a month ago.
daniloz:
--- Quote from: MortenMacFly on October 27, 2011, 07:28:08 pm ---
--- Quote from: daniloz on October 27, 2011, 05:01:03 pm ---Ok, I haven't dug into it neither, so I'm also not sure....
--- End quote ---
I had a look: I guess for your purpose this event is no good. It really fires several times, whenever a project is closed, all projects are closed, a WS is closed, a project has finished loading and a WS has finished loading. If that' still OK with you - go ahead. However, the most accurate way for your purpose would really be to implement such an event yourself and provide us with a patch.
--- End quote ---
Here is the patch for the event EVT_WORKSPACE_FINISH_LOADING...
[Edit]
And here the DisplayEvents plugin log (the end of it, actually):
--- Code: ---08:26:30,294 => cbEVT_PROJECT_TARGETS_MODIFIED
Loading target Debug
Loading project files...
08:26:30,296 => cbEVT_PROJECT_BEGIN_ADD_FILES
08:26:30,297 => cbEVT_PROJECT_END_ADD_FILES
2 files loaded
Done loading project in 10ms
08:26:30,302 => cbEVT_BUILDTARGET_SELECTED
08:26:30,910 => cbEVT_COMPILER_SET_BUILD_OPTIONS
08:26:30,911 => cbEVT_COMPILER_SET_BUILD_OPTIONS
08:26:30,912 => cbEVT_COMPILER_SET_BUILD_OPTIONS
08:26:30,920 => cbEVT_PROJECT_ACTIVATE
EnvVars: Obtained 'default' as active envvar set from config.
EnvVars: Active envvar set is 'default', config path '/sets/default'.
EnvVars: Searching for envvars in path '/sets/default'.
EnvVars: Read 0/0 envvars in path '/sets/default'.
08:26:30,954 => cbEVT_PROJECT_OPEN
08:26:31,002 => cbEVT_PROJECT_OPEN
08:26:31,004 => cbEVT_PROJECT_OPEN
08:26:31,006 => cbEVT_PROJECT_OPEN
08:26:31,007 => cbEVT_WORKSPACE_CHANGED
08:26:31,007 => cbEVT_WORKSPACE_FINISH_LOADING
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version