KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > ui > internal > components > registry > ScopeReference


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.ui.internal.components.registry;
12
13
14 /**
15  * @since 3.1
16  */

17 public class ScopeReference implements IScopeReference {
18
19     private int relationship;
20     private IComponentScope scope;
21     
22     public ScopeReference(int relationship, IComponentScope target) {
23         this.relationship = relationship;
24         this.scope = target;
25     }
26     
27     /* (non-Javadoc)
28      * @see org.eclipse.core.components.registry.IScopeReference#getRelationship()
29      */

30     public int getRelationship() {
31         return relationship;
32     }
33
34     /* (non-Javadoc)
35      * @see org.eclipse.core.component.registry.IScopeReference#getTarget()
36      */

37     public IComponentScope getTarget() {
38         return scope;
39     }
40
41 }
42
Popular Tags