/** Show the types which are available in the current project only. */ protected void refreshFromProject() { if (fTreeViewer != null) { fTreeViewer.setInput(null); } if (fProjectObjects == null) { Resource resource = modelObject.eResource(); IFile file = BPELUtil.getFileFromURI(resource.getURI()); fProjectObjects = resourceContentProvider.getElements(file.getProject()); } if (fFilteredList != null) { fFilteredList.setEnabled(true); fFilteredList.setAllowDuplicates(showDuplicates); fFilteredList.setElements(contentProvider.getElements(fProjectObjects)); if (contentProvider.getElements(fProjectObjects) != null && contentProvider.getElements(fProjectObjects).length > 0) { updateLowerViewWidget(fFilteredList.getSelection()); } } }