Project

General

Profile

« Previous | Next » 

Revision 27dcccfd

Added by Patrick Plitzner almost 7 years ago

ref #6748 Unwrap E4 parts during selection change events

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/DescriptiveViewPart.java
154 154

  
155 155
	/** {@inheritDoc} */
156 156
	@Override
157
    protected void selectionChanged_internal(IWorkbenchPart part, ISelection selection) {
157
    protected void selectionChanged_internal(IWorkbenchPart workbenchPart, ISelection selection) {
158 158
//		if(AbstractUtility.getActiveE4Editor() == null){
159 159
//			showEmptyPage();
160 160
//			return;
......
163 163
		if(part == this){
164 164
		    return;
165 165
		}
166

  
167
        Object part = workbenchPart;
168
        Object wrappedPart = WorkbenchUtility.getE4WrappedPart(part);
169
        if(wrappedPart!=null){
170
            part = wrappedPart;
171
        }
172

  
166 173
        if (part instanceof DetailsViewPart || part instanceof SupplementalDataViewPart
167 174
                || part instanceof MediaViewPart) {
168 175
            // do not show empty page as these views are also used to edit the

Also available in: Unified diff