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
Answertopia.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.navigator
Interface INavigatorSaveablesService


public interface INavigatorSaveablesService

Since:
3.2
Restriction:
This interface is not intended to be implemented by clients.
Restriction:
This interface is not intended to be extended by clients.

Method Summary
  Saveable[] getActiveSaveables ()
          Returns the active saveables based on the current selection.
  Saveable[] getSaveables ()
          Returns the Saveable objects for which elements are contained in the tree.
 void init ( ISaveablesSource source, StructuredViewer viewer, ISaveablesLifecycleListener listener)
          Initializes this service.
 

Method Detail

init

void init(
ISaveablesSource source,
          
StructuredViewer viewer,
          
ISaveablesLifecycleListener listener)
Initializes this service. Must be called on the UI thread, and may only be called once. The given viewer's control must not be disposed.

The given listener will be notified of changes to the result of getSaveables() and to the dirty state of those saveables. The given source will be used as the event source for these event notifications.

The given viewer's selection will be used by getActiveSaveables() to determine the active saveables. The active saveables are determined by iterating over the current selection, and for each element, walking up its parent chain until an element representing a saveable is found, or a root element is reached.

Parameters:
source -
viewer -
listener -

getSaveables


Saveable[] getSaveables()
Returns the Saveable objects for which elements are contained in the tree.

Returns:
the saveables

getActiveSaveables


Saveable[] getActiveSaveables()
Returns the active saveables based on the current selection. This method must be called on the UI thread.

Returns:
the active saveables based on the current selection

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