Project

General

Profile

« Previous | Next » 

Revision c4de8fcb

Added by Andreas Müller about 3 years ago

cleanup

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/defaultHandler/OpenReferencingObjectsViewHandler.java
20 20

  
21 21
public class OpenReferencingObjectsViewHandler {
22 22

  
23
    List<UuidAndTitleCache<? extends ICdmBase>> selectedObjectList;
23
    private List<UuidAndTitleCache<? extends ICdmBase>> selectedObjectList;
24 24

  
25 25
    @Execute
26 26
    public void execute(EPartService partService) {
......
39 39
    public boolean canExecute(EPartService partService,
40 40
            @Named(IServiceConstants.ACTIVE_PART)MPart activePart,
41 41
            MHandledMenuItem menuItem) {
42

  
42 43
        boolean canExecute = false;
43 44
        MPart part = partService.findPart(AppModelId.PARTDESCRIPTOR_EU_ETAXONOMY_TAXEDITOR_BULKEDITOR_REFERENCINGOBJECTS_E4_REFERENCINGOBJECTSVIEWE4);
44 45
        canExecute = part.equals(activePart)  //we explicitly want to allow calling the view recursively
45 46
                || part.getObject() == null ;  //we show the menu item only if the view is not yet open (otherwise by setting the focus data will be shown anyway
46 47
                                               //but this may change in future for some data where explicitly calling the view is required
47 48

  
48

  
49

  
50 49
        selectedObjectList = null;
51 50
        if (canExecute){
52 51
            String commandId = menuItem.getCommand().getElementId();

Also available in: Unified diff