ProcedureParameter column = (ProcedureParameter)source; displayName = column.getName(); name = displayName; int type = column.getModeType();
ProcedureParameter column = (ProcedureParameter) source; name = column.getName( ); displayName = name; if ( column.getSchema( ) != null ) name = column.getSchema( ) + "." + displayName; int type = column.getModeType( );
	public static TreeItem[] createTreeItems( TreeItem parentItem ,ArrayList dataSource, int style, Image image) 	{		if ( dataSource == null )		{			return null;		}				TreeItem item[] = new TreeItem[dataSource.size()];//		Tree parent = parentItem.getParent();//		Font dataSourceItemFont = parent.getFont();		boolean addDummyNode = false;			for (int i = 0; i < dataSource.size(); i++)		{			item[i] = new TreeItem(parentItem, style);			Object source = dataSource.get(i);			String displayName = "";			String name = "";			if(source instanceof String)			{				displayName = (String)source;				name = displayName;				item[i].setData(name);			}			else if( source instanceof TableImpl)			{				TableImpl table = (TableImpl)source;				displayName = table.getTableAlias();				name = table.getFullyQualifiedName();				item[i].setData(name);			}			else if (source instanceof TableItem )			{				displayName = ((TableItem)source).getText();				name = (String)((TableItem)source).getData();				item[i].setData(name);			}			else if(source instanceof DbObject)			{				DbObject dbObject = (DbObject)source;				name = dbObject.getName();				displayName = dbObject.getDisplayName();				image = dbObject.getImage();				addDummyNode = true;				item[i].setData(dbObject);			}			else if ( source instanceof Column )			{				Column column = (Column)source;				displayName = column.getName();				name = column.getTableName() + "." + displayName;				String type = column.getDbType();				displayName = displayName + " (" + type + ")";				 				if ( column.getSchemaName() != null )				{					name = column.getSchemaName() + "." + name;				}				item[i].setData(name);			}			else if ( source instanceof ProcedureParameter )			{				ProcedureParameter column = (ProcedureParameter)source;				displayName = column.getName();				name = displayName;				int type = column.getModeType();				String mode = toModeType( type );				String dataType = column.getDataTypeName();				displayName = displayName + " (" + dataType + ", " + mode + ")";				item[i].setData(column);			}				item[i].setText(displayName);						item[i].setImage(image);			//parent.setTopItem(item[i]);			item[i].setExpanded(false);						if ( addDummyNode )			{				new TreeItem(item[i], style);			}			}		return item;	}