Set an external Java code editor in Rose

xiaoxiao2021-03-06  44

When using ROSE for Java language-based design, you often need to edit the code after generating Java code. Although ROSE provides a built-in editor, the function is very simple and is not practical, so it can be configured to change the editor properties. , Use an external editor for code editing, the method is as follows:

1. Go to Tools-> Java / J2EE-> Project Specification, select the Code Generation tab, you can see the IDE bar, the default value is Internal Editor. If you installed the mainstream development tool products such as JBuilder, click Detect IDs to be detected. If you are using non-mainstream products such as Eclipse or JCREATOR, you can choose WindowsShell.

2. If you select WindowsShell, Rose will open the .java file according to the open command of Windows, and then the JCREATOR has been installed, the system is set to open .java file. At this time, you only need to disable the multi-instance option to remove the JCREATOR, you can open multiple Java files in the same Workspace, avoid opening multiple JCREATOR instances. Procedure: Start JCREATOR, go to the configure-> options-> General tab to cancel the Allow Multiple Instances option.

3, but if you need your own editor (such as editplus) to open .java file, you need to change some modifications to the registry: Perform start -> Run ...-> regedit.exe Enter the Registry Editor, in HKEY_CLASESS_ROOT /. Under Java, the default value is changed to: editplus.java, create hkey_classes_root / editplus.java item, add child default, whose default is [$ PATH] EditPluse.exe, 2 Add Child shell / Open / Command, its default value For [$ PATH] EditPluse.exe "% 1" where [$ PATH] is an EditPlus installation path.

To this you can edit the source file file that opens the class at any time in ROSE.

转载请注明原文地址:https://www.9cbs.com/read-54363.html

New Post(0)