Changes

Jump to: navigation, search

Teams Winter 2011/team1/RCP/Define and use editors

460 bytes added, 17:51, 4 March 2011
3. Define and Use Editors
3.1 Editor area
The first step to add editor area to the application is to make the visibility of the editor area in <code>Perspective.java </code> to <code> true </code>.
<source lang=java>
}
</source>
3.1 Create 2 Add input editor<pre> String[] titles = { "Id", "First name", "Last name", "Program" };</pre>2.3. Editor Input
3IEditorInput serves as the model for the editor and is supposed to be a light-weight representation of the model. For example the Eclipse IDE uses this concept to identify files without handling with the complete file.2 Set command for opening Based on the equals method the system will determine if the corresponding editoris already open or not therefore you should overwrite the method equals and hashcode in an implementation of IEditor. Create the new class <code>''MyStudentEditorInput''</code> which implements <code>''IEditorInput''</code>.
1
edit

Navigation menu