Accessors Plugin

Compatible with  IntelliJ IDEA
11.02.2008
7 126
The Accessor Plugin provides two intention action which can be used to replace direct accesses of a property of a class with a suitable getter or setter method.

Download plugin

Version

Update date

Recent change notes

Version 0.9.2
  • Corrected write-action handling
  • Support for "this" references
Version 0.9.1 (initial release)
  • Replacement of direct access to a property of a class with an appropriate getter or setter method call
07.08.2012
Doesn't appear to work at all in IntelliJ IDEA 11.
Anonymous
10.03.2008
Regularly see NPEs from Accessors plugin 0.9.2 under IntelliJ IDEA 7.0.2 & Windows XP. Stacktrace as follows:

No message
java.lang.NullPointerException
at de.jpv.accessors.GetterAction.findGetterContext(GetterAction.java:25)
at de.jpv.accessors.GetterAction.findGetter(GetterAction.java:47)
at de.jpv.accessors.GetterAction.isAvailable(GetterAction.java:64)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass
.getActionsToShow(ShowIntentionsPass.java:193)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass
.a(ShowIntentionsPass.java:72)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass
.doApplyInformationToEditor(ShowIntentionsPass.java:174)
at com.intellij.codeHighlighting.TextEditorHighlightingPass
.applyInformationToEditor(TextEditorHighlightingPass.java:65)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$3
.run(PassExecutorService.java:13)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue
.run(LaterInvocator.java:12)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:10)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:87)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:188)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)



java.lang.NullPointerException
at de.jpv.accessors.GetterAction.findGetterContext(GetterAction.java:25)
at de.jpv.accessors.GetterAction.findGetter(GetterAction.java:47)
at de.jpv.accessors.GetterAction.isAvailable(GetterAction.java:64)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass
.getActionsToShow(ShowIntentionsPass.java:193)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass
.a(ShowIntentionsPass.java:72)
at com.intellij.codeInsight.daemon.impl.ShowIntentionsPass
.doApplyInformationToEditor(ShowIntentionsPass.java:174)
at com.intellij.codeHighlighting.TextEditorHighlightingPass
.applyInformationToEditor(TextEditorHighlightingPass.java:65)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$3
.run(PassExecutorService.java:13)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue
.run(LaterInvocator.java:12)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:10)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:87)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:188)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Please  sign in  to leave a comment.