@Override public Object getViewPartInput() { if (fViewer != null) { return fViewer.getInput(); } return null; }
@Override public Object getInput() { return fViewer.getInput(); }
@Override public Object getViewPartInput() { if (fViewer != null) { return fViewer.getInput(); } return null; }
public Object getViewPartInput() { if (fViewer != null) { return fViewer.getInput(); } return null; }
protected Object getInput() { return fViewer.getInput(); }
@Override public Object getInput() { return fViewer.getInput(); }
public void setInput(Object object) { if (object != fViewer.getInput()) fViewer.setInput(object); }
private boolean isInputResetBy(IWorkbenchPart part) { if (!(part instanceof JavaBrowsingPart)) return true; Object thisInput= getViewer().getInput(); Object partInput= ((JavaBrowsingPart)part).getViewer().getInput(); if(thisInput instanceof Collection) thisInput= ((Collection<?>)thisInput).iterator().next(); if(partInput instanceof Collection) partInput= ((Collection<?>)partInput).iterator().next(); if (thisInput instanceof IJavaElement && partInput instanceof IJavaElement) return getTypeComparator().compare((IJavaElement) partInput, (IJavaElement) thisInput) > 0; else return true; }
private void adjustInput(List<IPackageFragment> selectedElements) { Object currentInput= getViewer().getInput(); if (!selectedElements.equals(currentInput)) setInput(selectedElements); } /*
private void adjustInput(IWorkbenchPart part, List selectedElements) { Object currentInput= getViewer().getInput(); if (!selectedElements.equals(currentInput)) setInput(selectedElements); } /*
private void adjustInput(List<IPackageFragment> selectedElements) { Object currentInput= getViewer().getInput(); if (!selectedElements.equals(currentInput)) setInput(selectedElements); } /*
@Override public String getTitleToolTip() { if (fViewer == null) return super.getTitleToolTip(); return getToolTipText(fViewer.getInput()); }
@Override public String getTitleToolTip() { if (fViewer == null) return super.getTitleToolTip(); return getToolTipText(fViewer.getInput()); }
public String getTitleToolTip() { if (fViewer == null) return super.getTitleToolTip(); return getToolTipText(fViewer.getInput()); }
boolean isInputAWorkingCopy() { Object input= getViewer().getInput(); if (input instanceof IJavaElement) { ICompilationUnit cu= (ICompilationUnit)((IJavaElement)input).getAncestor(IJavaElement.COMPILATION_UNIT); if (cu != null) return cu.isWorkingCopy(); } return false; }
boolean isInputAWorkingCopy() { Object input= getViewer().getInput(); if (input instanceof IJavaElement) { ICompilationUnit cu= (ICompilationUnit)((IJavaElement)input).getAncestor(IJavaElement.COMPILATION_UNIT); if (cu != null) return cu.isWorkingCopy(); } return false; }
boolean isInputAWorkingCopy() { Object input= getViewer().getInput(); if (input instanceof IJavaElement) { ICompilationUnit cu= (ICompilationUnit)((IJavaElement)input).getAncestor(IJavaElement.COMPILATION_UNIT); if (cu != null) return cu.isWorkingCopy(); } return false; }
public ISelection getSelection() { StructuredViewer viewer = installedIUGroup.getStructuredViewer(); ISelection selection = viewer.getSelection(); if (selection.isEmpty()) { final Object[] all = ((IStructuredContentProvider) viewer.getContentProvider()).getElements(viewer.getInput()); return new StructuredSelection(all); } return selection; }
/** * Invoked once when the action bars are set. * @param actionBars the action bars */ protected void fillActionBars(IActionBars actionBars) { getActionGroup().fillActionBars(actionBars); updateActionBars((IStructuredSelection) getViewer().getSelection()); Object input = getViewer().getInput(); if (input instanceof ISynchronizeModelElement) { getActionGroup().modelChanged((ISynchronizeModelElement) input); } }
/** * Invoked once when the action bars are set. * @param actionBars the action bars */ protected void fillActionBars(IActionBars actionBars) { getActionGroup().fillActionBars(actionBars); updateActionBars(getViewer().getStructuredSelection()); Object input = getViewer().getInput(); if (input instanceof ISynchronizeModelElement) { getActionGroup().modelChanged((ISynchronizeModelElement) input); } }