Revision a213a051
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/IdentifiableSourceElement.java | ||
---|---|---|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.taxeditor.ui.section.supplemental; |
5 | 5 |
|
6 |
import org.eclipse.e4.ui.workbench.modeling.EPartService; |
|
6 | 7 |
import org.eclipse.swt.events.SelectionListener; |
7 | 8 |
import org.eclipse.ui.forms.widgets.ExpandableComposite; |
8 | 9 |
|
9 | 10 |
import eu.etaxonomy.cdm.model.common.IdentifiableSource; |
11 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
|
10 | 12 |
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection; |
11 | 13 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
12 | 14 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
... | ... | |
56 | 58 |
} |
57 | 59 |
if(eventSource == selection_reference){ |
58 | 60 |
getEntity().setCitation(selection_reference.getSelection()); |
61 |
AbstractUtility.getDetailsView(this.formFactory.getContext().get(EPartService.class)). |
|
62 |
refreshSelection(); |
|
59 | 63 |
} |
60 | 64 |
else if(eventSource == text_referenceDetail){ |
61 | 65 |
getEntity().setCitationMicroReference(text_referenceDetail.getText()); |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/selection/EntitySelectionElement.java | ||
---|---|---|
220 | 220 |
T selection = SelectionDialogFactory.getSelectionFromDialog(clazz, getShell(), //getConversationHolder(), |
221 | 221 |
getEntity(), getParentElement()); |
222 | 222 |
setSelectionInternal(selection); |
223 |
StoreUtil.reflowParentScrolledForm(getLayoutComposite(), true); |
|
223 |
if(!getLayoutComposite().isDisposed()){ |
|
224 |
StoreUtil.reflowParentScrolledForm(getLayoutComposite(), true); |
|
225 |
} |
|
224 | 226 |
}else{ |
225 | 227 |
Reference selection = SelectionDialogFactory.getSelectionFromExtDialog(Reference.class, getShell(),//null, |
226 | 228 |
getParentElement()); |
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/details/DetailsPartE4.java | ||
---|---|---|
17 | 17 |
import org.eclipse.e4.core.services.log.Logger; |
18 | 18 |
import org.eclipse.e4.ui.model.application.ui.basic.MPart; |
19 | 19 |
import org.eclipse.jface.viewers.IStructuredSelection; |
20 |
import org.eclipse.jface.viewers.StructuredSelection; |
|
20 | 21 |
import org.eclipse.swt.SWTException; |
21 | 22 |
import org.eclipse.swt.widgets.Composite; |
22 | 23 |
|
... | ... | |
41 | 42 |
public class DetailsPartE4 extends AbstractCdmEditorPartE4 implements IPartContentHasSupplementalData { |
42 | 43 |
@Inject |
43 | 44 |
private Logger logger; |
44 |
|
|
45 |
|
|
45 | 46 |
@Inject |
46 | 47 |
public DetailsPartE4() { |
47 | 48 |
} |
... | ... | |
110 | 111 |
} |
111 | 112 |
} |
112 | 113 |
|
114 |
public void refreshSelection(){ |
|
115 |
selectionChanged_internal(new StructuredSelection(this.viewer.getInput()), selectionProvidingPart, thisPart); |
|
116 |
} |
|
117 |
|
|
113 | 118 |
@Override |
114 | 119 |
protected void showEmptyPage() { |
115 | 120 |
super.showEmptyPage(); |
Also available in: Unified diff
ref #7865 Update source details when editing source