Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Harley2009-09-22 05:27:39 +0000
committerWalter Harley2009-09-22 05:27:39 +0000
commit0e4687eecdc2b9cb5b04bfb801930a05af136f19 (patch)
tree4f0ac132611d6206726b346a23f69553d76dcab0 /org.eclipse.jdt.apt.pluggable.core
parent20291e123853b40f3437b01ca0907aa48371db12 (diff)
downloadeclipse.jdt.core-0e4687eecdc2b9cb5b04bfb801930a05af136f19.tar.gz
eclipse.jdt.core-0e4687eecdc2b9cb5b04bfb801930a05af136f19.tar.xz
eclipse.jdt.core-0e4687eecdc2b9cb5b04bfb801930a05af136f19.zip
Bug 290027 - replace deprecated IResource#setDerived() method.
Diffstat (limited to 'org.eclipse.jdt.apt.pluggable.core')
-rw-r--r--org.eclipse.jdt.apt.pluggable.core/src/org/eclipse/jdt/internal/apt/pluggable/core/filer/IdeNonSourceOutputStream.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jdt.apt.pluggable.core/src/org/eclipse/jdt/internal/apt/pluggable/core/filer/IdeNonSourceOutputStream.java b/org.eclipse.jdt.apt.pluggable.core/src/org/eclipse/jdt/internal/apt/pluggable/core/filer/IdeNonSourceOutputStream.java
index 4095661328..d414490152 100644
--- a/org.eclipse.jdt.apt.pluggable.core/src/org/eclipse/jdt/internal/apt/pluggable/core/filer/IdeNonSourceOutputStream.java
+++ b/org.eclipse.jdt.apt.pluggable.core/src/org/eclipse/jdt/internal/apt/pluggable/core/filer/IdeNonSourceOutputStream.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007 BEA Systems, Inc.
+ * Copyright (c) 2007, 2009 BEA Systems, Inc.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -19,6 +19,7 @@ import java.io.InputStream;
import java.util.Collection;
import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.jdt.apt.core.internal.env.BinaryFileOutputStream;
import org.eclipse.jdt.apt.core.internal.util.FileSystemUtil;
@@ -100,8 +101,7 @@ public class IdeNonSourceOutputStream extends ByteArrayOutputStream
try {
FileSystemUtil.makeDerivedParentFolders(_file.getParent());
if (create) {
- _file.create(toSave, true, null);
- _file.setDerived(true);
+ _file.create(toSave, IResource.FORCE | IResource.DERIVED, null);
}
else {
_file.setContents(toSave, true, false, null);

Back to the top