@Override public Image getImage() { return fContextInformation.getImage(); }
@Override public Image getImage() { return fContextInformation.getImage(); }
public Image getImage() { return fContextInformation.getImage(); }
/** * Sets the contexts in the context selector to the given set. * * @param contexts the possible contexts * @param selectionIndex the index of the proposal to select */ private void setContexts(IContextInformation[] contexts, int selectionIndex) { if (Helper.okToUse(fContextSelectorTable)) { fContextSelectorInput= contexts; fContextSelectorTable.setRedraw(false); fContextSelectorTable.removeAll(); TableItem item; IContextInformation t; for (int i= 0; i < contexts.length; i++) { t= contexts[i]; item= new TableItem(fContextSelectorTable, SWT.NULL); if (t.getImage() != null) item.setImage(t.getImage()); item.setText(t.getContextDisplayString()); } fContextSelectorTable.select(selectionIndex); fContextSelectorTable.setRedraw(true); } }
/** * Sets the contexts in the context selector to the given set. * * @param contexts the possible contexts * @param selectionIndex the index of the proposal to select */ private void setContexts(IContextInformation[] contexts, int selectionIndex) { if (Helper.okToUse(fContextSelectorTable)) { fContextSelectorInput= contexts; fContextSelectorTable.setRedraw(false); fContextSelectorTable.removeAll(); TableItem item; IContextInformation t; for (IContextInformation context : contexts) { t= context; item= new TableItem(fContextSelectorTable, SWT.NULL); if (t.getImage() != null) item.setImage(t.getImage()); item.setText(t.getContextDisplayString()); } fContextSelectorTable.select(selectionIndex); fContextSelectorTable.setRedraw(true); } }
/** * Sets the contexts in the context selector to the given set. * * @param contexts the possible contexts */ private void setContexts(IContextInformation[] contexts) { if (Helper2.okToUse(fContextSelectorTable)) { fContextSelectorInput= contexts; fContextSelectorTable.setRedraw(false); fContextSelectorTable.removeAll(); TableItem item; IContextInformation t; for (int i= 0; i < contexts.length; i++) { t= contexts[i]; item= new TableItem(fContextSelectorTable, SWT.NULL); if (t.getImage() != null) item.setImage(t.getImage()); item.setText(t.getContextDisplayString()); } fContextSelectorTable.select(0); fContextSelectorTable.setRedraw(true); } }
/** * Sets the contexts in the context selector to the given set. * * @param contexts the possible contexts */ private void setContexts(IContextInformation[] contexts) { if (Helper2.okToUse(fContextSelectorTable)) { fContextSelectorInput= contexts; fContextSelectorTable.setRedraw(false); fContextSelectorTable.removeAll(); TableItem item; IContextInformation t; for (IContextInformation context : contexts) { t= context; item= new TableItem(fContextSelectorTable, SWT.NULL); if (t.getImage() != null) item.setImage(t.getImage()); item.setText(t.getContextDisplayString()); } fContextSelectorTable.select(0); fContextSelectorTable.setRedraw(true); } }