diff options
author | Patrick Tasse | 2015-02-12 23:16:47 +0000 |
---|---|---|
committer | Patrick Tasse | 2015-02-13 21:16:03 +0000 |
commit | 3d08c6db459e441aa724fa66f469da0fea8165da (patch) | |
tree | d6150384768ce74dcbdc87ba0bb541e554be58d5 | |
parent | 67f1d4f9b34478af4f1607c7343ac3f7175f4870 (diff) | |
download | org.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.java | 6 |
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; |