FieldDecoration getDecoration() { if (decoration == null) { if (image == null) { if (imageRegistry == null) { imageRegistry = JFaceResources.getImageRegistry(); } image = imageRegistry.get(imageId); } decoration = new FieldDecoration(image, description); } // Null out all other fields now that the decoration has an image description = null; imageId = null; imageRegistry = null; image = null; return decoration; } }
FieldDecoration getDecoration() { if (decoration == null) { if (image == null) { if (imageRegistry == null) { imageRegistry = JFaceResources.getImageRegistry(); } image = imageRegistry.get(imageId); } decoration = new FieldDecoration(image, description); } // Null out all other fields now that the decoration has an image description = null; imageId = null; imageRegistry = null; image = null; return decoration; } }
FieldDecoration getDecoration() { if (decoration == null) { if (image == null) { if (imageRegistry == null) { imageRegistry = JFaceResources.getImageRegistry(); } image = imageRegistry.get(imageId); } decoration = new FieldDecoration(image, description); } // Null out all other fields now that the decoration has an image description = null; imageId = null; imageRegistry = null; image = null; return decoration; } }