Java Code Examples for org.eclipse.jdt.core.IPackageFragment#getHandleIdentifier()
The following examples show how to use
org.eclipse.jdt.core.IPackageFragment#getHandleIdentifier() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MoveCompilationUnitChange.java From eclipse.jdt.ls with Eclipse Public License 2.0 | 5 votes |
private MoveCompilationUnitChange(IPackageFragment oldPackage, String cuName, IPackageFragment newPackage, long stampToRestore, IPackageFragment[] deletePackages) { super(oldPackage.getHandleIdentifier(), newPackage.getHandleIdentifier(), oldPackage.getCompilationUnit(cuName).getHandleIdentifier()); fStampToRestore= stampToRestore; fDeletePackages= deletePackages; setValidationMethod(SAVE_IF_DIRTY | VALIDATE_NOT_READ_ONLY); }
Example 2
Source File: PackageReorgChange.java From eclipse.jdt.ls with Eclipse Public License 2.0 | 5 votes |
PackageReorgChange(IPackageFragment pack, IPackageFragmentRoot dest, INewNameQuery nameQuery) { fPackageHandle= pack.getHandleIdentifier(); fDestinationHandle= dest.getHandleIdentifier(); fNameQuery= nameQuery; // it is enough to check the package only since package reorg changes // are not undoable. Don't check for read only here since // we already ask for user confirmation and moving a read // only package doesn't go thorugh validate edit (no // file content is modified). setValidationMethod(VALIDATE_DEFAULT); }
Example 3
Source File: MoveCompilationUnitChange.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
private MoveCompilationUnitChange(IPackageFragment oldPackage, String cuName, IPackageFragment newPackage, long stampToRestore, IPackageFragment[] deletePackages) { super(oldPackage.getHandleIdentifier(), newPackage.getHandleIdentifier(), oldPackage.getCompilationUnit(cuName).getHandleIdentifier()); fStampToRestore= stampToRestore; fDeletePackages= deletePackages; setValidationMethod(SAVE_IF_DIRTY | VALIDATE_NOT_READ_ONLY); }
Example 4
Source File: PackageReorgChange.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 5 votes |
PackageReorgChange(IPackageFragment pack, IPackageFragmentRoot dest, INewNameQuery nameQuery) { fPackageHandle= pack.getHandleIdentifier(); fDestinationHandle= dest.getHandleIdentifier(); fNameQuery= nameQuery; // it is enough to check the package only since package reorg changes // are not undoable. Don't check for read only here since // we already ask for user confirmation and moving a read // only package doesn't go thorugh validate edit (no // file content is modified). setValidationMethod(VALIDATE_DEFAULT); }
Example 5
Source File: CompilationUnitReorgChange.java From eclipse.jdt.ls with Eclipse Public License 2.0 | 4 votes |
CompilationUnitReorgChange(ICompilationUnit cu, IPackageFragment dest, INewNameQuery newNameQuery) { fCuHandle= cu.getHandleIdentifier(); fNewPackageHandle= dest.getHandleIdentifier(); fNewNameQuery= newNameQuery; fOldPackageHandle= cu.getParent().getHandleIdentifier(); }
Example 6
Source File: CompilationUnitReorgChange.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
CompilationUnitReorgChange(ICompilationUnit cu, IPackageFragment dest, INewNameQuery newNameQuery) { fCuHandle= cu.getHandleIdentifier(); fNewPackageHandle= dest.getHandleIdentifier(); fNewNameQuery= newNameQuery; fOldPackageHandle= cu.getParent().getHandleIdentifier(); }