|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A common tag interface that is supported by viewers that want to enable access to their selection.
API clients should not implement this interface.
API clients typically use the interface when implementing
IActionDelegate.selectionChanged
.
Example:
public void selectionChanged(IAction action, final ISelection selection) { if (selection instanceof IStructuredSelection) { IStructuredSelection structuredSelection = (IStructuredSelection) selection; Object firstSelection = structuredSelection.getFirstElement(); if (firstSelection instanceof IAdaptableSelection) { myExpectedObject = (...) ((IAdaptableSelection) firstSelection).getAdapter( ... ); } } }
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.