@@ -22,12 +22,24 @@ The class of the view serves as the glue between the layout of the view and the
...
@@ -22,12 +22,24 @@ The class of the view serves as the glue between the layout of the view and the
So the controller (our view class) serves as the glue between the actual UI and the editor. Let us see how this is done correctly.
So the controller (our view class) serves as the glue between the actual UI and the editor. Let us see how this is done correctly.
# Creating the View (The corresponding UI Element)
# Creating the View (The corresponding UI Element)
This section describes how to create a view using eclipse SWT.
## The general goal
The goal is to create the CorefView, a view with the purpose to quickly annotate character references and their corresponding cluster-ID.
The final result should look like this:
<imgsrc="/uploads/fe1a1897b773194d50daad49cb3eedf2/corefViewOpened.PNG"alt="MVC of the editor and the views"style="width: 640px;"style="height: 480px;"/>
Inside the method
Inside the method
```java
```java
initLayout(Compositeparent)
initLayout(Compositeparent)
```
```
you should initialize this UI element. The following snippet shows the current state of the CorefView
you should initialize this UI element. The following snippet shows the current state of the CorefView (all parts are about to be explained below)
```java
```java
@Override
@Override
...
@@ -179,3 +191,5 @@ Last but not least, a refresh method is created, which is invoked by the control
...
@@ -179,3 +191,5 @@ Last but not least, a refresh method is created, which is invoked by the control