001 /* 002 * file DefaultPropertySource.java 003 * 004 * Licensed Materials - Property of IBM 005 * Restricted Materials of IBM - you are allowed to copy, modify and 006 * redistribute this file as part of any program that interfaces with 007 * IBM Rational CM API. 008 * 009 * com.ibm.rational.teamapi.scout.DefaultPropertySource 010 * 011 * © Copyright IBM Corporation 2004, 2008. All Rights Reserved. 012 * Note to U.S. Government Users Restricted Rights: Use, duplication or 013 * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. 014 */ 015 016 package com.ibm.rational.teamapi.scout; 017 018 import org.eclipse.ui.views.properties.IPropertySource; 019 020 /** 021 * An abstract class providing a null implementation for the methods of 022 * IPropertySource used for editing a property. 023 */ 024 public abstract class DefaultPropertySource implements IPropertySource { 025 026 /** 027 * Returns null, indicating editing is not possible 028 */ 029 public Object getEditableValue() 030 { 031 return null; 032 } 033 034 /** 035 * Returns false, indicating value is not edited 036 */ 037 public boolean isPropertySet( 038 Object id) 039 { 040 return false; 041 } 042 043 /** 044 * Does nothing 045 */ 046 public void resetPropertyValue(Object id) 047 { 048 } 049 050 /** 051 * Does nothing 052 */ 053 public void setPropertyValue( 054 Object id, 055 Object value) 056 { 057 } 058 }