Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.ui.views.properties
Interface IPropertySource2

All Superinterfaces:
IPropertySource

public interface IPropertySource2
extends IPropertySource

Extension to the standard IPropertySource interface.

This interface provides extended API to IPropertySource to allow an easier indication of properties that have a default value and can be resetted.

Since:
3.0
See Also:
IPropertySource

Method Summary
 boolean isPropertyResettable ( Object id)
          Returns whether the value of the property with the specified id is resettable to a default value.
 boolean isPropertySet ( Object id)
          IPropertySource2 overrides the specification of this IPropertySource method to return true instead of false if the specified property does not have a meaningful default value.
 
Methods inherited from interface org.eclipse.ui.views.properties. IPropertySource
getEditableValue, getPropertyDescriptors, getPropertyValue, resetPropertyValue, setPropertyValue
 

Method Detail

isPropertyResettable

boolean isPropertyResettable(
Object id)
Returns whether the value of the property with the specified id is resettable to a default value.

Parameters:
id - the id of the property
Returns:
true if the property with the specified id has a meaningful default value to which it can be resetted, and false otherwise
See Also:
IPropertySource.resetPropertyValue(Object), IPropertySource.isPropertySet(Object)

isPropertySet

boolean isPropertySet(
Object id)
IPropertySource2 overrides the specification of this IPropertySource method to return true instead of false if the specified property does not have a meaningful default value. isPropertyResettable will only be called if isPropertySet returns true.

Returns whether the value of the property with the given id has changed from its default value. Returns false if this source does not have the specified property.

If the notion of default value is not meaningful for the specified property then true is returned.

Specified by:
isPropertySet in interface IPropertySource
Parameters:
id - the id of the property
Returns:
true if the value of the specified property has changed from its original default value, true if the specified property does not have a meaningful default value, and false if this source does not have the specified property
Since:
3.1
See Also:
isPropertyResettable(Object), IPropertySource.resetPropertyValue(Object)

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire