The following forum message was posted by fabioz at
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4431233:
Yes, the default dir() sucks for jython since most things are reflected...
On org.python.pydev/PySrc/jyimportsTipper.py, there's a dirObj method that can
provide a better dir() for jython (you should be able to add that to your
pythonpath
at runtime and use it -- i.e.:
sys.path.append('..../path_to/org.python.pydev/PySrc/')
Note that ideally you'd create your own marker type... (add it to the plugin.xml
and restart eclipse)
<extension
id="my.marker"
name="My marker name"
point="org.eclipse.core.resources.markers">
<super type="org.eclipse.core.resources.problemmarker"/>
<persistent value="true"/>
</extension>
Then you'd do something as:
resource.deleteMarkers(markerType, false, IResource.DEPTH_ZERO)
Then create the markers you want... you can use:
org.eclipse.ui.texteditor.MarkerUtilities.createMarker(IResource, Map, String)
to create them (there's a nice tutorial regarding markers at:
http://www.eclipse.org/articles/Article-Mark%20My%20Words/mark-my-words.html).
Cheers,
Fabio
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Pydev-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pydev-users