Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tasse2015-02-12 18:16:47 -0500
committerPatrick Tasse2015-02-16 10:09:04 -0500
commit6d03bf29322f1ceed7ccba7529d1aab60d6bd0c4 (patch)
treefafc4b0953ea546d22fd7e4084e3ec8ce34b2baa
parenta131b831e83f4d368031fc082542256cbb38ff68 (diff)
downloadorg.eclipse.linuxtools-6d03bf29322f1ceed7ccba7529d1aab60d6bd0c4.tar.gz
org.eclipse.linuxtools-6d03bf29322f1ceed7ccba7529d1aab60d6bd0c4.tar.xz
org.eclipse.linuxtools-6d03bf29322f1ceed7ccba7529d1aab60d6bd0c4.zip
tmf: Bug 455414: Make bookmarks file immediately hidden at creation
Change-Id: I8ff21dbbd2201d50580aab43991794c11acb1fc8 Signed-off-by: Patrick Tasse <patrick.tasse@gmail.com> Reviewed-on: https://git.eclipse.org/r/41792 Tested-by: Hudson CI Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> (cherry picked from commit 3d08c6db459e441aa724fa66f469da0fea8165da) Reviewed-on: https://git.eclipse.org/r/41850
-rw-r--r--lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/project/model/TmfCommonProjectElement.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/project/model/TmfCommonProjectElement.java b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/project/model/TmfCommonProjectElement.java
index 52e53a8fd5..1827caa131 100644
--- a/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/project/model/TmfCommonProjectElement.java
+++ b/lttng/org.eclipse.linuxtools.tmf.ui/src/org/eclipse/linuxtools/tmf/ui/project/model/TmfCommonProjectElement.java
@@ -265,11 +265,9 @@ public abstract class TmfCommonProjectElement extends TmfProjectModelElement {
final IFile bookmarksFile = bookmarksFolder.getFile(BOOKMARKS_HIDDEN_FILE);
if (!bookmarksFile.exists()) {
final InputStream source = new ByteArrayInputStream(new byte[0]);
- bookmarksFile.create(source, true, null);
+ bookmarksFile.create(source, IResource.FORCE | IResource.HIDDEN, null);
}
- bookmarksFile.setHidden(true);
- file.createLink(bookmarksFile.getLocation(), IResource.REPLACE, null);
- file.setHidden(true);
+ file.createLink(bookmarksFile.getLocation(), IResource.REPLACE | IResource.HIDDEN, null);
file.setPersistentProperty(TmfCommonConstants.TRACETYPE, traceType);
}
return file;

Back to the top