Project

General

Profile

« Previous | Next » 

Revision b57b8fd1

Added by Katja Luther about 5 years ago

update details view when editing distribution editor

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/TaxonNameEditorE4.java
90 90
import eu.etaxonomy.taxeditor.model.IPartContentHasSupplementalData;
91 91
import eu.etaxonomy.taxeditor.model.MessagingUtils;
92 92
import eu.etaxonomy.taxeditor.model.TaxeditorPartService;
93
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled;
94 93
import eu.etaxonomy.taxeditor.preference.Resources;
95 94
import eu.etaxonomy.taxeditor.security.RequiredPermissions;
96 95
import eu.etaxonomy.taxeditor.store.CdmStore;
......
104 103
 */
105 104
public class TaxonNameEditorE4 implements IConversationEnabled, IDirtyMarkable, IPartContentHasDetails,
106 105
        IPartContentHasSupplementalData, IPartContentHasMedia, IPartContentHasFactualData, IPartChangeListener,
107
        ISelectionListener, ISecuredEditor, IPostOperationEnabled, IE4SavablePart, ITaxonEditor, IDropTargetableE4 {
106
        ISelectionListener, ISecuredEditor, IE4SavablePart, ITaxonEditor, IDropTargetableE4 {
108 107

  
109 108
	private Taxon taxon;
110 109

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/MessagingUtils.java
37 37
    public final static String CONNECTION_FAILURE_MESSAGE = "The connection to the remote server has been broken";
38 38
    public final static String REMOTE_ACCESS_FAILURE_MESSAGE = "Maybe the server is currently not available. If the problem persists please contact the server admin with the error trace below.";
39 39
    public static final String WIDGET_IS_DISPOSED_MESSAGE = "A widget was called, which was already disposed";
40

  
40
    public static final String ACCESS_DENIED = "The connection to the server could not be esablished because the access was denied.";
41 41
    /**
42 42
     * Gets the Log4J logger for a given class
43 43
     *
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NonViralNameDetailSection.java
77 77
                            setEntity(nonViralName);
78 78

  
79 79
                            firePropertyChangeEvent(NonViralNameDetailSection.this);
80
                            EventUtility.postEvent(WorkbenchEventConstants.REFRESH_TAXON_DETAILS, true);
80
                            EventUtility.postEvent(WorkbenchEventConstants.REFRESH_DETAILS, true);
81 81
                            EventUtility.postEvent(WorkbenchEventConstants.REFRESH_SUPPLEMENTAL, true);
82 82
	                    }
83 83
	                }
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/taxon/TaxonRelationshipDetailSection.java
102 102
                            setTaxonBase(taxon);
103 103
//                            firePropertyChangeEvent(new CdmPropertyChangeEvent(this, null));
104 104
                            detailElement.firePropertyChangeEvent(new CdmPropertyChangeEvent(detailElement, null));
105
                            EventUtility.postEvent(WorkbenchEventConstants.REFRESH_TAXON_DETAILS, true);
105
                            EventUtility.postEvent(WorkbenchEventConstants.REFRESH_DETAILS, true);
106 106
                            EventUtility.postEvent(WorkbenchEventConstants.REFRESH_SUPPLEMENTAL, true);
107 107
                            EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, rel.getToTaxon());
108 108
                            ((TaxonRelationshipDetailElement)detailElement).getTaxonElement().setSelected(true);;
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/details/DetailsViewerE4.java
873 873
    }
874 874
    @Inject
875 875
    @Optional
876
    private void updateView(@UIEventTopic(WorkbenchEventConstants.REFRESH_TAXON_DETAILS)boolean refresh){
876
    private void updateView(@UIEventTopic(WorkbenchEventConstants.REFRESH_DETAILS)boolean refresh){
877 877
        if(refresh){
878 878
            refresh();
879 879

  
880 880
//            setSelection(getSelection(), true);
881 881
        }
882 882
    }
883

  
883 884
}

Also available in: Unified diff