Last modified by cds on 2025/01/30 12:03

From version 13.1
edited by cds
on 2012/10/24 11:52
Change comment: There is no comment for this version
To version 8.1
edited by cds
on 2012/10/19 15:57
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -The Plug-in Architecture of Eclipse
1 +The Plugin Architecture of Eclipse
Content
... ... @@ -1,7 +5,3 @@
1 -{{warning title="Warning"}}
2 -This tutorial isn't complete yet!
3 -{{/warning}}
4 -
5 5  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.
6 6  
7 7  
... ... @@ -51,29 +51,10 @@
51 51  
52 52  == Preparing the Repository ==
53 53  
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:
50 +{{warning title="ToDo"}}
51 +Write this section.
52 +{{/warning}}
55 55  
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 -
77 77  = Creating a Simple Text Editor =
78 78  
79 79  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.
... ... @@ -120,16 +120,8 @@
120 120  1. In the new Eclipse instance, click //New -> Project...// -> //General// -> //Project//. Enter {{code language="none"}}test{{/code}} as the project name.
121 121  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.)
122 122  
123 -= Creating a Simple View =
124 -
125 -WRITE THIS SECTION
126 -
127 127  
128 128  
129 -= Creating an Extension Point =
130 -
131 -WRITE THIS SECTION
132 -
133 133  
134 134  
135 135  
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -2982284
1 +2982252
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/WS12EclPract/pages/2982284/The Plug-in Architecture of Eclipse
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/WS12EclPract/pages/2982252/The Plugin Architecture of Eclipse