.getActiveWorkbenchWindow(), "View source code" ); //$NON-NLS-1$
SaveAction saveAction = new SaveAction();
SaveAsAction saveAsAction = new SaveAsAction();
RemoveSchemaAction removeSchemaAction = new RemoveSchemaAction();
PoolManager view = ( PoolManager ) PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage()
.findView( Application.PLUGIN_ID + ".view.PoolManager" ); //$NON-NLS-1$
Object selection = ( ( TreeSelection ) view.getViewer().getSelection() ).getFirstElement();
if ( selection instanceof SchemaWrapper )
{
Schema schema = ( ( SchemaWrapper ) selection ).getMySchema();
if ( schema.type == SchemaType.coreSchema )