HippoEDIT can open the Class file??

Started by false007, November 19, 2010, 01:56:11 AM

Previous topic - Next topic

false007

my english is not very well.

Question 1:
  see example:
    when I edit one PHP file , there is some code:

                     $config = Config_Manage::getAllConfig();

   how to  quick open Config_Manage.php class file??

Question 2:
     other editor modified some files but HippoEdit have no Tips.


I use HippoEDIT 1.49  ;D

thanks.
[url="http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371"]http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371[/url]

Stefan

Q1:
$config = Config_Manage::getAllConfig();

A1:
I think you could configure an tool with some parameters:
%FileDir%%SelectedText%.php

%FileDir% ==> Dir of current file
%SelectedText% ==> selected text => Config_Manage
.php ==> extension

If you are interested i can show you how... there is somewhere an other thread showing this howto.


Q2:
other editor modified some files but HippoEdit have no Tips.

A2:
You mean the current open document is modified by an other editor, but HippoEDIT didn't inform you about this issue?
Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

alex

Thanks Stefan!

1) In 100% case it is not possible by HE itself. You need a tool (as Stefan has suggested) for 1.4x or background script (will be available in 1.50) to resolve your request and find+open corrsponding file. Another possibility to reuse ctags tool for parsing. In this case plugin will be necessary (also from 1.50). There will be one build in feature in 1.50 which can help, but it will work rather rare. HE 1.50 search for labels on Smart Navigate though all open documents. So, if you do not have label (class definition) for Config_Manage in current file HE will search all open documents for lable with such name (class definition) and will jump there.

2) Normally editor should inform you about update, if you have not disabled confirmation popup some when. Or another reason, from some recent versions, HE updates non-modified and not edited in current session files silently. There is some flag to disable this.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

false007

Q1:
$config = Config_Manage::getAllConfig();

my class file  can be autoloaded  by PHP.

Config is dir, Manage is filename, Config_Manage is class name.

do you know how to config it???


Quote
A2:
You mean the current open document is modified by an other editor, but HippoEDIT didn't inform you about this issue?

yes,I don't know how to config it .

[url="http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371"]http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371[/url]

Stefan

To Q1 (open Config_Manage.php)
Please see if this example will work for you >> http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371

--

To Q2 (inform me at external modification)
Please enable menu "File > Auto-Reload"  (after external modification)
This is an setting for the current open file only (as far as i understand)

(Note: there are also some special settings via settings.xml, see >>> http://forum.hippoedit.com/?/topic,144.msg3543.html#msg3543)

Stefan, HippoEDIT beta tester 
HippoEDIT - the editor programmers wants to code thyself when they are dreaming.        -Don't just edit. HippoEDIT!-

false007

[url="http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371"]http://forum.hippoedit.com/?/topic,536.msg2371.html#msg2371[/url]