SortKey sortkey = StructureFactory.createSortKey( ); sortkey.setKey( "Key" ); DesignElementHandle handle = (DesignElementHandle) item; PropertyHandle propertyHandle = handle.getPropertyHandle( ListingHandle.SORT_PROP ); propertyHandle.addItem( sortkey );
SortkeyBuilder dialog = new SortkeyBuilder( UIUtil.getDefaultShell( ), SortkeyBuilder.DLG_TITLE_NEW ); dialog.setHandle( (DesignElementHandle) item ); dialog.setInput( null ); if ( dialog.open( ) == Dialog.CANCEL ) { return false; }
	public boolean doAddItem( Object item, int pos ) throws SemanticException	{		if ( item instanceof DesignElementHandle )		{			SortKey sortkey = StructureFactory.createSortKey( );			sortkey.setKey( "Key" );//$NON-NLS-1$			DesignElementHandle handle = (DesignElementHandle) item;			PropertyHandle propertyHandle = handle.getPropertyHandle( ListingHandle.SORT_PROP );			propertyHandle.addItem( sortkey );		}		return true;	}