Source:
<code>public void onSimpleEditor() { TreePath selObjs = tree.getSelectionPath(); if (selObjs.getLastPathComponent() instanceof TocTreeNodeStyle) { try { Style style = ((TocTreeNodeStyle) selObjs.getLastPathComponent()).getStyle(); final Layer layer = (Layer) style.getLayer(); if(isStyleAllowed(layer)){ final int index = layer.indexOf(style); MapEditor editor = mapElement.getMapEditor(); JAXBElement<StyleType> jest = style.getJAXBElement(); MapTransform mt = editor.getMapControl().getMapTransform(); Type typ = layer.getDataSource().getMetadata().getFieldType( layer.getDataSource().getSpatialFieldIndex()); Style copy = new Style(jest, layer); final SimpleStyleEditor pan = new SimpleStyleEditor(mt, typ, layer, copy); ActionListener apply = new ActionListener() { @Override public void actionPerformed(ActionEvent actionEvent) { Style s1 = pan.getStyleWrapper().getStyle(); JAXBElement<StyleType> jaxbElement = s1.getJAXBElement(); try { Style s2 = new Style(jaxbElement, layer); layer.setStyle(index, s2); } catch (SeExceptions.InvalidStyle invalidStyle) { <START> LOGGER.error(I18N.tr("")); <END> } } }; if (UIFactory.showApplyDialog(pan, apply)) { try { layer.setStyle(index, pan.getStyleWrapper().getStyle()); } catch (ClassificationMethodException e) { LOGGER.error(e.getMessage()); } } }else{ LOGGER.info("This functionality is not supported."); } } catch (SeExceptions.InvalidStyle sis) { LOGGER.error("The style you're trying to edit is not valid !"); } catch (DriverException de) { LOGGER.error("An error occurred while processing the DataSource"); } catch (UnsupportedOperationException uoe){ LOGGER.error(uoe.getMessage()); } } }</code><technical_language>Please set i18N key</technical_language>

Target:
public void onSimpleEditor() { TreePath selObjs = tree.getSelectionPath(); if (selObjs.getLastPathComponent() instanceof TocTreeNodeStyle) { try { Style style = ((TocTreeNodeStyle) selObjs.getLastPathComponent()).getStyle(); final Layer layer = (Layer) style.getLayer(); if(isStyleAllowed(layer)){ final int index = layer.indexOf(style); MapEditor editor = mapElement.getMapEditor(); JAXBElement<StyleType> jest = style.getJAXBElement(); MapTransform mt = editor.getMapControl().getMapTransform(); Type typ = layer.getDataSource().getMetadata().getFieldType( layer.getDataSource().getSpatialFieldIndex()); Style copy = new Style(jest, layer); final SimpleStyleEditor pan = new SimpleStyleEditor(mt, typ, layer, copy); ActionListener apply = new ActionListener() { @Override public void actionPerformed(ActionEvent actionEvent) { Style s1 = pan.getStyleWrapper().getStyle(); JAXBElement<StyleType> jaxbElement = s1.getJAXBElement(); try { Style s2 = new Style(jaxbElement, layer); layer.setStyle(index, s2); } catch (SeExceptions.InvalidStyle invalidStyle) { LOGGER.error(I18N.tr("You produced an invalid style while copying" + "a valid one. Things are getting really wrong here.")); } } }; if (UIFactory.showApplyDialog(pan, apply)) { try { layer.setStyle(index, pan.getStyleWrapper().getStyle()); } catch (ClassificationMethodException e) { LOGGER.error(e.getMessage()); } } }else{ LOGGER.info("Styles can be set only on vector layers."); } } catch (SeExceptions.InvalidStyle sis) { LOGGER.error("The style you're trying to edit is not valid !"); } catch (DriverException de) { LOGGER.error("An error occurred while processing the DataSource"); } catch (UnsupportedOperationException uoe){ LOGGER.error(uoe.getMessage()); } } }