creatorextension/com.nokia.s60tools.creator/src/com/nokia/s60tools/creator/components/bookmark/BookmarkFolderVariables.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 package com.nokia.s60tools.creator.components.bookmark; |
|
19 |
|
20 import java.util.LinkedHashMap; |
|
21 |
|
22 import com.nokia.s60tools.creator.components.AbstractVariables; |
|
23 |
|
24 /** |
|
25 * Variables for bookmar folder |
|
26 */ |
|
27 public class BookmarkFolderVariables extends AbstractVariables { |
|
28 |
|
29 |
|
30 private static BookmarkFolderVariables instance; |
|
31 |
|
32 /** |
|
33 * Get Singleton instance of variables |
|
34 * @return |
|
35 */ |
|
36 public static BookmarkFolderVariables getInstance() { |
|
37 |
|
38 if(instance == null){ |
|
39 instance = new BookmarkFolderVariables(); |
|
40 } |
|
41 |
|
42 return instance; |
|
43 } |
|
44 |
|
45 private BookmarkFolderVariables(){ |
|
46 init(); |
|
47 } |
|
48 |
|
49 |
|
50 /** |
|
51 * UI text "Name" |
|
52 */ |
|
53 public static final String NAME = "Name"; |
|
54 |
|
55 private void init() { |
|
56 |
|
57 items = new LinkedHashMap<String, String>(1); |
|
58 items.put("name",NAME); |
|
59 |
|
60 } |
|
61 |
|
62 protected AbstractVariables getInstanceImpl() { |
|
63 return instance; |
|
64 } |
|
65 |
|
66 } |