protected void filterAndSetSelection(List<?> list) { ArrayList<Object> res= new ArrayList<>(list.size()); for (int i= list.size()-1; i >= 0; i--) { Object curr= list.get(i); if (curr instanceof CPListElement) { CPListElement elem= (CPListElement) curr; if (elem.getParentContainer() == null && isEntryKind(elem.getEntryKind())) { res.add(curr); } } } setSelection(res, false); }
protected void filterAndSetSelection(List<?> list) { ArrayList<Object> res= new ArrayList<>(list.size()); for (int i= list.size()-1; i >= 0; i--) { Object curr= list.get(i); if (curr instanceof CPListElement) { CPListElement elem= (CPListElement) curr; if (elem.getParentContainer() == null && isEntryKind(elem.getEntryKind())) { res.add(curr); } } } setSelection(res, false); }
protected void filterAndSetSelection(List list) { ArrayList res= new ArrayList(list.size()); for (int i= list.size()-1; i >= 0; i--) { Object curr= list.get(i); if (curr instanceof CPListElement) { CPListElement elem= (CPListElement) curr; if (elem.getParentContainer() == null && isEntryKind(elem.getEntryKind())) { res.add(curr); } } } setSelection(res, false); }
private void tabChanged(Widget widget) { if (widget instanceof TabItem) { TabItem tabItem= (TabItem) widget; BuildPathBasePage newPage= (BuildPathBasePage) tabItem.getData(); if (fCurrPage != null) { List<?> selection= fCurrPage.getSelection(); if (!selection.isEmpty()) { newPage.setSelection(selection, false); } } fCurrPage= newPage; fPageIndex= tabItem.getParent().getSelectionIndex(); } }
private void tabChanged(Widget widget) { if (widget instanceof TabItem) { TabItem tabItem= (TabItem) widget; BuildPathBasePage newPage= (BuildPathBasePage) tabItem.getData(); if (fCurrPage != null) { List<?> selection= fCurrPage.getSelection(); if (!selection.isEmpty()) { newPage.setSelection(selection, false); } } fCurrPage= newPage; fPageIndex= tabItem.getParent().getSelectionIndex(); } }
private void tabChanged(Widget widget) { if (widget instanceof TabItem) { TabItem tabItem= (TabItem) widget; BuildPathBasePage newPage= (BuildPathBasePage) tabItem.getData(); if (fCurrPage != null) { List selection= fCurrPage.getSelection(); if (!selection.isEmpty()) { newPage.setSelection(selection, false); } } fCurrPage= newPage; fPageIndex= tabItem.getParent().getSelectionIndex(); } }
protected void tabChanged(Widget widget) { if (widget instanceof TabItem) { TabItem tabItem = (TabItem) widget; BuildPathBasePage newPage = (BuildPathBasePage) tabItem.getData(); if (fCurrPage != null) { List selection = fCurrPage.getSelection(); if (!selection.isEmpty()) { newPage.setSelection(selection, false); } } fCurrPage = newPage; fPageIndex = tabItem.getParent().getSelectionIndex(); } }
protected void tabChanged(Widget widget) { if (widget instanceof TabItem) { TabItem tabItem = (TabItem) widget; BuildPathBasePage newPage = (BuildPathBasePage) tabItem.getData(); if (fCurrPage != null) { List selection = fCurrPage.getSelection(); if (!selection.isEmpty()) { newPage.setSelection(selection, false); } } fCurrPage = newPage; fPageIndex = tabItem.getParent().getSelectionIndex(); } } }
protected void tabChanged(Widget widget) { if (widget instanceof TabItem) { TabItem tabItem = (TabItem) widget; BuildPathBasePage newPage = (BuildPathBasePage) tabItem.getData(); if (fCurrPage != null) { List selection = fCurrPage.getSelection(); if (!selection.isEmpty()) { newPage.setSelection(selection, false); } } fCurrPage = newPage; fPageIndex = tabItem.getParent().getSelectionIndex(); } } }
public void setElementToReveal(IClasspathEntry entry, String attributeKey) { int pageIndex= getPageIndex(entry.getEntryKind()); if (fTabFolder == null) { fPageIndex= pageIndex; } else { fTabFolder.setSelection(pageIndex); CPListElement element= findElement(entry); if (element != null) { Object elementToSelect= element; if (attributeKey != null) { Object attrib= element.findAttributeElement(attributeKey); if (attrib != null) { elementToSelect= attrib; } } BuildPathBasePage page= (BuildPathBasePage) fTabFolder.getItem(pageIndex).getData(); List<Object> selection= new ArrayList<>(1); selection.add(elementToSelect); page.setSelection(selection, true); } } }
public void setElementToReveal(IClasspathEntry entry, String attributeKey) { int pageIndex= getPageIndex(entry.getEntryKind()); if (fTabFolder == null) { fPageIndex= pageIndex; } else { fTabFolder.setSelection(pageIndex); CPListElement element= findElement(entry); if (element != null) { Object elementToSelect= element; if (attributeKey != null) { Object attrib= element.findAttributeElement(attributeKey); if (attrib != null) { elementToSelect= attrib; } } BuildPathBasePage page= (BuildPathBasePage) fTabFolder.getItem(pageIndex).getData(); List<Object> selection= new ArrayList<>(1); selection.add(elementToSelect); page.setSelection(selection, true); } } }
public void setElementToReveal(IClasspathEntry entry, String attributeKey) { int pageIndex= getPageIndex(entry.getEntryKind()); if (fTabFolder == null) { fPageIndex= pageIndex; } else { fTabFolder.setSelection(pageIndex); CPListElement element= findElement(entry); if (element != null) { Object elementToSelect= element; if (attributeKey != null) { Object attrib= element.findAttributeElement(attributeKey); if (attrib != null) { elementToSelect= attrib; } } BuildPathBasePage page= (BuildPathBasePage) fTabFolder.getItem(pageIndex).getData(); List selection= new ArrayList(1); selection.add(elementToSelect); page.setSelection(selection, true); } } }