1 11 package org.eclipse.jdt.internal.ui.jarimport; 12 13 import java.net.URI ; 14 15 import org.eclipse.ltk.core.refactoring.history.RefactoringHistory; 16 17 import org.eclipse.jdt.core.IPackageFragmentRoot; 18 19 import org.eclipse.jdt.ui.jarpackager.JarPackageData; 20 21 26 public final class JarImportData extends JarPackageData { 27 28 29 private long fExistingStamp= -1; 30 31 32 private URI fJarFileLocation= null; 33 34 35 private IPackageFragmentRoot fPackageFragmentRoot= null; 36 37 38 private RefactoringHistory fRefactoringHistory= null; 39 40 41 private boolean fRenameJarFile= true; 42 43 48 public long getExistingTimeStamp() { 49 return fExistingStamp; 50 } 51 52 57 public IPackageFragmentRoot getPackageFragmentRoot() { 58 return fPackageFragmentRoot; 59 } 60 61 66 public URI getRefactoringFileLocation() { 67 return fJarFileLocation; 68 } 69 70 75 public RefactoringHistory getRefactoringHistory() { 76 return fRefactoringHistory; 77 } 78 79 85 public boolean isRenameJarFile() { 86 return fRenameJarFile; 87 } 88 89 95 public void setExistingTimeStamp(final long stamp) { 96 if (stamp < -1) { 97 throw new IllegalArgumentException (); 98 } 99 fExistingStamp= stamp; 100 } 101 102 108 public void setPackageFragmentRoot(final IPackageFragmentRoot root) { 109 fPackageFragmentRoot= root; 110 } 111 112 118 public void setRefactoringFileLocation(final URI uri) { 119 fJarFileLocation= uri; 120 } 121 122 128 public void setRefactoringHistory(final RefactoringHistory history) { 129 fRefactoringHistory= history; 130 } 131 132 139 public void setRenameJarFile(final boolean rename) { 140 fRenameJarFile= rename; 141 } 142 } 143 | Popular Tags |