Changes for page The Plug-in Architecture of Eclipse
Last modified by cds on 2025/01/30 12:03
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 -The Plugin Architecture of Eclipse 1 +The Plug-in Architecture of Eclipse - Content
-
... ... @@ -1,3 +1,7 @@ 1 +{{warning title="Warning"}} 2 +This tutorial isn't complete yet! 3 +{{/warning}} 4 + 1 1 This tutorial will teach you the basics of writing plugins that run inside the Eclipse framework. You will learn about editors, views, and extension points by creating one of each yourself. 2 2 3 3 ... ... @@ -47,10 +47,29 @@ 47 47 48 48 == Preparing the Repository == 49 49 50 -{{warning title="ToDo"}} 51 -Write this section. 52 -{{/warning}} 54 +We have created a Git repository for everyone to do his tutorials in. You can access the repository online through our Stash tool [[over here>>url:http://git.rtsys.informatik.uni-kiel.de:7990/projects/PRAK/repos/12ws-eclipse-tutorials/browse||shape="rect"]]. You will first have to configure your Stash account: 53 53 56 +1. Login with your Rtsys account information. 57 +1. Through the button in the top right corner, access your profile. 58 +1. Switch to the //SSH keys// tab. 59 +1. Click //Add Key// and upload a public SSH key that you want to use to access the repository. 60 + 61 +You should now be able to access the repository. Clone it: 62 + 63 +1. Open a console window and navigate to an empty directory that the repository should be placed in. 64 +1. Enter the command ssh:~/~/git@git.rtsys.informatik.uni-kiel.de:7999/PRAK/12ws-eclipse-tutorials.git{{code language="none"}} .{{/code}} (including the final dot, which tells git to clone the repository into the current directory instead of a subdirectory). 65 +1. You should now have a clone of the repository in the current directory. 66 + 67 +You will use this repository for all your tutorial work, along with everyone else. To make sure that you don't interfere with each other, everyone will work on a different branch. This is not exactly how people usually use Git, but goes to demonstrate Git's flexibility... Add a branch for you to work in: 68 + 69 +1. Enter {{code language="none"}}git checkout -b login_name{{/code}} 70 + 71 +You have just added and checked out a new branch. Everything you commit will go to this branch. To push your local commits to the server (which you will need to do so we can access your results), do the following: 72 + 73 +1. Enter {{code language="none"}}git push origin login_name{{/code}} 74 + 75 +You would usually have to enter {{code language="none"}}git pull{{/code}} first, but since nobody will mess with your branch this won't be necessary. By the way, you only need to mention {{code language="none"}}origin login_name{{/code}} with the first {{code language="none"}}git push{{/code}}, since Git doesn't know where to push the branch yet. After the first time, Git remembers the information and it will be enough to just enter {{code language="none"}}git push{{/code}}. 76 + 54 54 = Creating a Simple Text Editor = 55 55 56 56 OK, with all the preliminaries out of the way let's get working. Fire up Eclipse, choose an empty workspace, close the Welcome panel it will present you with and follow the following steps. ... ... @@ -97,8 +97,16 @@ 97 97 1. In the new Eclipse instance, click //New -> Project...// -> //General// -> //Project//. Enter {{code language="none"}}test{{/code}} as the project name. 98 98 1. Right-click the new project and click //New// -> //File...// As the file name, enter {{code language="none"}}test.simple{{/code}}. This will create a new file with that name and open the file in your newly added text editor. (You can see that it is your editor by looking at the editor icon, which should look like the icon you downloaded and put into the icons folder.) 99 99 123 += Creating a Simple View = 124 + 125 +WRITE THIS SECTION 126 + 100 100 101 101 129 += Creating an Extension Point = 130 + 131 +WRITE THIS SECTION 132 + 102 102 103 103 104 104
- Confluence.Code.ConfluencePageClass[0]
-
- Id
-
... ... @@ -1,1 +1,1 @@ 1 -29822 521 +2982284 - URL
-
... ... @@ -1,1 +1,1 @@ 1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/WS12EclPract/pages/29822 52/The Plugin Architecture of Eclipse1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/WS12EclPract/pages/2982284/The Plug-in Architecture of Eclipse