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
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

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




Eclipse Platform
Release 3.5

Interface ISynchronizable

All Known Subinterfaces:
All Known Implementing Classes:
AbstractMarkerAnnotationModel, AnnotationModel, ProjectionAnnotationModel, ResourceMarkerAnnotationModel

public interface ISynchronizable

Interface for text related objects which may be used in the multi-threaded context and thus must provide a way to prevent concurrent access and manipulation.

In order to reduce the probability of dead locks clients should synchronize their access to these objects by using the provided lock object rather than the object itself.

Managing objects can use the setLockObject method in order to synchronize whole sets of objects.


Method Summary
  Object getLockObject ()
          Returns the lock object or null if there is none.
 void setLockObject ( Object lockObject)
          Sets the lock object for this object.

Method Detail


void setLockObject(
Object lockObject)
Sets the lock object for this object. If the lock object is not null subsequent calls to specified methods of this object are synchronized on this lock object. Which methods are synchronized is specified by the implementer.

You should not override an existing lock object unless you own that lock object yourself. Use the existing lock object instead.

lockObject - the lock object. May be null.


Object getLockObject()
Returns the lock object or null if there is none. Clients should use the lock object in order to synchronize concurrent access to the implementer.

the lock object or null

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