|
|
| 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"}% |
|
|
| Changed: |
< < |
%META:FIELD{name="TopicClassification" title="TopicClassification" value="IntelliJPluginPackage"}%
| > > |
%META:FIELD{name="IntelliJPluginClassification" title="IntelliJPluginClassification" value=""}%
%META:FIELD{name="TopicClassification" title="TopicClassification" value="IntelliJPluginArchive"}% |
|
|
| 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 |
|
|
| 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)
|
|
|
| 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 |
|
|
| 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: |
< < |
| > > |
|
| 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.
| > > |
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"}% |
|
|
| Changed: |
< < |
%META:FORM{name="PluginWebForm"}%
| > > |
%META:FORM{name="WebForm"}% |
|
|
| 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"}% |
|
|
| 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. |
|
|
| 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"}% |
|
|
| 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:
| > > |
|
| 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 |
|
|
| 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: |
> > |
- Command history (up arrow, down arrow)
- 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: |
|
|
| Added: |
> > |
>>> 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 |
|
|
| Added: |
> > |
%META:TOPICINFO{author="ThomasVollmer" date="1033937700" format="1.0" version="1.1"}%
%META:TOPICPARENT{name="ThomasVollmer"}%
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!
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.
Thanks to GordonTyler for allowing me to port JPythonJB.
0.1 (06 Oct 2002)
-- 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
|
|