Version 1.5 of the BeanShell script was tested with BeanShell 2.0b4 and 2.0b5, Java 1.3.1, 1.4.2, 1.5.0 and 1.6.0, on Windows XP and Linux.By typing Ctrl+Enter just after at least one character, SciTE will open a list of words already available in your file and matching the first characters of the word being typed. Though not directly related to the auto completion provided by the API file, there is another auto completion feature available in SciTE. In the case of Java, I simply suggest to take advantage of the the word completion from the API file by invoking it via the shortcut key Ctrl+Space or Ctrl+i, as shown in the screen capture below: SciTE allows you to customize the behavior of the word completion feature, based on the source code being edited. You can also invoke calltips by pressing Ctrl+Shift+Space with the cursor located inside of the method parameter parenthesis. You can enter the parameters accordingly, and also use the mouse to navigate up and down to see the other method signatures. With the calltip configuration, such as the one described in the section Scite Configuration, when you type the open parenthesis after a method name, a scrollable pop-up help box displays the possible parameters of this method. This excludes classes from javax packages for example. Note: To limit the size of the keywords properties file, only classes from packages started with java are included. To modify the highlight color, modify the value of the style associated with keyword2 in the file cpp.properties. Classes are highlighted as shown in the following screen capture: The Java classes highlighting is automatically enabled due to the import of the keywords file. You had to rename the file to java150_kwd.properties, in order to allow the import to work.Ĭonfiguring SciTE as explained above will enable the following features: Note: In versions prior to 1.5, SciteJavaApi.bsh generated the keyword file with the format java150.kwd. Add the following lines (check first if similar lines are already existing and modify accordingly):Īpi.*.java=$(SciteDefaultHome)\java150.apiĬ=._$().Open the file cpp.properties available in the install directory of SciTE.Assuming that the API and Keywords files are respectively: java150.api and java150_kwd.properties.Copy the Java API and keywords files in the install directory of SciTE (where the default SciTE properties files are).After generating the API files, you can configure SciTE.See the shell script java_api.sh and windows batch file java_api.bat included in the package for more detailed examples. You can achieve this by using the environment variable JAVA_HOME. To generate the API files for a different Java version, invoke the corresponding Java command.Choose 1 or 2 to generate respectively the Java Keywords file or the Java API file.Type "2" and to build a Java Api file for SciTE. Type "1" and to build a Java Keywords file for SciTE. Mapping: Archive: file:/C:/jdk1.5.0_06/jre/lib/rt.jarīeanShell 2.0b5 - by Pat Niemeyer ( ) Assuming SciteJavaApi.bsh and being in C:\SciteJavaApi, execute:Ĭ:\SciteJavaApi>java -cp bsh.Interpreter SciteJavaApi.bsh.Extract the content of the SciteJavaApi zip file to your hard drive.If you don’t have already BeanShell, download the package including it: SciteJavaApi15_bsh.zip (364kB). Download the latest release: SciteJavaApi15.zip (8kB).Of course, you also need SciTE (Scintilla Text Editor) in order to use the Java API files. ![]() Some packages available for download already include the BeanShell library.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |