Jump to: navigation, search

FAQ How can I be notified on property changes on a resource?

Revision as of 16:32, 14 March 2006 by Claffra (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

It depends what you mean by properties. For some metadata stored on resources, such as markers and sync info, an IResourceChangeListener can be used to be notified when they change. Other metadata, such as session and persistent properties, has no corresponding change notification. This is a design trade-off, as tracking and broadcasting change notifications can be quite expensive. Session and persistent properties are designed to be used only by the plug-in that declared the property, so other plug-ins should never be tracking or changing properties declared by your plug-in.


See Also:

FAQ_How_can_I_be_notified_of_changes_to_the_workspace?

FAQ_How_do_I_store_extra_properties_on_a_resource?

FAQ_How_can_I_be_notified_when_the_workspace_is_being_saved?

FAQ_How_do_I_react_to_changes_in_source_files?


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.