Project

General

Profile

« Previous | Next » 

Revision 027fe4eb

Added by Patrick Plitzner almost 7 years ago

ref #6748 Refactor parameter name to avoid ambiguity

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/supplementaldata/SupplementalDataViewPart.java
56 56
	/** {@inheritDoc} */
57 57
	@Override
58 58
	protected void selectionChanged_internal(IWorkbenchPart workbenchPart, ISelection selection) {
59
	    Object part = workbenchPart;
60
        Object wrappedPart = WorkbenchUtility.getE4WrappedPart(part);
59
	    Object partObject = workbenchPart;
60
        Object wrappedPart = WorkbenchUtility.getE4WrappedPart(partObject);
61 61
        if(wrappedPart!=null){
62
            part = wrappedPart;
62
            partObject = wrappedPart;
63 63
        }
64 64
		if(AbstractUtility.getActiveE4Editor() == null){
65 65
			showEmptyPage();
66 66
			return;
67 67
		}
68 68

  
69
        if(part == this){
69
        if(partObject == this){
70 70
            return;
71 71
        }
72 72

  
......
76 76

  
77 77
        IStructuredSelection structuredSelection = (IStructuredSelection) selection;
78 78

  
79
		if((part instanceof EditorPart || part instanceof IPartContentHasSupplementalData)) {
79
		if((partObject instanceof EditorPart || partObject instanceof IPartContentHasSupplementalData)) {
80 80
			if(structuredSelection.size() != 1){
81 81
				showEmptyPage();
82 82
				return;
......
99 99
			else if(structuredSelection.getFirstElement() instanceof GbifResponse){
100 100
			    structuredSelection = new StructuredSelection(((GbifResponse)structuredSelection.getFirstElement()).getDerivedUnitFacade().innerDerivedUnit());
101 101
			}
102
			showViewer(part, structuredSelection);
102
			showViewer(partObject, structuredSelection);
103 103
		}else{
104 104
			showEmptyPage();
105 105
		}

Also available in: Unified diff