ArrayList targetSchemaList = new ArrayList(); ArrayList schemaObjectList = new ArrayList(); if(schemaList!=null)
ArrayList schemaObjectList = new ArrayList( ); if ( schemaList != null )
	protected void populateSchemaList()	{		if ( rootNode != null )		{			removeTreeItem( rootNode );		}		getAvailableSchema();		// If the schemaCombo have not be initialized yet.		if ( schemaCombo.getItemCount() < 1)		{			schemaCombo.add( JdbcPlugin.getResourceString("tablepage.text.All") );			schemaCombo.select( 0 );			if( schemaList != null){				Iterator it = schemaList.iterator( );				while ( it.hasNext( ) )					schemaCombo.add( it.next( ).toString( ) );			}		}		ArrayList targetSchemaList = new ArrayList();			ArrayList schemaObjectList = new ArrayList();		if(schemaList!=null)		{			int numberOfSchema = 0;			Preferences preferences = JdbcPlugin.getDefault( )					.getPluginPreferences( );			if ( preferences.contains( DateSetPreferencePage.USER_MAX_NUM_OF_SCHEMA ) )			{				numberOfSchema = preferences.getInt( DateSetPreferencePage.USER_MAX_NUM_OF_SCHEMA );			}			else			{				numberOfSchema = DateSetPreferencePage.DEFAULT_MAX_NUM_OF_SCHEMA;				preferences.setValue( DateSetPreferencePage.USER_MAX_NUM_OF_SCHEMA,						numberOfSchema );			}			cachedSchemaComboIndex = schemaCombo.getSelectionIndex();			if ( schemaCombo.getSelectionIndex() == 0)			{				targetSchemaList = schemaList;			}			else			{				targetSchemaList.add( schemaCombo.getItem( schemaCombo.getSelectionIndex() ));				numberOfSchema = 1;			}			for ( int i = 0; i < targetSchemaList.size( ) && i < numberOfSchema; i++ )			{				String schemaName = (String) targetSchemaList.get( i );				DbObject schemaObj = new DbObject( schemaName,						schemaName,						DbObject.SCHEMA_TYPE,						schemaImage );				schemaObjectList.add( schemaObj );			}			TreeItem[] items = Utility.createTreeItems( rootNode,					schemaObjectList,					SWT.NONE,					schemaImage );			if ( items != null && items.length > 0 )			{				availableDbObjectsTree.showItem( items[0] );			}		}	}