Author Topic: HippoEDIT can open the Class file??  (Read 3292 times)

Offline false007

  • Registered User
  • Jr. Member
  • *
  • Posts: 60
  • Karma: +0/-0
    • View Profile
HippoEDIT can open the Class file??
« on: November 19, 2010, 01:56:11 am »
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.
« Last Edit: November 19, 2010, 04:17:14 am by false007 »

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Re: HippoEDIT can open the Class file??
« Reply #1 on: November 19, 2010, 10:14:03 am »
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?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2171
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: HippoEDIT can open the Class file??
« Reply #2 on: November 19, 2010, 12:24:20 pm »
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.

Offline false007

  • Registered User
  • Jr. Member
  • *
  • Posts: 60
  • Karma: +0/-0
    • View Profile
Re: HippoEDIT can open the Class file??
« Reply #3 on: November 19, 2010, 12:27:22 pm »
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 .


Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
    • View Profile
Re: HippoEDIT can open the Class file??
« Reply #4 on: November 20, 2010, 12:40:06 pm »
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)


Offline false007

  • Registered User
  • Jr. Member
  • *
  • Posts: 60
  • Karma: +0/-0
    • View Profile
Re: HippoEDIT can open the Class file??
« Reply #5 on: November 22, 2010, 05:22:10 am »
thinks

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
2032 Views
Last post March 19, 2009, 08:40:00 pm
by alex
1 Replies
1655 Views
Last post March 21, 2009, 03:16:19 pm
by alex
1 Replies
1421 Views
Last post July 30, 2010, 11:17:26 am
by alex
1 Replies
2788 Views
Last post October 07, 2011, 07:53:43 pm
by alex
6 Replies
1651 Views
Last post June 17, 2015, 11:17:54 pm
by paw