Home Download Buy Blog Forum Support

Display Functions (Java)

Display Functions (Java)

Postby C0D312 on Sat Nov 19, 2011 12:08 am

*Java ONLY*

Display Functions is a ST2 Plugin that displays an object's available methods. pressing period after an Object's name will activates the autocomplete, preloaded with the object's methods.

Available Here: https://github.com/BoundInCode/Display-Functions

Questions, comments and criticisms are welcome.

Display Functions Preview.png
Display Functions Preview.png (56.49 KiB) Viewed 8632 times
Last edited by C0D312 on Mon Jan 09, 2012 5:29 pm, edited 1 time in total.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Display Functions

Postby impeached on Sat Nov 19, 2011 3:12 am

This is awesome! :)

Good work.

I have absolutely no reason to use eclipse anymore now, lol. ;)
impeached
 
Posts: 20
Joined: Mon Nov 14, 2011 11:18 pm

Re: Display Functions

Postby orefalo on Sat Nov 19, 2011 8:31 am

really good job.

new to ST2, any idea how to format java code ?
orefalo
 
Posts: 1
Joined: Sat Nov 19, 2011 8:28 am

Re: Display Functions

Postby C0D312 on Sat Dec 03, 2011 6:11 am

*Update*

Plugin now supports multiple method calls.

e.g.
Code: Select all
obj.method().otherMethod()|


Feel free to report bugs or suggest new features.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Display Functions

Postby gabriev82 on Sat Dec 03, 2011 9:12 am

I need this for C++! ;)
gabriev82
 
Posts: 22
Joined: Sat Nov 26, 2011 3:10 pm

Re: Display Functions

Postby quarnster on Sat Dec 03, 2011 10:24 am

gabriev82, that's what the clang plugin does: https://github.com/quarnster/SublimeClang
quarnster
 
Posts: 389
Joined: Tue Nov 29, 2011 11:34 am

Re: Display Functions

Postby tretretre on Sat Dec 03, 2011 5:03 pm

Doesn't work for me.

Code: Select all
Traceback (most recent call last):
  File ".\sublime_plugin.py", line 282, in run_
  File ".\displayfunctions.py", line 45, in run
TypeError: argument of type 'NoneType' is not iterable
tretretre
 
Posts: 23
Joined: Fri Oct 21, 2011 7:13 pm

Re: Display Functions

Postby C0D312 on Sat Dec 03, 2011 6:08 pm

tretretre,

What OS are you using?
Can you check that you're using the lastest version of Display-Functions?
And, if you don't mind, could I see a sample of the code you were trying in on? (You can redact any info that you need to...)
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: Display Functions

Postby tretretre on Sat Dec 03, 2011 9:25 pm

C0D312 wrote:tretretre,

What OS are you using?
Can you check that you're using the lastest version of Display-Functions?
And, if you don't mind, could I see a sample of the code you were trying in on? (You can redact any info that you need to...)


After looking at the example, I realize that I misunderstood the behavior (I thought that it would work when calling static methods without an instance).

I did however find some bugs when removing existing functions:
Image
Image

OS: Windows 7.
tretretre
 
Posts: 23
Joined: Fri Oct 21, 2011 7:13 pm

Re: Display Functions

Postby C0D312 on Sun Dec 04, 2011 1:37 am

Just pushed a fix to github.

The regex for getting the methods is now fixed (it won't display 'if' or 'return' anymore). The plugin now removes any methods that were commented out.


@Tretretre, as for the second bug, did you "." to trigger Display-Functions? It looks as if you triggered the default autocomplete w/ ctrl+space.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 9 guests

cron