Examples of IOfficeSearchMatch


Examples of ag.ion.noa4e.internal.search.core.IOfficeSearchMatch

     *
     * @author Andreas Br�ker
     * @date 12.07.2006
     */
    public void run() {
      IOfficeSearchMatch officeSearchMatch = getOfficeSearchMatch(tableViewer.getSelection());
      if(officeSearchMatch == null && currentSearchResult != null) {
        officeSearchMatch = currentSearchResult.getFirstMatch();   
        tableViewer.setSelection(new StructuredSelection(officeSearchMatch));
      }
      if(officeSearchMatch != null)         
View Full Code Here

Examples of ag.ion.noa4e.internal.search.core.IOfficeSearchMatch

     *
     * @author Andreas Br�ker
     * @date 12.07.2006
     */
    public void run() {
      IOfficeSearchMatch officeSearchMatch = getOfficeSearchMatch(tableViewer.getSelection());     
      if(officeSearchMatch != null)
        showPreviousMatch(officeSearchMatch);
    }
View Full Code Here

Examples of ag.ion.noa4e.internal.search.core.IOfficeSearchMatch

     * @author Andreas Br�ker
     * @date 12.07.2006
     */
    public Image getColumnImage(Object element, int columnIndex) {
      if(element instanceof IOfficeSearchMatch) {
        IOfficeSearchMatch officeSearchMatch = (IOfficeSearchMatch)element;
        IWorkbenchAdapter workbenchAdapter = (IWorkbenchAdapter)officeSearchMatch.getFile().getAdapter(IWorkbenchAdapter.class);
        if(workbenchAdapter != null) {
          ImageDescriptor descriptor = workbenchAdapter.getImageDescriptor(((IOfficeSearchMatch)element).getFile());
          if (descriptor == null) {
            return null;
          }
         
          Image image = SearchUIPluginImages.getImageRegistry().get(officeSearchMatch.getFile().getFileExtension());        
          if (image == null) {
            image = descriptor.createImage();
            SearchUIPluginImages.getImageRegistry().put(officeSearchMatch.getFile().getFileExtension(), image);
          }
          return image;
        }
      }
      return null;
View Full Code Here

Examples of ag.ion.noa4e.internal.search.core.IOfficeSearchMatch

    tableViewer.setContentProvider(new ResultContentProvider());
    tableViewer.setLabelProvider(new ResultLabelProvider());
   
    tableViewer.addDoubleClickListener(new IDoubleClickListener() {
      public void doubleClick(DoubleClickEvent doubleClickEvent) {
        IOfficeSearchMatch officeSearchMatch = getOfficeSearchMatch(doubleClickEvent.getSelection());
        if(officeSearchMatch != null) {
          showInEditor(officeSearchMatch);
          updateActionsEnableState();
        }
      }     
View Full Code Here

Examples of ag.ion.noa4e.internal.search.core.IOfficeSearchMatch

   *
   * @author Andreas Br�ker
   * @date 13.07.2006
   */
  private void updateActionsEnableState() {
    IOfficeSearchMatch officeSearchMatch = getOfficeSearchMatch(tableViewer.getSelection());
    if(officeSearchMatch == null && currentSearchResult != null)
      officeSearchMatch = currentSearchResult.getFirstMatch();
    if(officeSearchMatch == null) {
      nextMatchAction.setEnabled(false)
      previousMatchAction.setEnabled(false);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.