@Override protected void computeInformation() { if (fProposalTable == null || fProposalTable.isDisposed()) return; TableItem[] selection= fProposalTable.getSelection(); if (selection != null && selection.length > 0) { TableItem item= selection[0]; // compute information String information= null; Object d= item.getData(); if (d instanceof ICompletionProposal) { ICompletionProposal p= (ICompletionProposal) d; information= p.getAdditionalProposalInfo(); } if (d instanceof ICompletionProposalExtension3) setCustomInformationControlCreator(((ICompletionProposalExtension3) d).getInformationControlCreator()); else setCustomInformationControlCreator(null); // compute subject area setMargins(4, -1); Rectangle area= fProposalTable.getBounds(); area.x= 0; // subject area is the whole subject control area.y= 0; // set information & subject area setInformation(information, area); } }
@Override protected void computeInformation() { if (fProposalTable == null || fProposalTable.isDisposed()) return; TableItem[] selection= fProposalTable.getSelection(); if (selection != null && selection.length > 0) { TableItem item= selection[0]; // compute information String information= null; Object d= item.getData(); if (d instanceof ICompletionProposal) { ICompletionProposal p= (ICompletionProposal) d; information= p.getAdditionalProposalInfo(); } if (d instanceof ICompletionProposalExtension3) setCustomInformationControlCreator(((ICompletionProposalExtension3) d).getInformationControlCreator()); else setCustomInformationControlCreator(null); // compute subject area setMargins(4, -1); Rectangle area= fProposalTable.getBounds(); area.x= 0; // subject area is the whole subject control area.y= 0; // set information & subject area setInformation(information, area); } }