@Override public boolean equals(Object object) { if (object instanceof IContextInformation) { IContextInformation contextInformation= (IContextInformation) object; boolean equals= fInformationDisplayString.equalsIgnoreCase(contextInformation.getInformationDisplayString()); if (fContextDisplayString != null) equals= equals && fContextDisplayString.equalsIgnoreCase(contextInformation.getContextDisplayString()); return equals; } return false; }
@Override public Image getImage() { return fContextInformation.getImage(); }
@Override public String getInformationDisplayString() { return fContextInformation.getInformationDisplayString(); }
/** * 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); } }
@Override public String getContextDisplayString() { return fContextInformation.getContextDisplayString(); }
@Override public String getInformationDisplayString() { return fContextInformation.getInformationDisplayString(); }
/** * 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); } }
@Override public String getContextDisplayString() { return fContextInformation.getContextDisplayString(); }
@Override public boolean equals(Object object) { if (object instanceof IContextInformation) { IContextInformation contextInformation= (IContextInformation) object; boolean equals= fInformationDisplayString.equalsIgnoreCase(contextInformation.getInformationDisplayString()); if (fContextDisplayString != null) equals= equals && fContextDisplayString.equalsIgnoreCase(contextInformation.getContextDisplayString()); return equals; } return false; }
public String getInformationDisplayString() { return fContextInformation.getInformationDisplayString(); }
/** * 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); } }
public String getContextDisplayString() { return fContextInformation.getContextDisplayString(); }
@Override public Image getImage() { return fContextInformation.getImage(); }
@Override public boolean equals(Object object) { if (object instanceof IContextInformation) { IContextInformation contextInformation= (IContextInformation) object; boolean equals= getInformationDisplayString().equalsIgnoreCase(contextInformation.getInformationDisplayString()); if (getContextDisplayString() != null) equals= equals && getContextDisplayString().equalsIgnoreCase(contextInformation.getContextDisplayString()); return equals; } return false; }
_currentParameter = currentParameter; String s = _information.getInformationDisplayString(); int[] commas = computeCommaPositions(s);
/** * 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); } }
public Image getImage() { return fContextInformation.getImage(); }