Code::Blocks

User forums => General (but related to Code::Blocks) => Topic started by: earlgrey on September 07, 2014, 06:16:20 pm

Title: File Reload
Post by: earlgrey on September 07, 2014, 06:16:20 pm
In the case of generated files within a C::B project,  it takes a certain amount of time to C::B to detect that the file changed.

Is it possible to implement a "reload" option somewhere ? ( in the OpenFilesList plugin for example, or under the "projects" tab )

Regards -

( It is just a suggestion, not an order , neither a request )
Title: Re: File Reload
Post by: stahta01 on September 07, 2014, 07:44:23 pm
If on Windows you might try seeing if the Plugin modpoller helps you.
Note: IIRC, You have to compile it yourself.

If not on Windows, you might see if the Plugin modpoller can be ported to your OS without a lot of work.

http://wiki.codeblocks.org/index.php?title=ModPoller_plugin (http://wiki.codeblocks.org/index.php?title=ModPoller_plugin)

Tim S.
Title: Re: File Reload
Post by: oBFusCATed on September 07, 2014, 09:19:04 pm
The reload happens when the application receives an activation event so try alt-tabbing...
Title: Re: File Reload
Post by: earlgrey on September 09, 2014, 09:00:12 pm
Solution is in EditorBase, adding a "reload" item to the context menu when the wxPoint is inside the OpenFilesList plugin.

Are you interested ?
Title: Re: File Reload
Post by: oBFusCATed on September 09, 2014, 09:04:52 pm
I doubt it will work.  ::)
Title: Re: File Reload
Post by: earlgrey on September 09, 2014, 09:05:51 pm
I shall look closer.
Title: Re: File Reload
Post by: jens on September 09, 2014, 10:14:03 pm
Calling Manager::Get()->GetEditorManager()->CheckForExternallyModifiedFiles() should do what you want.