JythonPlugin 

HOME INDEX SEARCH GO  

 <<O>>  Difference Topic JythonPlugin (r1.15 - 09 Sep 2003 - GwynEvans)
Added:
>
>

Had a problem with this with 922 after having it working with 896, in that the class file wasn't found when using the unziped hierarchy. Resolved by moving the ptyhon.jar into the IntelliJ lib folder and just jarring up the class files, gif file & plugin.xml into a JythonPlugin.jar.

-- GwynEvans - 10 Sep 2003

Changed:
<
<

%META:FIELD{name="IntelliJPluginClassification" title="IntelliJPluginClassification" value=""}%

>
>

%META:FIELD{name="IntelliJPluginClassification" title="IntelliJPluginClassification" value="Other"}%

Added:
>
>

%META:FILEATTACHMENT{name="JythonPlugin.jar" attr="" comment="jar - See text" date="1063140315" path="D:\Java\Idea922\plugins\JythonPlugin.jar" size="9506" user="GwynEvans" version="1.1"}%


 <<O>>  Difference Topic JythonPlugin (r1.14 - 18 Jun 2003 - AlexeyEfimov)
Changed:
<
<

%META:FIELD{name="TopicClassification" title="TopicClassification" value="IntelliJPluginPackage"}%

>
>

%META:FIELD{name="IntelliJPluginClassification" title="IntelliJPluginClassification" value=""}% %META:FIELD{name="TopicClassification" title="TopicClassification" value="IntelliJPluginArchive"}%


 <<O>>  Difference Topic JythonPlugin (r1.13 - 12 Dec 2002 - ThomasVollmer)
Changed:
<
<

*Unfortunately, I haven't figured out how to reload these classes yet. Any Jython gurus out there?*

>
>

Unfortunately, I haven't figured out how to reload these classes yet. Any Jython gurus out there?

Added:
>
>

Thanks for the pointers. Knowing that it's possible to do this is a big help. I might have some time soon to try and add this feature to the plugin. -- ThomasVollmer - 12 Dec 2002


 <<O>>  Difference Topic JythonPlugin (r1.12 - 11 Dec 2002 - GuyPiggford)
Added:
>
>

  • I've had to do something similar in my project and it involves isolating all access to jython so that everything get loaded through it's own class loader. When you need to flush this environment you simply close the last Interpreter down and switch to a new class loader. You need to be careful about what refereces you have left around so that everything gets garbage collected correctly, but with care it does work. (GuyPiggford)

 <<O>>  Difference Topic JythonPlugin (r1.11 - 09 Dec 2002 - ThomasVollmer)
Changed:
<
<

Unfortunately, I haven't figured out how to reload these classes yet. Any Jython gurus out there?

>
>

*Unfortunately, I haven't figured out how to reload these classes yet. Any Jython gurus out there?*

Added:
>
>

Thanks, looks like they've got new information there. I'll look into it. -- ThomasVollmer - 09 Dec 2002


 <<O>>  Difference Topic JythonPlugin (r1.10 - 09 Dec 2002 - JimMoore)
Added:
>
>


 <<O>>  Difference Topic JythonPlugin (r1.9 - 08 Dec 2002 - ThomasVollmer)
Added:
>
>

This plugin was tested with IntelliJ IDEA 3.0 Build 651 and Build 666 but might work with other builds.

Changed:
<
<

This is a preview release which has limited functionality and probably a few bugs.

>
>

This is a preview release which has limited functionality and probably a few bugs.

Changed:
<
<

How to use it

>
>

How to install it

Changed:
<
<

Download Jython from here, install it and place the file jython.jar into the folder plugins\JythonPlugin-0.1\lib. A new tool window named "Jython" should appear upon restart of IDEA. Type in a command and press enter to execute. Enjoy!

>
>

Download Jython from here, install it and place the file jython.jar into the folder plugins\JythonPlugin-0.1\lib.

Changed:
<
<

This plugin was tested with IntelliJ IDEA 3.0 Build 651 and Build 666 but might work with other builds.

>
>

How to use it

A new tool window named "Jython" should appear upon restart of IDEA. Type in a command and press enter to execute. Enjoy!

