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 EMF Model Transaction Development Guide
Previous Page Home Next Page

Workspace Integration Example


This example describes the usage of the transaction framework through the workspace integration. It demonstrates how a UI could be hooked up using the eclipse operation history framework to allow UI and non-UI threads to read and make changes to a transactional editing domain.


Please refer to the document EMF Model Transaction Examples Overview for reviewing the library meta-model used as the basis for demonstrating the capabilities in this example.


This example plug-in is named org.eclipse.emf.workspace.examples.library.editor. This plug-in contributes a new EXTLibrary editor for opening and modifying existing library files:

  1. An editor is opened for each resource. The editor only shows one resource. When other resources are loaded (eg. proxy resolution causes anothe resource to be loaded) into the editing domain, another editor is opened for that resource.
  2. The undo/redo of each editor is governed by an IOperationHistory and only the operations that affect the resource are presented in that menu.
  3. Example Background Task: This actions performs a read task in the background to demonstrate how the UI can be blocked for making changes while this read task is in progress.

Please refer to the tutorial Workspace Integration Tutorial for reviewing the code samples within this example

Workspace Example Editor


Refer to this example if you need:

  1. Multiple editors sharing the same editing domain
  2. Integration of a transactional editing domain into the eclipse IOperationHistory
  3. Management of multiple read/write threads on a single EMF-style editing domain

Copyright (c) 2006 IBM Corporation and others. All Rights Reserved.

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