return null;
}
public static void refreshHousing(MCTStandardHousing housing, View newHousingView) {
// Retrieve the reference to the current housing view manifestation.
MCTHousingViewManifestation oldHousingManifestation = (MCTHousingViewManifestation) housing.getHousedViewManifestation();
MCTHousingViewManifestation targetHousingViewManifestation = (MCTHousingViewManifestation) newHousingView;
targetHousingViewManifestation.setSize(housing.getWidth(), housing.getHeight());
MCTControlArea controlArea = housing.getControlArea();
controlArea.setParentHousing(housing);
targetHousingViewManifestation.setControlArea(controlArea);
targetHousingViewManifestation.setControlAreaVisible(oldHousingManifestation.isControlAreaVisible());
AbstractComponent component = newHousingView.getManifestedComponent();
if (!component.isLeaf()) {
View directoryArea = component.getViewInfos(ViewType.NAVIGATOR).iterator().next().createView(component);
targetHousingViewManifestation.setDirectoryArea(directoryArea);
}
if (component != PlatformAccess.getPlatform().getRootComponent()) {
MCTContentArea contentArea = housing.getContentArea();
contentArea.clearHousedManifestations();
contentArea.setParentHousing(housing);
contentArea.setOwnerComponentCanvasManifestation(component.getViewInfos(ViewType.CENTER).iterator().next().createView(component));
targetHousingViewManifestation.setContentArea(contentArea);
}
if (!component.isLeaf()) {
View inspectionArea = component.getViewInfos(ViewType.RIGHT).iterator().next().createView(component);
targetHousingViewManifestation.setInspectionArea(inspectionArea);
}
if (!component.isLeaf()) {
MCTStatusArea statusArea = housing.getStatusArea();
targetHousingViewManifestation.setStatusArea(statusArea);
}
housing.setHousingViewManifesation(targetHousingViewManifestation);
housing.setTitle(component.getDisplayName() + " - " + newHousingView.getInfo().getViewName());
housing.buildGUI();
}