Changed:
<
<

%META:FORM{name="WebForm"}%

>
>

%META:FORM{name="IntelliJPluginWebForm"}% %META:FIELD{name="IntelliJPluginName" title="IntelliJPluginName" value="JythonPlugin"}% %META:FIELD{name="IntelliJPluginVersion" title="IntelliJPluginVersion" value="0.1"}% %META:FIELD{name="IntelliJPluginVendor" title="IntelliJPluginVendor" value="Thomas Vollmer"}% %META:FIELD{name="IntelliJPluginBinary" title="IntelliJPluginBinary" value="http://www.intellij.org/twiki/pub/Main/JythonPlugin/JythonPlugin-0.1.zip"}% %META:FIELD{name="IntelliJPluginSource" title="IntelliJPluginSource" value="http://www.intellij.org/twiki/pub/Main/JythonPlugin/JythonPlugin-0.1-src.zip"}%


 <<O>>  Difference Topic JythonPlugin (r1.8 - 02 Dec 2002 - AlexeyEfimov)
Changed:
<
<

%META:FORM{name="PluginWebForm"}%

>
>

%META:FORM{name="WebForm"}%


 <<O>>  Difference Topic JythonPlugin (r1.7 - 30 Nov 2002 - ThomasVollmer)
Added:
>
>

%META:FORM{name="PluginWebForm"}% %META:FIELD{name="TopicClassification" title="TopicClassification" value="IntelliJPluginPackage"}% %META:FIELD{name="TopicShortDescription" title="TopicShortDescription" value="Adds a Jython console in a tool window."}% %META:FIELD{name="TestedOnOS" title="TestedOnOS" value="OsWin2K, OsWinXP"}% %META:FIELD{name="ShouldRunOnOS" title="ShouldRunOnOS" value="AnyOS"}%


 <<O>>  Difference Topic JythonPlugin (r1.6 - 27 Oct 2002 - ThomasVollmer)
Changed:
<
<

This plugin was tested with IntelliJ IDEA 3.0 Build 651 but might work with other builds.

>
>

This plugin was tested with IntelliJ IDEA 3.0 Build 651 and Build 666 but might work with other builds.


 <<O>>  Difference Topic JythonPlugin (r1.5 - 21 Oct 2002 - ThomasVollmer)
Added:
>
>

%META:FILEATTACHMENT{name="JythonPlugin-0.1-src.zip" attr="" comment="src" date="1035221773" path="C:\vollmer_t\Private\Projects\IdeaPlugins\JythonPlugin-0.1-src.zip" size="8116" user="ThomasVollmer" version="1.1"}%


 <<O>>  Difference Topic JythonPlugin (r1.4 - 10 Oct 2002 - ThomasVollmer)
Changed:
<
<

This is a preview release which has very limited functionality and probably a few bugs.

>
>

This is a preview release which has limited functionality and probably a few bugs.

Changed:
<
<

Using the OpenAPI:

>
>

Using the OpenAPI:
Added:
>
>

Using the classes of your project (many thanks go to GordonTyler for figuring this out):

>>> from com.intellij.openapi.project import ProjectManager
>>> pm = ProjectManager.getInstance()
>>> projects = pm.getOpenProjects()
>>> from com.intellij.openapi.projectRoots import ProjectRootManager
>>> prm = ProjectRootManager.getInstance(projects[0])
>>> outputPath = prm.getOutputPaths()[0].getPath()
>>> import sys
>>> sys.path.append(outputPath)
>>> from <package> import <class>
>>> c = <class>(<params>)

Replace <package>, <class> and <params> with the appropriate values.
Unfortunately, I haven't figured out how to reload these classes yet. Any Jython gurus out there?

-- ThomasVollmer - 11 Oct 2002


 <<O>>  Difference Topic JythonPlugin (r1.3 - 08 Oct 2002 - ThomasVollmer)
Changed:
<
<

Download Jython from here, install it and place the file jython.jar into the folder plugins\JythonPlugin-0.1\lib. A new tool window named "Jython" should appear upon restart of IDEA. Enjoy!

>
>

