KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > runtime > registry > RegistryPropertySource


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 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.pde.internal.runtime.registry;
12
13 import java.util.Vector JavaDoc;
14
15 import org.eclipse.ui.views.properties.*;
16
17 public abstract class RegistryPropertySource implements IPropertySource {
18
19 public Object JavaDoc getEditableValue() {
20     return null;
21 }
22 public IPropertyDescriptor[] getPropertyDescriptors() {
23     return null;
24 }
25 public boolean isPropertySet(Object JavaDoc id) {
26     return false;
27 }
28 public void resetPropertyValue(Object JavaDoc id) {}
29 public void setPropertyValue(Object JavaDoc id, Object JavaDoc value) {}
30 protected IPropertyDescriptor[] toDescriptorArray(Vector JavaDoc result) {
31     IPropertyDescriptor [] array = new IPropertyDescriptor[result.size()];
32     result.copyInto(array);
33     return array;
34 }
35 }
36
Popular Tags