@Override public void refresh() { if (getContextManager() == null) { disposeInstallMessageComp(); disposeNatTableComp(); if (availableLabelComp == null || (availableLabelComp != null && availableLabelComp.isDisposed())) { createContextNotAvailableGroup(this); } } else { if (!ContextNatTableUtils.checkIsInstallExternalJar()) { disposeUnAvailableContextComp(); if (messageComp == null || (messageComp != null && messageComp.isDisposed())) { createMessageGroup(this); } } else { reInitializeUI(); initializeContextCombo(); checkContextGroupSource(); // dispose the data table composite disposeDataTable(); // create the data table composite createNatTable(); contextTableComp.getParent().layout(); contextTableComp.layout(); treeTable.refresh(); setButtonEnableState(); } } }
/** need force refresh here after install the external jar */ private void reInitializeUI() { disposeInstallMessageComp(); disposeUnAvailableContextComp(); if (contextTableComp == null || (contextTableComp != null && contextTableComp.isDisposed())) { initializeUI(); contextTableComp.getParent().layout(); contextTableComp.layout(); } }