public void updateDescriptionViewer(ISchemaObject obj) { if (obj != null) { String text = obj.getDescription(); fDescriptionViewer.getDocument().set(text == null ? "" : text); // $NON-NLS-1$ fDescriptionViewer.getViewer().setEditable(obj.getSchema().isEditable()); } }
@Override public boolean doGlobalAction(String actionId) { if (fShowDescription && fDescriptionViewer != null && fDescriptionViewer.getViewer().getTextWidget().isFocusControl()) return fDescriptionViewer.doGlobalAction(actionId); return super.doGlobalAction(actionId); }
@Override public boolean canPaste(Clipboard clipboard) { if (fShowDescription && fDescriptionViewer != null && fDescriptionViewer.getViewer().getTextWidget().isFocusControl()) return fDescriptionViewer.canPaste(); return super.canPaste(clipboard); }