Changes between Version 3 and Version 4 of EclipseInterface
- Timestamp:
- Jan 26, 2015, 4:29:54 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
EclipseInterface
v3 v4 1 1 [[PageOutline]] 2 2 = Introduction 3 Most services provided by RefactorErl are accessible from the Eclipse IDE after installing theRefactorErl plugin in Eclipse. In this guide, we also refer to this plugin as the //Eclipse interface//.3 Most services provided by !RefactorErl are accessible from the Eclipse IDE after installing the !RefactorErl plugin in Eclipse. In this guide, we also refer to this plugin as the //Eclipse interface//. 4 4 The following functionalities are available from the Eclipse interface: 5 5 * [#db Database management] … … 12 12 A short description for each functionality can be found at the beginning of the relevant sections. 13 13 14 While not required, it's recommended to install [http://www.erlide.org the Erlide plugin] in Eclipse. Erlide enhances features of the RefactorErl plugin and transforms Eclipse into a complete Erlang IDE.14 While not required, it's recommended to install [http://www.erlide.org the Erlide plugin] in Eclipse. Erlide enhances features of the !RefactorErl plugin and transforms Eclipse into a complete Erlang IDE. 15 15 16 16 [=#install] … … 19 19 1. Install the [#instdep dependencies]. 20 20 1. To [#pluginst install the RefactorErl plugin in Eclipse], click on the **Help > Install new software** buttons in the Eclipse menu, click **Add...** in the appearing window, and paste the following link in the **Location** text field of the window named **Add Repository**: http://plc.inf.elte.hu/erlang/dl/update/ 21 1. [#firsttime After the installation], navigate to the preference pages by clicking **Window > Preferences > RefactorErl**, and fill in the **RefactorErl Base Directory** field with the path to the base directory of a locally installed RefactorErl application. In case you would like to connect to a remotely locatedRefactorErl node instead, fill in the node address of this node in the **Server address** field.21 1. [#firsttime After the installation], navigate to the preference pages by clicking **Window > Preferences > !RefactorErl**, and fill in the **!RefactorErl Base Directory** field with the path to the base directory of a locally installed !RefactorErl application. In case you would like to connect to a remotely located !RefactorErl node instead, fill in the node address of this node in the **Server address** field. 22 22 23 23 [=#instdep] … … 25 25 * Java 8 JRE/JDK or newer. 26 26 * Eclipse 4.4.0 Luna or newer. 27 * RefactorErl 0.9.14.09 or newer. (Not needed in case a remoteRefactorErl node is available.)28 * GraphViz (Optional. Needed for displaying dependency graphs in SVG.)27 * !RefactorErl 0.9.14.09 or newer. (Not needed in case a remote !RefactorErl node is available.) 28 * !GraphViz (Optional. Needed for displaying dependency graphs in SVG.) 29 29 {{{#!comment 30 30 * GEF4/Zest 2.0 Eclipse plugin (Optional. Needed for drawing Zest graphical representations of dependency graphs) … … 35 35 Please see the developers' site for instructions concerning the obtainment and installation of [https://www.oracle.com/java/ Java] and [https:/www.eclipse.org/ Eclipse]. 36 36 37 === RefactorErl38 Detailed instructions for installing RefactorErl can be found on the [wiki:Install related wiki page]. Of the various dependencies listed in the guide, the RefactorErl plugin depends only on theRefactorErl base system. This means that if you do not intend to use other interfaces besides the Eclipse interface, you don't need to install any other dependencies (Yaws, Erlang Wx, ...) listed on the referenced wiki page apart from the base system.39 40 As a remainder, here are the steps you need to follow in order to install RefactorErl:41 1. Install Erlang from your system package manager, or from an installer provided by [https://www.erlang-solutions.com/downloads/download-erlang-otp Erlang Solutions], or you can build [http://www.erlang.org/download.html Erlang from source]. Prior to installation make sure that the version of the Erlang package to be installed is supported by RefactorErl.37 === !RefactorErl 38 Detailed instructions for installing !RefactorErl can be found on the [wiki:Install related wiki page]. Of the various dependencies listed in the guide, the !RefactorErl plugin depends only on the !RefactorErl base system. This means that if you do not intend to use other interfaces besides the Eclipse interface, you don't need to install any other dependencies (Yaws, Erlang Wx, ...) listed on the referenced wiki page apart from the base system. 39 40 As a remainder, here are the steps you need to follow in order to install !RefactorErl: 41 1. Install Erlang from your system package manager, or from an installer provided by [https://www.erlang-solutions.com/downloads/download-erlang-otp Erlang Solutions], or you can build [http://www.erlang.org/download.html Erlang from source]. Prior to installation make sure that the version of the Erlang package to be installed is supported by !RefactorErl. 42 42 1. Download [https://plc.inf.elte.hu/erlang/ RefactorErl]. 43 1. Uncompress the archive to the directory where you want RefactorErl to reside.43 1. Uncompress the archive to the directory where you want !RefactorErl to reside. 44 44 1. Enter the `refactorerl-x.y.z.v` directory you just uncompressed (here `x.y.z.v` denotes a version number). 45 45 Type the command `bin\referl -build tool` in a terminal window. … … 47 47 1. Test the tool by typing `bin\referl` in your terminal. If the build was succesful, an Erlang shell should appear. 48 48 49 You will have to supply the location of the refactorerl-x.y.z.v directory (where we typed in the commands) to the RefactorErl plugin after the plugin is installed into Eclipse.50 51 === GraphViz52 Optional. GraphViz is used to draw SVG representations of dependency graphs. You will have to supply the location of the `dot` executable of an installedGraphViz application the first time you use the SVG drawing feature.49 You will have to supply the location of the refactorerl-x.y.z.v directory (where we typed in the commands) to the !RefactorErl plugin after the plugin is installed into Eclipse. 50 51 === !GraphViz 52 Optional. !GraphViz is used to draw SVG representations of dependency graphs. You will have to supply the location of the `dot` executable of an installed !GraphViz application the first time you use the SVG drawing feature. 53 53 54 54 Hint: On UNIX-like systems, you can use the `type -a dot` command to locate the `dot` executable on your system. 55 55 56 GraphViz can be obtained from the [http://www.graphviz.org developers' website] or presumably from the package manager of your local system.56 !GraphViz can be obtained from the [http://www.graphviz.org developers' website] or presumably from the package manager of your local system. 57 57 58 58 {{{#!comment … … 62 62 The up-to-date version of the Zest 2.0 Eclipse plugin can be obtained from the [https://wiki.eclipse.org/GEF/GEF4 developers' website]. 63 63 64 You can also download Zest 2.0 from the RefactorErl update site. Just select the **GEF4/Zest 2.0** entry besides theRefactorErl plugin entry in the list after you added the update site in Eclipse. See the [#pluginst relevant section] for more information.65 Please note, that the version hosted on the RefactorErl update site might not be up-to-date.64 You can also download Zest 2.0 from the !RefactorErl update site. Just select the **GEF4/Zest 2.0** entry besides the !RefactorErl plugin entry in the list after you added the update site in Eclipse. See the [#pluginst relevant section] for more information. 65 Please note, that the version hosted on the !RefactorErl update site might not be up-to-date. 66 66 }}} 67 67 … … 71 71 The up-to-date version of the Erlide Eclipse plugin can be obtained from the [http://www.erlide.org developers' website]. 72 72 73 You can also download Erlide from the RefactorErl update site. Just select the **Erlang language tools IDE** entry besides theRefactorErl plugin entry in the list after you added the update site in Eclipse. See the [#pluginst relevant section] for more information.74 Please note, that the version hosted on the RefactorErl update site might not be up-to-date.73 You can also download Erlide from the !RefactorErl update site. Just select the **Erlang language tools IDE** entry besides the !RefactorErl plugin entry in the list after you added the update site in Eclipse. See the [#pluginst relevant section] for more information. 74 Please note, that the version hosted on the !RefactorErl update site might not be up-to-date. 75 75 76 76 [=#pluginst] 77 == Installing the RefactorErl plugin in Eclipse78 79 The RefactorErl plugin can be installed in Eclipse via our update site.77 == Installing the !RefactorErl plugin in Eclipse 78 79 The !RefactorErl plugin can be installed in Eclipse via our update site. 80 80 81 81 First copy the following link on the clipboard (eg. Right click > Copy Link Location): http://plc.inf.elte.hu/erlang/dl/update/ … … 93 93 }}} 94 94 95 In the original **Install** window select the RefactorErl group and a list should appear, containing the plugins available from the update site we specified in the last step. {{{ 95 In the original **Install** window select the !RefactorErl group and a list should appear, containing the plugins available from the update site we specified in the last step. 96 {{{ 96 97 #!comment 97 98 KÉP 98 99 }}} 99 100 100 To install the RefactorErl plugin, select the **RefactorErl Eclipse UI** entry. 101 The list might contain additional entries for optional dependencies (Erlang language tools IDE {{{#!comment , GEF4/Zest 2.0}}}). Installing these plugins is not required, but it will enhance some features of the RefactorErl plugin. Please note, that the version of these dependencies hosted on the RefactorErl update site might not be up-to-date. 101 To install the !RefactorErl plugin, select the **!RefactorErl Eclipse UI** entry. 102 The list might contain additional entries for optional dependencies (Erlang language tools IDE). Installing these plugins is not required, but it will enhance some features of the !RefactorErl plugin. Please note, that the version of these dependencies hosted on the !RefactorErl update site might not be up-to-date. 103 {{{ 104 #!comment 105 GEF4/Zest 2.0 106 }}} 102 107 103 108 After clicking **Next** on this window, Eclipse will lead you through a series of simple steps before the installation. After the installation is finished, you will need to restart Eclipse. 104 109 105 == Uninstalling the RefactorErl plugin106 The RefactorErl plugin can be uninstalled from Eclipse like most other Eclipse plugins.110 == Uninstalling the !RefactorErl plugin 111 The !RefactorErl plugin can be uninstalled from Eclipse like most other Eclipse plugins. 107 112 1. Open Eclipse 108 113 1. Click on **Help > Installation Details** 109 1. In the appearing window select the ** RefactorErl Eclipse UI** entry. Click on the **Uninstall** button.114 1. In the appearing window select the **!RefactorErl Eclipse UI** entry. Click on the **Uninstall** button. 110 115 111 116 [=#firsttime] 112 117 == First time launch 113 If the plugin installation was successful in the last step, an error message will appear the first time Eclipse is launched. This happens because we didn't set the path to RefactorErl yet.114 {{{ 115 #!comment 116 KÉP 117 }}} 118 119 The RefactorErl plugin can automatically start a local RefactorErl application and connect to it. Please, see the corresponding section of this guide, ifRefactorErl is not yet installed on your system.120 It is also possible to connect to a RefactorErl application running on a remote server. You do not need to installRefactorErl on your local system to do this.121 122 Navigate to the preference pages by clicking **Window > Preferences > RefactorErl**.118 If the plugin installation was successful in the last step, an error message will appear the first time Eclipse is launched. This happens because we didn't set the path to !RefactorErl yet. 119 {{{ 120 #!comment 121 KÉP 122 }}} 123 124 The !RefactorErl plugin can automatically start a local !RefactorErl application and connect to it. Please, see the corresponding section of this guide, if !RefactorErl is not yet installed on your system. 125 It is also possible to connect to a !RefactorErl application running on a remote server. You do not need to install !RefactorErl on your local system to do this. 126 127 Navigate to the preference pages by clicking **Window > Preferences > !RefactorErl**. 123 128 {{{ 124 129 #!comment … … 126 131 }}} 127 132 128 In case you would like to connect to a local RefactorErl application, fill in the **RefactorErl Base Directory** field with the path to the base directory of a locally installedRefactorErl application.129 130 In case you would like to connect to a remotely located RefactorErl node instead, fill in the node address of this node in the **Server address** field.131 132 Click **OK**. Click **Yes** on the dialog inquiring wheter you want to reconnect to RefactorErl. If the connection was successful, a `Connected to RefactorErl` message will appear in the left side of the status bar at the bottom of the Eclipse window.133 {{{ 134 #!comment 135 KÉP 136 }}} 137 138 Congratulations, now you can start using RefactorErl with the Eclipse interface!139 140 = Using the RefactorErl Eclipse interface133 In case you would like to connect to a local !RefactorErl application, fill in the **!RefactorErl Base Directory** field with the path to the base directory of a locally installed !RefactorErl application. 134 135 In case you would like to connect to a remotely located !RefactorErl node instead, fill in the node address of this node in the **Server address** field. 136 137 Click **OK**. Click **Yes** on the dialog inquiring wheter you want to reconnect to !RefactorErl. If the connection was successful, a `Connected to RefactorErl` message will appear in the left side of the status bar at the bottom of the Eclipse window. 138 {{{ 139 #!comment 140 KÉP 141 }}} 142 143 Congratulations, now you can start using !RefactorErl with the Eclipse interface! 144 145 = Using the !RefactorErl Eclipse interface 141 146 This section will guide you through the most important interface features. While we include a basic description for each feature group, it may be neccessary for you to read the corresponding wiki pages for an in-depth understanding of the feature group in question. 142 147 143 If you open the RefactorErl perspective or the Erlang perspective (if Erlide is installed) inside Eclipse, a new menu button, with the text **RefactorErl** on it, will appear in the Eclipse top menu. Much of the features are accessible through the **RefactorErl** menu, and some features can be accessed in more than one way.144 145 For the rest of this guide we will assume that you have the RefactorErl or the Erlang perspective opened and one of these is the active perspective. As a reminder, perspectives can be opened via the **Window > Open Perspective > Other** button in the Eclipse top menu.148 If you open the !RefactorErl perspective or the Erlang perspective (if Erlide is installed) inside Eclipse, a new menu button, with the text **!RefactorErl** on it, will appear in the Eclipse top menu. Much of the features are accessible through the **!RefactorErl** menu, and some features can be accessed in more than one way. 149 150 For the rest of this guide we will assume that you have the !RefactorErl or the Erlang perspective opened and one of these is the active perspective. As a reminder, perspectives can be opened via the **Window > Open Perspective > Other** button in the Eclipse top menu. 146 151 147 152 [=#db] 148 153 == Database management 149 The RefactorErl server uses an internal database to store syntactic and semantic information on the source code. RefactorErl provides most of its services with the use of this information. In order forRefactorErl to be able to analyse a source file, that source file must be added to the database.150 151 See the [wiki:ManagingFiles wiki page about database management] for a more detailed description of database management in RefactorErl.154 The !RefactorErl server uses an internal database to store syntactic and semantic information on the source code. !RefactorErl provides most of its services with the use of this information. In order for !RefactorErl to be able to analyse a source file, that source file must be added to the database. 155 156 See the [wiki:ManagingFiles wiki page about database management] for a more detailed description of database management in !RefactorErl. 152 157 153 158 Database management features available in the Eclipse interface include: … … 162 167 * Resetting the database 163 168 164 You can open a view containing the list of files, called the //Database view//, by clicking ** RefactorErl > Database > Show Database** in the top menu.169 You can open a view containing the list of files, called the //Database view//, by clicking **!RefactorErl > Database > Show Database** in the top menu. 165 170 166 171 {{{ … … 170 175 171 176 When you click in the //Database view// with the right mouse button, a context menu will appear, containing all database management features. Some of them, like the //drop// and //show// features, are dependent on the files or directories selected in the view. 172 Most database management features (the ones not depending on file selection) are also available in the ** RefactorErl > Database** menu.177 Most database management features (the ones not depending on file selection) are also available in the **!RefactorErl > Database** menu. 173 178 174 179 Source files can also be opened by double clicking on their name in the //Database view//. … … 176 181 [=#sq] 177 182 == Semantic queries 178 RefactorErl provides a semantic query language as a straightforward way to query the information residing in the database. See the [wiki:SemanticQuery wiki page on semantic queries] for a detailed description of this feature.179 180 The RefactorErl plugin for Eclipse provides an interface to183 !RefactorErl provides a semantic query language as a straightforward way to query the information residing in the database. See the [wiki:SemanticQuery wiki page on semantic queries] for a detailed description of this feature. 184 185 The !RefactorErl plugin for Eclipse provides an interface to 181 186 * write and execute semantic queries with autocompletion support, 182 187 * show the results of the previously executed query, … … 187 192 188 193 You can execute a global query by writing your query in the textfield initially with the text `Semantic query` in the Eclipse toolbar and pressing the return key. 189 You can also execute global queries by clicking on ** RefactorErl > Queries > Start query**. A dialog will appear, where you can type the global query.194 You can also execute global queries by clicking on **!RefactorErl > Queries > Start query**. A dialog will appear, where you can type the global query. 190 195 {{{ 191 196 #!comment … … 202 207 After a successful query execution a view, called //Query result view// will appear with the results of your query. You can double click on a line of the result, and if it's possible, an editor tab will open with the file containing the content of that line, highlighting the content in question. 203 208 204 The ** RefactorErl > Queries > Show query history** button will open the //Query history view//. Double clicking on a query in the //Query history view// will show a results of this query in a //Query result view//. Please note, that these are historical results, it may or may not be consistent with the current content of the database.209 The **!RefactorErl > Queries > Show query history** button will open the //Query history view//. Double clicking on a query in the //Query history view// will show a results of this query in a //Query result view//. Please note, that these are historical results, it may or may not be consistent with the current content of the database. 205 210 206 211