// final DesktopName name = new DesktopName(Object.class, PathFactory.provideDevicePath(device));
return new ViewInstance() {
// private transient DefaultDeviceEnclosurePanel view;
public JComponent getView() throws ComponentGenerationException {
DefaultDeviceEnclosurePanel view;
// if (view == null) {
view = new DefaultDeviceEnclosurePanel();
try {
view.init(device, new JPanel() {
public Color getForeground() {
return UIColors.getDefaultFG();
}
public Color getBackground() {