Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Tasse2015-02-12 23:16:47 +0000
committerPatrick Tasse2015-02-13 21:16:03 +0000
commit3d08c6db459e441aa724fa66f469da0fea8165da (patch)
treed6150384768ce74dcbdc87ba0bb541e554be58d5
parent67f1d4f9b34478af4f1607c7343ac3f7175f4870 (diff)
downloadorg.eclipse.linuxtools-3d08c6db459e441aa724fa66f469da0fea8165da.tar.gz
org.eclipse.linuxtools-3d08c6db459e441aa724fa66f469da0fea8165da.tar.xz
org.eclipse.linuxtools-3d08c6db459e441aa724fa66f469da0fea8165da.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>
-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