Sorry, but you'll have to try again and be more clear.
It is not possible to understand what you're trying to achieve from your first post.
What is the meaning for "message"?
wxString theName;
EditorManager* em = Manager::Get()->GetEditorManager();
if (em)
{
EditorBase* eb = em->GetActiveEditor();
if (eb)
{
theName = eb->GetFilename();
}
}
To be honest we should do something similar on the inside, since I also have a nice use case for this :Well a file can belong to many projects/targets. What would you do then? Ask which one to activate?
addition in our right click menu : activate project containing "this" file.
Well a file can belong to many projects/targets. What would you do then? Ask which one to activate?CodeCompletion plugin also have such issue. Currently, we just search every opened projects, and choose the first one matches the file.
If you just want to get the name of the file in the active editor, something like this should work:Code
wxString theName;
EditorManager* em = Manager::Get()->GetEditorManager();
if (em)
{
EditorBase* eb = em->GetActiveEditor();
if (eb)
{
theName = eb->GetFilename();
}
}
Warning: not tested, just written from memory
Ollydbg: I doubt it is that.
Bruce: If you really want to help you, you have to try harder to explain what do you want to achieve.
As far as I can understand, you want to find a way to get the full path to the active file?
killerbot: you can use: "right click on the tab->show file in the project tree"
To be honest we should do something similar on the inside, since I also have a nice use case for this :Well a file can belong to many projects/targets. What would you do then? Ask which one to activate?
addition in our right click menu : activate project containing "this" file.