Project

General

Profile

Revision 0da7f0a6

ID0da7f0a6274616f07d67b43d1923b4f0845d6bd3
Parent f0644f26
Child 04cfada2

Added by Andreas Kohlbecker almost 4 years ago

more clearly indicating view is in loading state before cache is available, last part of changes
- other changes are in f393241 ToOneRelatedEntityReloader

View differences:

src/main/java/eu/etaxonomy/vaadin/mvp/AbstractCdmEditorPresenter.java
229 229
     */
230 230
    @Override
231 231
    public EntityCache getCache() {
232
        if(((AbstractPopupEditor)getView()).isBeanLoaded()){
233
            return cache;
234
        } else {
235
            return null;
236
        }
232
        return cache;
233
//        if(((AbstractPopupEditor)getView()).isBeanLoaded()){
234
//        } else {
235
//            return null;
236
//        }
237
    }
238

  
239
    /**
240
     * Returns true only after the view method {@link AbstractPopupEditor#loadInEditor()}
241
     * has completed.
242
     *
243
     */
244
    @Override
245
    public boolean isCacheInitialized() {
246
        return ((AbstractPopupEditor)getView()).isBeanLoaded();
237 247
    }
238 248

  
239 249
}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)