Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4131648
By: fabioz

Yes, should be possible... 

for details on how to bind an action to a keybinding and using the scripting
structure, take a look at:
http://www.fabioz.com/pydev/manual_articles_scripting.html

To get the path from a string in pydev scripting you would do: 

#save editor:
from org.eclipse.core.runtime import NullProgressMonitor
editor.doSave(NullProgressMonitor())

#get file complete path:
from org.python.pydev.core import REF
f = editor.getEditorFile() <-- returns a java.io.File (jython)
print REF.getFileAbsolutePath(f) <-- return full path in filesystem

and the other things are not actually pydev-dependent (but you should be able
to do it in the scripting structure relying on jython without any problems).

Cheers,

Fabio


______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to