Time for action – creating a nature
A nature is created by implementing the IProjectNature
interface. This will be used to create a MinimarkNature
class, which will allow projects to be associated with the MinimarkBuilder
class.
- Create a class called
MinimarkNature
in thecom.packtpub.e4.minimark.ui
package as follows:public class MinimarkNature implements IProjectNature { public static final String ID = "com.packtpub.e4.minimark.ui.MinimarkNature"; private IProject project; public IProject getProject() { return project; } public void setProject(IProject project) { this.project = project; } public void configure() throws CoreException { } public void deconfigure() throws CoreException { } }
- The purpose of a nature is to assist by adding (or configuring) ...
Get Eclipse Plug-in Development Beginner's Guide - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.