upload tizen1.0 source
[sdk/ide/product.git] / org.eclipse.cdt.ui / src / org / eclipse / cdt / ui / newui / ExpLibraryPathTab.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2009 Intel Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  *     Intel Corporation - initial API and implementation
10  *******************************************************************************/
11 package org.eclipse.cdt.ui.newui;
12
13 import org.eclipse.cdt.core.resources.IPathEntryStoreListener;
14 import org.eclipse.cdt.core.resources.PathEntryStoreChangedEvent;
15 import org.eclipse.cdt.core.settings.model.CLibraryPathEntry;
16 import org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry;
17 import org.eclipse.cdt.core.settings.model.ICSettingEntry;
18
19 /**
20  * @noextend This class is not intended to be subclassed by clients.
21  */
22 public class ExpLibraryPathTab extends AbstractExportTab implements IPathEntryStoreListener {
23
24         public void pathEntryStoreChanged(PathEntryStoreChangedEvent event) {
25                 updateData(getResDesc());
26         }
27
28         @Override
29         public ICLanguageSettingEntry doAdd(String s1, String s2, boolean isWsp) {
30                 int flags = isWsp ? ICSettingEntry.VALUE_WORKSPACE_PATH : 0;
31                 return new CLibraryPathEntry(s2, flags);
32         }
33
34         @Override
35         public ICLanguageSettingEntry doEdit(String s1, String s2, boolean isWsp) {
36                 return doAdd(s1, s2, isWsp);
37         }
38
39         @Override
40         public int getKind() {
41                 return ICSettingEntry.LIBRARY_PATH;
42         }
43
44         @Override
45         public boolean hasValues() {
46                 return false;
47         }
48 }