private static ContentStamp createDocumentStamp(long value, long fileValue) { return new ContentStampImpl(DOCUMENT, value, fileValue); }
public static void set(IFile file, ContentStamp s) throws CoreException { if (!(s instanceof ContentStampImpl)) return; ContentStampImpl stamp= (ContentStampImpl)s; long value= stamp.getFileValue(); Assert.isTrue(value != IResource.NULL_STAMP); file.revertModificationStamp(value); }
public static boolean set(IDocument document, ContentStamp s) throws CoreException { if (!(s instanceof ContentStampImpl)) return false; ContentStampImpl stamp= (ContentStampImpl)s; if (document instanceof IDocumentExtension4 && stamp.isDocumentStamp()) { try { ((IDocumentExtension4)document).replace(0, 0, "", stamp.getValue()); //$NON-NLS-1$ return true; } catch (BadLocationException e) { throw Changes.asCoreException(e); } } return false; } }
public static boolean set(IDocument document, ContentStamp s) throws CoreException { if (!(s instanceof ContentStampImpl)) return false; ContentStampImpl stamp= (ContentStampImpl)s; if (document instanceof IDocumentExtension4 && stamp.isDocumentStamp()) { try { ((IDocumentExtension4)document).replace(0, 0, "", stamp.getValue()); //$NON-NLS-1$ return true; } catch (BadLocationException e) { throw Changes.asCoreException(e); } } return false; } }
public static boolean set(IDocument document, ContentStamp s) throws CoreException { if (!(s instanceof ContentStampImpl)) return false; ContentStampImpl stamp= (ContentStampImpl)s; if (document instanceof IDocumentExtension4 && stamp.isDocumentStamp()) { try { ((IDocumentExtension4)document).replace(0, 0, "", stamp.getValue()); //$NON-NLS-1$ return true; } catch (BadLocationException e) { throw Changes.asCoreException(e); } } return false; } }
private static ContentStamp createDocumentStamp(long value, long fileValue) { return new ContentStampImpl(DOCUMENT, value, fileValue); }
private static ContentStamp createFileStamp(long value) { return new ContentStampImpl(FILE, value, value); }
private static ContentStamp createFileStamp(long value) { return new ContentStampImpl(FILE, value, value); }
private static ContentStamp createFileStamp(long value) { return new ContentStampImpl(FILE, value, value); }
public static void set(IFile file, ContentStamp s) throws CoreException { if (!(s instanceof ContentStampImpl)) return; ContentStampImpl stamp= (ContentStampImpl)s; long value= stamp.getFileValue(); Assert.isTrue(value != IResource.NULL_STAMP); file.revertModificationStamp(value); }
private static ContentStamp createDocumentStamp(long value, long fileValue) { return new ContentStampImpl(DOCUMENT, value, fileValue); }
public static void set(IFile file, ContentStamp s) throws CoreException { if (!(s instanceof ContentStampImpl)) return; ContentStampImpl stamp= (ContentStampImpl)s; long value= stamp.getFileValue(); Assert.isTrue(value != IResource.NULL_STAMP); file.revertModificationStamp(value); }