Project

General

Profile

« Previous | Next » 

Revision 0da7f0a6

Added by Andreas Kohlbecker over 6 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