02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The <strong>Ocean</strong> Module<br />

If a module is not available for some reason, then any module that tries to use its services<br />

must behave in a reasonable fashion. The default behavior is to throw an exception (Fig.<br />

3-4 on page 3-30). Remember a module might not be available due to issues like:<br />

• Missing assembly file for the module<br />

• Missing entry in the configuration file for the module<br />

• Invalid license that prevented the module from being instantiated<br />

Fig. 3-4 Petrel Example of Exception Thrown when Module Not Found<br />

Integrate Presentation<br />

The IntegratePresentation method of IModule is the phase in the module lifecycle<br />

in which user interface components are added to the product family. These components<br />

may include:<br />

• New menus in the menu bar<br />

• New items in existing menus or new menus<br />

• New toolbars<br />

• New tools added to toolbars<br />

• Context menus<br />

• Pages in settings dialogs<br />

• Custom windows<br />

During IntegratePresentation, the system user interface is available<br />

programmatically for addition of features but is not visible on the screen. Added<br />

3-30 <strong>Ocean</strong> Application Development Framework 2008.1<br />

<strong>Schlumberger</strong> Private

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!