Hei Ben,

you need to use the selectionManager

final Collection features = 
context.getLayerViewPanel().getSelectionManager().getFeaturesWithSelectedItems();
this code is for instance used in the ReplicateSelectedItemsPlugIn from 
package org.openjump.core.ui.plugin.edit

stefan

ben abid haifa wrote:

> good morning Stefan,
> I wonder how can I let entites that I have their 
> correspendant features ( the class Feature)selected in the map.
>  
>  
> this is the code:
>  
> Object[] features = 
> context.getWorkbenchContext().getLayerManager().getLayer(0).getFeatureCollectionWrapper().getFeatures().toArray();
> Feature f = (Feature) features[i]
> f.setSelected?????????
>  
>  thank you
>  
>  
>
> ------------------------------------------------------------------------
> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos 
> questions ! Profitez des connaissances, des opinions et des 
> expériences des internautes sur Yahoo! Questions/Réponses 
> <http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com>. 





-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jump-pilot-devel mailing list
Jump-pilot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel

Reply via email to