1 /*******************************************************************************
2 * Copyright (c) 2013 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * Marc-Andre Laperle - Initial API and implementation
11 *******************************************************************************/
13 package org
.eclipse
.linuxtools
.internal
.tmf
.ui
.project
.wizards
.tracepkg
;
15 import java
.util
.List
;
18 import org
.eclipse
.linuxtools
.internal
.tmf
.ui
.Activator
;
19 import org
.eclipse
.swt
.graphics
.Image
;
22 * A trace package element representing the bookmarks of a trace
24 * @author Marc-Andre Laperle
26 public class TracePackageBookmarkElement
extends TracePackageElement
{
27 private static final String BOOKMARK_IMAGE_PATH
= "icons/elcl16/bookmark_obj.gif"; //$NON-NLS-1$
28 private final List
<Map
<String
, String
>> bookmarkAttribs
;
31 * Construct a bookmark element containing all the bookmarks
35 * @param bookmarkAttribs
36 * the bookmarks for the trace
38 public TracePackageBookmarkElement(TracePackageElement parent
, List
<Map
<String
, String
>> bookmarkAttribs
) {
40 this.bookmarkAttribs
= bookmarkAttribs
;
44 public long getSize(boolean checkedOnly
) {
49 public String
getText() {
50 return Messages
.TracePackage_Bookmarks
;
54 public Image
getImage() {
55 return Activator
.getDefault().getImageFromImageRegistry(BOOKMARK_IMAGE_PATH
);
59 * Get all the bookmarks
61 * @return the bookmarks
63 public List
<Map
<String
, String
>> getBookmarks() {
64 return bookmarkAttribs
;