Eclipseplugins
PANature.java
1 package com.proalpha.pds.paconnector;
2 import org.eclipse.core.resources.IProject;
3 import org.eclipse.core.resources.IProjectNature;
4 import org.eclipse.core.runtime.CoreException;
5 
6 public class PANature implements IProjectNature {
7 
8  public static final String NATURE_ID = "com.proalpha.pds.ui.proalphaNature";
9  private IProject project;
10 
11  public PANature() {
12  // Empty
13  }
14 
15  @Override
16  public void configure() throws CoreException {
17  // No configure needed, the project gets nature during project-import
18  }
19 
20  @Override
21  public void deconfigure() throws CoreException {
22  // Not needed, the project always needs this nature
23  }
24 
25  @Override
26  public IProject getProject() {
27  return this.project;
28  }
29 
30  @Override
31  public void setProject(IProject project) {
32  this.project = project;
33  }
34 
35 }