/**
* Implementation for {@link #refreshVisuals()}.
*/
private void refreshVisualsEx() throws Exception {
IDeviceView device = DeviceSelectionSupport.getDeviceView(m_object);
if (device != null) {
// update figure with device image
{
Image image = device.getImage();
m_deviceFigure.setLocation(DEVICE_LOCATION);
m_deviceFigure.setSize(image.getBounds().width, image.getBounds().height);
}
// update EditPart figure
{
Rectangle bounds = device.getDisplayBounds().getCopy();
bounds.translate(DEVICE_LOCATION);
m_editPart.getFigure().setBounds(bounds);
}
} else {
Rectangle bounds = m_object.getBounds();