Source:
<code>public void onComponentRightClicked(final ComponentBuilder componentBuilder, final MouseEvent me) { final JPopupMenu popup = new JPopupMenu(); final JMenuItem configureComponentMenuItem = new JMenuItem("Configure ...", ImageManager.get().getImageIcon( IconUtils.MENU_OPTIONS, IconUtils.ICON_SIZE_SMALL)); configureComponentMenuItem.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { showConfigurationDialog(componentBuilder); } }); popup.add(configureComponentMenuItem); if (componentBuilder instanceof InputColumnSourceJob || componentBuilder instanceof HasFilterOutcomes) { popup.add(createLinkMenuItem(componentBuilder)); } final Icon renameIcon = ImageManager.get().getImageIcon(IconUtils.ACTION_RENAME, IconUtils.ICON_SIZE_SMALL); final JMenuItem renameMenuItem = WidgetFactory.createMenuItem("Rename component", renameIcon); renameMenuItem.addActionListener(new RenameComponentActionListener(componentBuilder) { @Override protected void onNameChanged() { <START> _graphContext.getJobGraph().getPanel().updateUI(); <END> } }); popup.add(renameMenuItem); if (componentBuilder instanceof TransformerComponentBuilder) { final TransformerComponentBuilder<?> tjb = (TransformerComponentBuilder<?>) componentBuilder; final JMenuItem previewMenuItem = new JMenuItem("Preview data", ImageManager.get().getImageIcon( IconUtils.ACTION_PREVIEW, IconUtils.ICON_SIZE_SMALL)); previewMenuItem.addActionListener(new PreviewTransformedDataActionListener(_windowContext, tjb)); previewMenuItem.setEnabled(componentBuilder.isConfigured()); popup.add(previewMenuItem); } popup.add(new ChangeRequirementMenu(componentBuilder)); popup.addSeparator(); popup.add(new RemoveComponentMenuItem(_graphContext.getAnalysisJobBuilder(), componentBuilder)); popup.show(_graphContext.getVisualizationViewer(), me.getX(), me.getY()); }</code><technical_language>need call JobGraph.refresh()</technical_language>

Target:
public void onComponentRightClicked(final ComponentBuilder componentBuilder, final MouseEvent me) { final JPopupMenu popup = new JPopupMenu(); final JMenuItem configureComponentMenuItem = new JMenuItem("Configure ...", ImageManager.get().getImageIcon( IconUtils.MENU_OPTIONS, IconUtils.ICON_SIZE_SMALL)); configureComponentMenuItem.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { showConfigurationDialog(componentBuilder); } }); popup.add(configureComponentMenuItem); if (componentBuilder instanceof InputColumnSourceJob || componentBuilder instanceof HasFilterOutcomes) { popup.add(createLinkMenuItem(componentBuilder)); } final Icon renameIcon = ImageManager.get().getImageIcon(IconUtils.ACTION_RENAME, IconUtils.ICON_SIZE_SMALL); final JMenuItem renameMenuItem = WidgetFactory.createMenuItem("Rename component", renameIcon); renameMenuItem.addActionListener(new RenameComponentActionListener(componentBuilder) { @Override protected void onNameChanged() { _graphContext.getJobGraph().refresh(); } }); popup.add(renameMenuItem); if (componentBuilder instanceof TransformerComponentBuilder) { final TransformerComponentBuilder<?> tjb = (TransformerComponentBuilder<?>) componentBuilder; final JMenuItem previewMenuItem = new JMenuItem("Preview data", ImageManager.get().getImageIcon( IconUtils.ACTION_PREVIEW, IconUtils.ICON_SIZE_SMALL)); previewMenuItem.addActionListener(new PreviewTransformedDataActionListener(_windowContext, tjb)); previewMenuItem.setEnabled(componentBuilder.isConfigured()); popup.add(previewMenuItem); } popup.add(new ChangeRequirementMenu(componentBuilder)); popup.addSeparator(); popup.add(new RemoveComponentMenuItem(_graphContext.getAnalysisJobBuilder(), componentBuilder)); popup.show(_graphContext.getVisualizationViewer(), me.getX(), me.getY()); }