-
Book Overview & Buying
-
Table Of Contents
Eclipse Plug-in Development Beginner's Guide - Second Edition
By :
As with the previous chapter, a new TimeZoneTreeView class will be created using the plugin.xml editor, as an E4 view. This will show time zones, organized hierarchically by region.
Right-click on the com.packtpub.e4.clock.ui project and navigate to Plug-in Tools | Open Manifest if it's not open already.
Open the Extensions tab and go to the org.eclipse.ui.views entry. Right-click on this, navigate to New | e4view, and fill in the following:
ID: com.packtpub.e4.clock.ui.views.TimeZoneTreeView
Name: Time Zone Tree View
Class: com.packtpub.e4.clock.ui.views.TimeZoneTreeView
Category: com.packtpub.e4.clock.ui
Icon: icons/sample.gif
An entry is created in the plugin.xml file that looks like:
<e4view category="com.packtpub.e4.clock.ui" class="com.packtpub.e4.clock.ui.views.TimeZoneTreeView" icon="icons/sample.gif" id="com.packtpub.e4.clock.ui.views.TimeZoneTreeView" name="Time Zone Tree View" restorable="true"> </e4view>
On the...
Change the font size
Change margin width
Change background colour