Download Jython from here, install it and place the file jython.jar into the folder plugins\JythonPlugin-0.1\lib. A new tool window named "Jython" should appear upon restart of IDEA. Type in a command and press enter to execute. Enjoy!

Added:
>
>

Features

  • Command history (up arrow, down arrow)

Todo

  • Enable using classes of current project
  • Remove the input text box and make it a true console
  • Execute script file from project view
  • Run init script on startup/reset (global, per project)
Added:
>
>

Using the OpenAPI:


 <<O>>  Difference Topic JythonPlugin (r1.2 - 07 Oct 2002 - ThomasVollmer)
Added:
>
>

Examples

>>> from com.intellij.openapi.project import ProjectManager
>>> pm = ProjectManager.getInstance()
>>> projects = pm.getOpenProjects()
>>> projects[0].getProjectFile().getName()
>>> from com.intellij.openapi.wm import ToolWindowManager
>>> twm = ToolWindowManager.getInstance(projects[0])
>>> ids = twm.getToolWindowIds()
>>> ids
>>> tw = twm.getToolWindow("Jython")
>>> from java.util import Date
>>> d = Date()
>>> tw.setTitle(d.toString())
>>> tw.setTitle("")
>>> tw.hide(None)
>>> tw.getType()
>>> from com.intellij.openapi.wm import ToolWindowId
>>> tw = twm.getToolWindow(ToolWindowId.ANT_BUILD)
>>> tw.show(None)
>>> tw.hide(None)
>>>
>>> from com.intellij.openapi.projectRoots import ProjectRootManager
>>> prm = ProjectRootManager.getInstance(projects[0])
>>> prm.getFullClassPath()
>>> prm.getJdk().getName()
>>> prm.getJdk().getHomeDirectory()
>>>
>>> from com.intellij.openapi.application import ApplicationInfo
>>> ai = ApplicationInfo.getInstance()
>>> ai.getBuildDate().getTime()
>>> ai.getBuildNumber()
>>> ai.getMajorVersion()
>>> ai.getMinorVersion()
>>> ai.getVersionName()

-- ThomasVollmer - 08 Oct 2002


 <<O>>  Difference Topic JythonPlugin (r1.1 - 06 Oct 2002 - ThomasVollmer)
Added:
>
>

%META:TOPICINFO{author="ThomasVollmer" date="1033937700" format="1.0" version="1.1"}% %META:TOPICPARENT{name="ThomasVollmer"}%

JythonPlugin

What is it?

This plugin is a port of JPythonJB, a JBuilder plugin by GordonTyler.

This is a preview release which has very limited functionality and probably a few bugs. Comments, bug reports and feature requests are always welcome!

How to use it

Unzip the zip file into the "plugins" directory of IntelliJ IDEA. Download Jython from here, install it and place the file jython.jar into the folder plugins\JythonPlugin-0.1\lib. A new tool window named "Jython" should appear upon restart of IDEA. Enjoy!

This plugin was tested with IntelliJ IDEA 3.0 Build 651 but might work with other builds.

Acknowledgements

Thanks to GordonTyler for allowing me to port JPythonJB.

Version History

0.1 (06 Oct 2002)
  • Preview

-- ThomasVollmer - 07 Oct 2002 %META:FILEATTACHMENT{name="JythonPlugin-0.1.zip" attr="" comment="zip" date="1033937403" path="C:\vollmer_t\Private\Projects\IdeaPlugins\JythonPlugin\Releases\JythonPlugin-0.1.zip" size="10289" user="ThomasVollmer" version="1.1"}%


View | Diffs | r1.15 | > | r1.14 | > | r1.13 | More

e d i t a t t a c h r e f - b y d i f f s
Ideas,requests,problems regarding this site? Send feedback.
Copyright @ 2000-2003 by the contribution authors. All material on this collaboration tool is the property of the contributing authors.

Revision r1.1 - 06 Oct 2002 - 20:55 GMT - ThomasVollmer
Revision r1.15 - 09 Sep 2003 - 20:45 GMT - GwynEvans
Copyright © 2001 by the contributing authors. All material on this collaboration tool is the property of the contributing authors.
Ideas, requests, problems regarding this site? Send feedback.