ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Java​IME

by tushortz ST2/ST3

Turn your Sublime text into a java completion text editor.

Details

Installs

  • Total 20K
  • Win 11K
  • OS X 4K
  • Linux 5K
Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7
Windows 14 22 17 15 24 19 10 18 18 15 16 22 16 12 13 24 20 22 17 17 10 9 15 23 19 18 24 18 11 18 21 24 28 11 12 12 21 19 30 24 20 13 12 17 19 27
OS X 3 3 3 4 8 5 2 4 1 2 7 7 7 1 3 6 6 7 6 4 2 4 6 2 6 5 7 0 5 5 7 4 6 7 2 5 4 6 7 2 10 7 8 10 5 2
Linux 7 5 8 8 5 2 4 4 2 8 4 1 4 6 6 7 3 4 8 4 4 7 1 11 10 2 7 1 5 7 8 12 4 10 7 6 4 4 3 10 4 3 7 3 10 9

Readme

Source
raw.​githubusercontent.​com

Java Import Made Easy (JavaIME)

About

This Sublime text package makes it easy to import virtually all Java packages, gives method completion suggestions for java methods, easily instantiate objects and create action listener methods.

Screenshot

Java Import Made Easy {JavaIME}

How to Use

You can use a lot of JavaIME features in the following ways.

Example

Import

Note you can also press ENTER rather than TAB

To import the java.utils.Collections package, type COLLECTIONS in (uppercase). Suggestions should already be popping up then press TAB to select. The package will be automatically imported.

Auto-Complete listener interfaces

To show a listener interface completion, type L- followed by the listener interface name. e.g.

L-Focus TAB should show

FocusListener

Class Instance

Type I-class name e.g. I-Scanner should show “java Scanner input = new Scanner(System.in);

#### Listener Events

Type **E-** followed by event and press tab. e.g.
    **E-act** then press TAB should show

```java
    public void actionPerformed(ActionEvent e){
     // contents 
    }

Try Catch

You can also press try then TAB to get

try {

    }

    catch (Exception err) {
        System.out.println(err.getMessage());
    }

Methods

Methods pop up by default so you can just press TAB or ENTER.

Static properties

Type S- followed by method name. e.g. Type s-magenta then TAB to get

MAGENTA

class declaration

  • pc -> generates a public class declaration
  • pcm -> generates the public class declaration with a main method
  • pcc -> generates the public class declaration with a constructor
  • pccm -> generates the public class declaration with a main method and constructor
  • pcfx -> generates a public class declaration for JavaFX and a main method.
Example

Assume we have a file named Test.java

Typing pc then TAB or ENTER should produce

public class Test {

}

Typing pcc then TAB or ENTER should produce

public class Test {

    // Constructor
    public Test(){

    }

}

Typing pcm then TAB or ENTER should produce

public class Test {

    public static void main(String[] args){

    }    
}

Typing pcfx then TAB or ENTER should produce

public class Test extends Application{

    @Override
    public void start(Stage primaryStage) throws Exception {
        // Contents
    }

    public static void main(String[] args){
        launch(args);
    }

}

… and so on!

Installation

Important: You need to have Package Control installed first on your sublime text which can be found at The Package Contol Website

Using Package Control's Repository

Go to Preferences –> Package Control –> Add Repository –> then type into the textbox https://github.com/tushortz/JavaIME

After doing this, then go to: Preferences –> Package Control –> Install Package –> then search JavaIME and click it.

The package will be installed and ready for use.

Using Git

Locate your Sublime Text 2 Packages directory by using the menu item Preferences -> Browse Packages....

While inside the Packages directory, clone the theme repository using the command below:

git clone https://github.com/tushortz/JavaIME.git

Download Manually

  • Download the files using the GitHub .zip download option
  • Unzip the files
  • Copy the folder to your Sublime Text Packages directory

Contributing

All contributions are welcome. fork me on Github and create a pull request. Any suggestions or bugs, please let me know.

License

© 2015 Taiwo Kareem | taiwo.kareem36@gmail.com.

Read license.txt

Acknowledgements

I'd first like to say a very big thank you to God my creator. Without him, this wouldn't be possible.