I have the following case: Code that uses "VERSION" is temporarily disabled.
PE doesn't see it as usage and that's technically correct, but the code would break once the code is uncommented. As for comments, it would be nice to have a checkbox indented from the Java files checkbox to allow searching in comments.
What would be great would be to allow configuration of what is a usage and what is not (via regular expressions, for example).
Then custom usages could be configured. For example, if resources are used only by calling MyResourceClass.getString(""), then that could
be configured and thus all the other occurrences of the string won't be
shown.
What do you think?
Amnon
"Dmitry Kashin" ]]> wrote in message news:18748760.1084219174102.JavaMail.itn@is.intellij.net...
Hi, Actually search in java files provided only in string literals (PSI) and comments not treated as literals of cource. Adding textual search in java files may be done but not in near future. Wildcard renaming is next main aim but it implementation not clear yet.
Great. The VERSION problem is fixed.
Now how about remembering the delimiter between IJ runs and doing the
alphabetical sort case insensitively (i.e. A, B, C, c, d, etc.)?
Thanks again for a very useful plug-in!
Amnon
"Dmitry Kashin" <no_mail@jetbrains.com> wrote in message
news:18748760.1084219174102.JavaMail.itn@is.intellij.net...
>
>
I have the following case:
Code that uses "VERSION" is temporarily disabled.
PE doesn't see it as usage and that's technically correct, but the code
would break once the code is uncommented.
As for comments, it would be nice to have a checkbox indented from the Java
files checkbox to allow searching in comments.
What would be great would be to allow configuration of what is a usage and
what is not (via regular expressions, for example).
Then custom usages could be configured. For example, if resources are used
only by calling MyResourceClass.getString(""), then that could be configured and thus all the other occurrences of the string won't be shown. What do you think? Amnon "Dmitry Kashin" ]]> wrote in message
news:18748760.1084219174102.JavaMail.itn@is.intellij.net...
>
>
Hi,
Actually delimiter as and position in editor must be saved between runs if not it's bug and I'll fix it if it appear.
TIA,
Dmitry
Hi,
Actually search in java files provided only in string literals (PSI) and comments not treated as literals of cource. Adding textual search in java files may be done but not in near future. Wildcard renaming is next main aim but it implementation not clear yet.
TIA,
Dmitry
Hi!
That happend with second editor for multi-languaged files? I see i little
bit from large file at bottom editor.
Thanks!
I find myself needing to set it to _ every time I start IntelliJ, so it
appears to be a bug.
Amnon
"Dmitry Kashin" <no_mail@jetbrains.com> wrote in message
news:28807908.1084284117878.JavaMail.itn@is.intellij.net...
not it's bug and I'll fix it if it appear.
>
Here screen shots
messages.propeties:
And messages_ru.properties:
Alexey Efimov - Java Developer
Tops BI
http://www.topsbi.com
Attachment(s):
clip_image002.jpg
mesasges.properties here:
Alexey Efimov - Java Developer
Tops BI
http://www.topsbi.com
Attachment(s):
clip_image002.jpg
Submitted
Sorry cannot reproduce it here :(
TIA,
Dmitry
Sorry Alexey cannot reproduce it may be you have somewhere in content of project file with same name as expected but different properties?
TIA,
Dmitry
Dmitry,
Two back-to-back exceptions when trying to Find Usages on a property-
Error message: ZipHelperException
java.lang.NullPointerException
at com.intellij.psi.impl.source.l.getText(l.java:77)
at
com.propertiesEditor.propedit.findUsages.PropertyFindUsagesCommand.execute(PropertyFindUsagesCommand.java:66)
at
com.propertiesEditor.propedit.findUsages.PropertyUsageViewDescriptor$1.run(PropertyUsageViewDescriptor.java:35)
at com.intellij.openapi.progress.a.a.runProcess(a.java:55)
at com.intellij.openapi.l.a.c$1a_.run(c$1a_.java:3)
Then followed by this exception-
Error message: Unexpected duplicated usage!
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:30)
at com.intellij.usageView.a.d$e_.foundUsage(d$e_.java:89)
at com.intellij.usageView.a.d.a(d.java:304)
at com.intellij.usageView.a.d.a(d.java:447)
at com.intellij.usageView.a.d.access$500(d.java:355)
at com.intellij.usageView.a.d$2.run(d$2.java:1)
at com.intellij.openapi.l.a.c.runReadAction(c.java:165)
at com.intellij.usageView.a.d.a(d.java:550)
at com.intellij.usageView.a.d.r(d.java:193)
at com.intellij.usageView.a.d.(d.java:93) at com.intellij.usageView.a.g.(g.java:331) at com.intellij.usageView.a.g.]]>(g.java:35)
at com.intellij.usageView.a.i.addContent(i.java:24)
at
com.propertiesEditor.propedit.controller.PropertiesFileEditorItem.findUsagesOfProperty(PropertiesFileEditorItem.java:189)
at
com.propertiesEditor.propedit.action.PropertiesFindUsagesAction.actionPerformed(PropertiesFindUsagesAction.java:34)
at com.intellij.openapi.f.a.m$b_.actionPerformed(m$b_.java:3)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at com.intellij.openapi.f.a.m.fireActionPerformed(m.java:55)
at com.intellij.ui.a.a.h.doClick(h.java:29)
at com.intellij.ui.a.a.h.access$300(h.java:81)
at com.intellij.ui.a.a.h$a_.mouseReleased(h$a_.java:2)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.r.b(r.java:43)
at com.intellij.ide.r.a(r.java:86)
at com.intellij.ide.r.dispatchEvent(r.java:99)
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)
Dmitry Kashin wrote:
Thanks for report
Will be fixed ASAP but I'm affraid not this week.
TIA,
Dmitry
Fixed.
Fixed.