Changes

Jump to: navigation, search

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

5 bytes added, 19:31, 4 March 2011
no edit summary
The view makes his viewer available as selection provider via the following line:<br/>
<code>''getSite().setSelectionProvider(viewer);''</code> <br/>
This make is possible for the command which opens the editor to get the selection of the view. <br/>All workbench parts have a site, which can be accessed via the method <code>getSite()</code>.
<source lang=java>
public void createPartControl(Composite parent) {
1
edit

Navigation menu