O'Reilly logo

Eclipse 4 Plug-in Development by Example Beginner's Guide by Dr. Alex Blewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – creating a TreeViewer

As done in the previous chapter, a new TimeZoneTreeView will be created using the plugin.xml editor. This view will show the time zones, organized hierarchically by region.

  1. Right-click on the com.packtpub.e4.clock.ui project and select Plug-in Tools | Open Manifest, if it's not open already.
  2. Open the Extensions tab and go to the org.eclipse.ui.views. Right-click on this and choose New | View, and fill in the following fields:
    • 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
  3. An entry is created in the plugin.xml file that looks like the following code snippet:
    <view category="com.packtpub.e4.clock.ui" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required