Revision 9e2ac218
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/details/DetailsPartE4.java | ||
---|---|---|
60 | 60 |
@Named(IServiceConstants.ACTIVE_SELECTION)Object selection, |
61 | 61 |
@Named(IServiceConstants.ACTIVE_PART)MPart activePart, |
62 | 62 |
MPart thisPart){ |
63 |
System.out.println(selection); |
|
63 | 64 |
if(activePart==thisPart){ |
64 | 65 |
return; |
65 | 66 |
} |
66 | 67 |
if(selection==null){ |
67 | 68 |
showEmptyPage(); |
69 |
return; |
|
68 | 70 |
} |
69 | 71 |
|
70 | 72 |
Object partObject = activePart; |
... | ... | |
82 | 84 |
} |
83 | 85 |
if(structuredSelection.isEmpty()){ |
84 | 86 |
showEmptyPage(); |
87 |
return; |
|
85 | 88 |
} |
86 | 89 |
if((partObject instanceof IEditorPart) || (partObject instanceof IPartContentHasDetails) |
87 | 90 |
&& partObject instanceof IConversationEnabled) { |
... | ... | |
99 | 102 |
} |
100 | 103 |
else{ |
101 | 104 |
showEmptyPage(); |
105 |
return; |
|
102 | 106 |
} |
103 | 107 |
} |
104 | 108 |
|
105 | 109 |
public void showEmptyPage() { |
106 |
viewer.showEmptyPage(); |
|
110 |
if(viewer!=null){ |
|
111 |
viewer.showEmptyPage(); |
|
112 |
} |
|
107 | 113 |
selectionProvidingPart = null; |
108 | 114 |
} |
109 | 115 |
|
Also available in: Unified diff
ref #6597 Fix potential endless loop