To display the time zones in table form, a new view will be created called Time Zone Table View.
Right-click on the
com.packtpub.e4.clock.ui
project and select Plug-in Tools | Open Manifest. Open the Extensions tab and right-click on the org.eclipse.ui.views, followed by selecting New | View and filling in the following fields:ID:
com.packtpub.e4.clock.ui.views.TimeZoneTableView
Name:
Time Zone Table View
Class:
com.packtpub.e4.clock.ui.views.TimeZoneTableView
Category:
com.packtpub.e4.clock.ui
Icon:
icons/sample.gif
The
plugin.xml
file should now contain the following code snippet:<view category="com.packtpub.e4.clock.ui" class="com.packtpub.e4.clock.ui.views.TimeZoneTableView" icon="icons/sample.gif" id="com.packtpub.e4.clock.ui.views.TimeZoneTableView" name="Time Zone Table View" restorable="true"> </view>
Create the class using the editor's shortcuts to create a new class,
TimeZoneTableView
, which extendsViewPart...