deletePartAction.setEnabled(part != null);
CameraView cameraView = MainFrame.cameraPanel.getSelectedCameraView();
if (cameraView != null) {
if (part != null) {
Reticle reticle = new OutlineReticle(part.getPackage().getOutline());
MainFrame.cameraPanel.getSelectedCameraView().setReticle(PartsPanel.this.getClass().getName(), reticle);
}
else {
MainFrame.cameraPanel.getSelectedCameraView().removeReticle(PartsPanel.this.getClass().getName());
}