[ANN] MiniWiki plugin, v0.4
see: http://www.intellij.org/twiki/bin/view/Main/MiniWikiPlugin
A new version of the MiniWiki plugin is available: v0.4
It brings 3 new features:
- new : press
. on anchor part (after the '#')of a target => Quick WikiDoc
. on file part (before the '#') of a target => display active list
of anchors
(select an anchor and press enter, to jump to it)
. on a class => std IDEA QuickJavadoc
- new : :same as , but closes the calling editor
(id=MiniWiki.JumpAndReuseEditor)
- new : class name completion, in text editors
(type "java." and press (Ctrl-Space])
Attachment(s):
CtrlQ-v04.png
请先登录再写评论。
Alain Ravet wrote:
When I clicked with middle button on file tab
this happened:
java.lang.NullPointerException
at
com.ravet.ideaplugins.miniWiki.SuperDataContext.sourceEditorPsiFile(SuperDataContext.java:37)
at
com.ravet.ideaplugins.miniWiki.AbstractWikiFilterAction.fileIsPlainText(AbstractWikiFilterAction.java:31)
at
com.ravet.ideaplugins.miniWiki.WikiGotoAction.actionPerformed(WikiGotoAction.java:33)
at com.intellij.openapi.e.a.f.a(f.java:25)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:132)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:152)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Alain Ravet wrote:
When I clicked with middle button on file tab
this happened:
java.lang.NullPointerException
at
com.ravet.ideaplugins.miniWiki.SuperDataContext.sourceEditorPsiFile(SuperDataContext.java:37)
at
com.ravet.ideaplugins.miniWiki.AbstractWikiFilterAction.fileIsPlainText(AbstractWikiFilterAction.java:31)
at
com.ravet.ideaplugins.miniWiki.WikiGotoAction.actionPerformed(WikiGotoAction.java:33)
at com.intellij.openapi.e.a.f.a(f.java:25)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:132)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:152)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
news.intellij.net wrote:
>>
Is it the same event as a right click?
>
>
>
>
Fixed in upcoming (0.5) version.
Thanks for reporting.
Alain
Select "Go to class" (ctrl-N)
Press ctrl-B
Get the following exception:
Chris Sherratt wrote:
>Select "Go to class" (ctrl-N)
>Press ctrl-B
>java.lang.NullPointerException
>
>
Fixed in v0.5,
as are all the NPEs due to pressing Ctrl-B in unappropriate places.
Alain
Hello Alain,
Exception in MiniWiki 0.4, Idea 3185. In any tree view (project, package,
...), control-click to select a file.
java.lang.NullPointerException
at com.ravet.ideaplugins.miniWiki.SuperDataContext.sourceEditorPsiFile(SuperDataContext.java:37)
at com.ravet.ideaplugins.miniWiki.AbstractWikiFilterAction.fileIsPlainText(AbstractWikiFilterAction.java:31)
at com.ravet.ideaplugins.miniWiki.WikiGotoAction.actionPerformed(WikiGotoAction.java:33)
at com.intellij.openapi.keymap.a.f.a(f.java:27)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:103)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:67)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
I always use XDoclet as code generator for my development. I have one idea about navigator in javadoc comment. The following is my code:
I think I can navigator to file according file name in javadoc comment,such as "index.jsp" file name in struts.action-forward tag. I think this is very convenient way,otherwise I need copy file name, press CtrlShiftN,past filename,and press Enter. Is it possible?
linux_china
(I'm sure you have a better name)
>.. XDoclet..
>I think I can navigator to file according file name in javadoc comment,such as "index.jsp" file name in struts.action-forward tag. I think this is very convenient way,otherwise I need copy file name, press CtrlShiftN,past filename,and press Enter. Is it possible?
>
I need to find a way to map "/index.jsp" to the project/current module
path: where is the file located, relative to the module root?
Alain
Hi Alain Ravet,
the file name in XDoclet tag is just a file name under project root path,and it is under module root directory,maybe deeply. We need to search this file under module root. For Struts webapp,if module root is "d:\source\myweb",and "index.jsp" may be "d:\source\myweb\index.jsp" or "d:\source\myweb\WEB-INF\webpages\index.jsp" and so on. I think the MiniWiki can search the destination files by file name.
linux_china wrote:
>..it is under module root directory,maybe deeply. We need to search this file under module root. For Struts webapp,if module root is "d:\source\myweb",and "index.jsp" may be "d:\source\myweb\index.jsp" or "d:\source\myweb\WEB-INF\webpages\index.jsp" and so on. I think the MiniWiki can search the destination files by file name.
>
Note:
- Currently - v0.5-, on /index.jsp woult trigger my
"CreateFileByIntention", because "/index.jsp" is a valid path, and it
leads to no file yet.
- Had you written "//index.jsp", it would have worked, because this is
the syntax I chose for moduleRelative files (and "///" for
///projectRelative path)
I can modify the algorithm, when the target doesn't exist, to look for
it under the project and module root. It's easy, and I'll add it in the
next release.
I wonder: are there other storage locations, configurable through IDEA's
(web-app) settings?
Alain
>I wonder: are there other storage locations, configurable through IDEA's (web-app) settings?
I think we cann't do it well. Some frameworks,such as Struts,Spring, path info are storaged in framework's configuration file.Getting some path info from framework configuration file is not very good solution.
>I can modify the algorithm, when the target doesn't exist, to look for it under the project and module root. It's easy, and I'll add it in the next release.
If search is very efficient,and I like this very much. :)
>Had you written "//index.jsp", it would have worked, because this is the syntax I chose for moduleRelative files (and "///" for ///projectRelative path)
I think the format of file name,such as "//index.jsp" or "///index.jsp",is not important,because different frameworks need the special format. I think moduleRelative is very common,just beause web module type.
I very like this feature,and we can navigator as our think with MiniPlugin. :)
I have one question about "CreateFileByIntention",and I think we can create file by choose some file templates by extention name,this is very essential.
linux_china
>
That's how it works: before creating a file, it lets you choose a
template, from the ones associated to the extension.
I'll release this version in about a week.
What you'll get (partial)
- Ctrl-B on url, email, ..
- Alt-Ctrl-M in text file => Extract Text
- Shift-Ctrl-I in icon resource path strings => display the icon
- project structure
home, todo, done and bug files.
One new shortcut:
- Shift-Ctrl-E : Recent Wiki Files
... and more..
Alain
>One new shortcut: Shift-Ctrl-E : Recent Wiki Files
I think you can change this shortcut,and it conflicts with PropertiesEditorPlugin on "Externalize String...". PE is very well for someframework development. I am waiting for MimiWikiPlugin. :)
linux_china wrote:
>>One new shortcut: Shift-Ctrl-E : Recent Wiki Files
>>
>>
>I think you can change this shortcut,and it conflicts with PropertiesEditorPlugin on "Externalize String...". PE is very well for someframework development. I am waiting for MimiWikiPlugin. :)
>
1/
AFAIK, PE doesn't work in plain text files, so you would be safe in most
cases, as you would use the MiniWiki only - mostly - in text and java files.
2/
Anyway, I plan to detect the conflict, when PE is installed, and warn
the user about it.
Would be a good candidate on all platforms?
If I find the way to change the shortcut through the openAPI, I could
ease that step for the user.
Alain
Hi Alain Ravet,
I have one question about MiniWiki. After I install this plugin, I found some menu items became unvisible. If I remove this plugin,all the menu items are fine. I post a picture to describe this case. I have no idea about this question.
Attachment(s):
MiniWiki_error.JPG
linux_china wrote:
>Hi Alain Ravet,
>
Hi linux_china
>..After I install this plugin, I found some menu items became unvisible.
>
It's a bug. You'll notice the same problem in the keyboard shortcut
settings: the labels are blank for those 2 actions.
It's fixed in v0.5... patience..
Alain