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
9
* Intel Corporation - initial API and implementation
10
*******************************************************************************/
11
package org.eclipse.cdt.ui.newui;
13
import org.eclipse.cdt.core.resources.IPathEntryStoreListener;
14
import org.eclipse.cdt.core.resources.PathEntryStoreChangedEvent;
15
import org.eclipse.cdt.core.settings.model.CLibraryFileEntry;
16
import org.eclipse.cdt.core.settings.model.ICLanguageSettingEntry;
17
import org.eclipse.cdt.core.settings.model.ICSettingEntry;
20
* @noextend This class is not intended to be subclassed by clients.
22
public class ExpLibraryTab extends AbstractExportTab implements IPathEntryStoreListener {
24
public void pathEntryStoreChanged(PathEntryStoreChangedEvent event) {
25
updateData(getResDesc());
29
public ICLanguageSettingEntry doAdd(String s1, String s2, boolean isWsp) {
30
int flags = isWsp ? ICSettingEntry.VALUE_WORKSPACE_PATH : 0;
31
return new CLibraryFileEntry(s2, flags);
35
public ICLanguageSettingEntry doEdit(String s1, String s2, boolean isWsp) {
36
return doAdd(s1, s2, isWsp);
40
public int getKind() {
41
return ICSettingEntry.LIBRARY_FILE;
45
public boolean hasValues() {