Changes

Jump to: navigation, search

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

88 bytes added, 19:23, 4 March 2011
3. Define and Use Editors
We will call this command from <code>''createPartControl()''</code> method.
<source lang=java>
public void createPartControl(Composite parent) { ............
// add double click listener for editing fields in a text editor
viewer.setInput(ModelProvider.INSTANCE.getStudents());
getSite().setSelectionProvider(viewer);
hookDoubleClickCommand();
}
</source>
hookDoubleClickCommand();
1
edit

Navigation menu