KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > preferences > LookupOrder


1 /*******************************************************************************
2  * Copyright (c) 2004, 2005 IBM 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  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.core.internal.preferences;
12
13 /**
14  * Object used to store the look-up order for preference
15  * scope searching.
16  *
17  * @since 3.0
18  */

19 public class LookupOrder {
20
21     private String JavaDoc[] order;
22
23     LookupOrder(String JavaDoc[] order) {
24         for (int i = 0; i < order.length; i++)
25             if (order[i] == null)
26                 throw new IllegalArgumentException JavaDoc();
27         this.order = order;
28     }
29
30     public String JavaDoc[] getOrder() {
31         return order;
32     }
33 }
34
Popular Tags