diff options
Diffstat (limited to 'plugins/org.eclipse.jem.ui/beaninfoui/org/eclipse/jem/internal/beaninfo/ui/BPBeaninfoListElement.java')
-rw-r--r-- | plugins/org.eclipse.jem.ui/beaninfoui/org/eclipse/jem/internal/beaninfo/ui/BPBeaninfoListElement.java | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/plugins/org.eclipse.jem.ui/beaninfoui/org/eclipse/jem/internal/beaninfo/ui/BPBeaninfoListElement.java b/plugins/org.eclipse.jem.ui/beaninfoui/org/eclipse/jem/internal/beaninfo/ui/BPBeaninfoListElement.java deleted file mode 100644 index 72d125928..000000000 --- a/plugins/org.eclipse.jem.ui/beaninfoui/org/eclipse/jem/internal/beaninfo/ui/BPBeaninfoListElement.java +++ /dev/null @@ -1,80 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2001, 2005 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ -package org.eclipse.jem.internal.beaninfo.ui; -/* - - - */ - -import org.eclipse.jem.internal.beaninfo.core.BeaninfoEntry; -import org.eclipse.jem.internal.beaninfo.core.SearchpathEntry; - -/** - * @version 1.0 - * @author - */ -public class BPBeaninfoListElement extends BPListElement { - - BPSearchListElement[] searchpaths; - - /** - * Constructor for BPBeaninfoListElement. - * The searchPaths is the initial list, it is assumed that - * the beaninfoEntry has these searchpaths in them too. - */ - public BPBeaninfoListElement(BeaninfoEntry entry, BPSearchListElement[] searchpaths, boolean missing) { - super(entry, missing); - this.searchpaths = searchpaths != null ? searchpaths : new BPSearchListElement[0]; - } - - /** - * Mark the entry as exported. - */ - public void setExported(boolean exported) { - ((BeaninfoEntry) entry).setIsExported(exported); - } - - /* - * @see BPListElement#canExportBeChanged() - */ - public boolean canExportBeChanged() { - return true; - } - - /* - * @see BPListElement#isExported() - */ - public boolean isExported() { - return ((BeaninfoEntry) entry).isExported(); - } - - /** - * Return the current list of Searchpaths for this Beaninfo Element. - */ - public BPSearchListElement[] getSearchpaths() { - return searchpaths; - } - - /** - * Set the new list. This will update the beaninfo entry too. - */ - public void setSearchpaths(BPSearchListElement[] searchpaths) { - this.searchpaths = searchpaths; - - SearchpathEntry[] spEntries = new SearchpathEntry[searchpaths.length]; - for (int i = 0; i < searchpaths.length; i++) { - BPSearchListElement bps = searchpaths[i]; - spEntries[i] = (SearchpathEntry) bps.getEntry(); - } - - ((BeaninfoEntry) entry).setSearchPaths(spEntries); - } -} |