Eclipse Platform
Release 3.2

org.eclipse.ui
Interface ISaveableModelSource

All Known Implementing Classes:
ModelSynchronizeParticipant

public interface ISaveableModelSource

Workbench parts that work in terms of saveable models should implement this interface in order to provide better integration with workbench facilities like the Save command, prompts to save on part close or shutdown, etc.

Since:
3.2

Method Summary
 ISaveableModel[] getActiveModels()
          Returns the saveable models currently active in the workbench part.
 ISaveableModel[] getModels()
          Returns the saveable models presented by the workbench part.
 

Method Detail

getModels

public ISaveableModel[] getModels()
Returns the saveable models presented by the workbench part.

Returns:
the saveable models presented by the workbench part

getActiveModels

public ISaveableModel[] getActiveModels()
Returns the saveable models currently active in the workbench part.

Certain workbench actions, such as Save, target only the active models in the active part.

Returns:
the saveable models currently active in the workbench part

Eclipse Platform
Release 3.2

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2006. All rights reserved.