@Override public boolean equals(Object obj) { if (obj instanceof ContextFrame) { ContextFrame frame= (ContextFrame) obj; return fInformation.equals(frame.fInformation) && fBeginOffset == frame.fBeginOffset; } return super.equals(obj); }
@Override public boolean equals(Object obj) { if (obj instanceof ContextFrame) { ContextFrame frame= (ContextFrame) obj; return fInformation.equals(frame.fInformation) && fBeginOffset == frame.fBeginOffset; } return super.equals(obj); }
@Override public boolean isContextInformationValid(int offset) { IContextInformation[] infos= fProcessor.computeContextInformation(fViewer, offset); if (infos != null && infos.length > 0) { for (int i= 0; i < infos.length; i++) if (fContextInformation.equals(infos[i])) return true; } return false; } }
@Override public boolean isContextInformationValid(int offset) { IContextInformation[] infos= fProcessor.computeContextInformation(fViewer, offset); if (infos != null && infos.length > 0) { for (IContextInformation info : infos) if (fContextInformation.equals(info)) return true; } return false; } }
@Override public boolean isContextInformationValid(int offset) { if (fContentAssistSubjectControl != null && fProcessor instanceof ISubjectControlContentAssistProcessor) { IContextInformation[] infos= ((ISubjectControlContentAssistProcessor)fProcessor).computeContextInformation(fContentAssistSubjectControl, offset); if (infos != null && infos.length > 0) { for (IContextInformation info : infos) { if (fContextInformation.equals(info)) return true; } } } return false; } }
@Override public boolean isContextInformationValid(int offset) { if (fContentAssistSubjectControl != null && fProcessor instanceof ISubjectControlContentAssistProcessor) { IContextInformation[] infos= ((ISubjectControlContentAssistProcessor)fProcessor).computeContextInformation(fContentAssistSubjectControl, offset); if (infos != null && infos.length > 0) { for (int i= 0; i < infos.length; i++) { if (fContextInformation.equals(infos[i])) return true; } } } return false; } }
public boolean isContextInformationValid(int offset) { if (fContextInformation instanceof ISmartContextInformation) { return ((ISmartContextInformation) fContextInformation).isContextInformationValid(fViewer, offset); } else { IContextInformation[] infos= fProcessor.computeContextInformation(fViewer, offset); if (infos != null && infos.length > 0) { for (int i= 0; i < infos.length; i++) if (fContextInformation.equals(infos[i])) return true; } return false; } }