1 11 package org.eclipse.pde.internal.ui.refactoring; 12 13 import org.eclipse.osgi.service.resolver.BundleDescription; 14 import org.eclipse.pde.core.plugin.IPluginBase; 15 import org.eclipse.pde.core.plugin.IPluginModelBase; 16 17 public class RenamePluginInfo { 18 19 private IPluginModelBase fBase; 20 21 private boolean fRenameProject; 22 23 private boolean fUpdateReferences = true; 24 25 private String fNewID; 26 27 public IPluginModelBase getBase() { 28 return fBase; 29 } 30 31 public void setBase(IPluginModelBase base) { 32 fBase = base; 33 } 34 35 public boolean isRenameProject() { 36 return fRenameProject; 37 } 38 39 public void setRenameProject(boolean renameProject) { 40 fRenameProject = renameProject; 41 } 42 43 public boolean isUpdateReferences() { 44 return fUpdateReferences; 45 } 46 47 public void setUpdateReferences(boolean updateReferences) { 48 fUpdateReferences = updateReferences; 49 } 50 51 public String getNewID() { 52 return fNewID; 53 } 54 55 public void setNewID(String newName) { 56 fNewID = newName; 57 } 58 59 public String getCurrentID() { 60 BundleDescription desc = fBase.getBundleDescription(); 61 if (desc != null) 62 return desc.getSymbolicName(); 63 IPluginBase pb = fBase.getPluginBase(); 64 return pb.getId(); 65 } 66 67 } 68 | Popular Tags |