KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > model > bundle > EclipseAutoStartHeader


1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.pde.internal.ui.model.bundle;
12
13 import java.util.*;
14
15
16 public class EclipseAutoStartHeader extends ManifestHeader {
17     
18     private ArrayList fExceptions = new ArrayList();
19     
20     public EclipseAutoStartHeader() {
21         setName("Eclipse-AutoStart"); //$NON-NLS-1$
22
}
23     
24     public void addException(String JavaDoc packageName) {
25         if (!fExceptions.contains(packageName))
26             fExceptions.add(packageName);
27     }
28     
29     public void removeException(String JavaDoc packageName) {
30         fExceptions.remove(packageName);
31     }
32     
33     public String JavaDoc[] getExceptions() {
34         return (String JavaDoc[])fExceptions.toArray(new String JavaDoc[fExceptions.size()]);
35     }
36 }
37
Popular Tags