public void dispose() { // Dispose of the view if the content was successfully initialised. if (initialisedContent) { // Dispose of the actions that were successfully added to the view for (ViewAction action : addedViewActions) { try { action.dispose(); } catch (Exception e) { logger.warn("BAD ViewAction: (" + action.getClass().getSimpleName() + ") Exception on dispose: " + e.getMessage()); } } addedViewActions.clear(); // Dispose of our view component if (viewComponent != null) { try { viewComponent.dispose(); } catch (Exception e) { logger.warn("BAD ViewComponent: (" + viewComponent.getClass().getSimpleName() + ") Exception on dispose: " + e.getMessage()); } } } }
public void dispose() { // Dispose of the view if the content was successfully initialised. if (initialisedContent) { // Dispose of the actions that were successfully added to the view for (ViewAction action : addedViewActions) { try { action.dispose(); } catch (Exception e) { logger.warn("BAD ViewAction: (" + action.getClass().getSimpleName() + ") Exception on dispose: " + e.getMessage()); } } addedViewActions.clear(); // Dispose of our view component if (viewComponent != null) { try { viewComponent.dispose(); } catch (Exception e) { logger.warn("BAD ViewComponent: (" + viewComponent.getClass().getSimpleName() + ") Exception on dispose: " + e.getMessage()); } } } }
public void dispose() { // Dispose of the view if the content was successfully initialised. if (initialisedContent) { // Dispose of the actions that were successfully added to the view for (ViewAction action : addedViewActions) { try { action.dispose(); } catch (Exception e) { logger.warn("BAD ViewAction: (" + action.getClass().getSimpleName() + ") Exception on dispose: " + e.getMessage()); } } addedViewActions.clear(); // Dispose of our view component if (viewComponent != null) { try { viewComponent.dispose(); } catch (Exception e) { logger.warn("BAD ViewComponent: (" + viewComponent.getClass().getSimpleName() + ") Exception on dispose: " + e.getMessage()); } } } }