Author Topic: File Reload  (Read 5166 times)

Offline earlgrey

  • Multiple posting newcomer
  • *
  • Posts: 101
File Reload
« 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 )
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: File Reload
« Reply #1 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

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: File Reload
« Reply #2 on: September 07, 2014, 09:19:04 pm »
The reload happens when the application receives an activation event so try alt-tabbing...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline earlgrey

  • Multiple posting newcomer
  • *
  • Posts: 101
Re: File Reload
« Reply #3 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 ?
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: File Reload
« Reply #4 on: September 09, 2014, 09:04:52 pm »
I doubt it will work.  ::)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline earlgrey

  • Multiple posting newcomer
  • *
  • Posts: 101
Re: File Reload
« Reply #5 on: September 09, 2014, 09:05:51 pm »
I shall look closer.
* OS = Debian Buster - Linux 4.19.06 x64 SMP
* C::B = svn11267 wx-3.0.4 - Linux, unicode 64 bit

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: File Reload
« Reply #6 on: September 09, 2014, 10:14:03 pm »
Calling Manager::Get()->GetEditorManager()->CheckForExternallyModifiedFiles() should do what you want.