/** * {@inheritDoc} * * @see org.eclipse.jface.viewers.ViewerFilter#select(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @Override public boolean select(Viewer viewer, Object parentElement, Object element) { TeiidVdb vdb = RuntimeAssistant.adapt(element, TeiidVdb.class); if (vdb != null && vdb.isPreviewVdb()) return false; return true; }
/** * {@inheritDoc} * * @see org.eclipse.jface.viewers.ViewerFilter#select(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @Override public boolean select(Viewer viewer, Object parentElement, Object element) { TeiidTranslator teiidTranslator = RuntimeAssistant.adapt(element, TeiidTranslator.class); if (teiidTranslator != null) return false; return true; }
/** * {@inheritDoc} * * @see org.eclipse.jface.viewers.ViewerFilter#select(org.eclipse.jface.viewers.Viewer, * java.lang.Object, java.lang.Object) */ @Override public boolean select(Viewer viewer, Object parentElement, Object element) { TeiidDataSource dataSource = RuntimeAssistant.adapt(element, TeiidDataSource.class); if (dataSource != null && dataSource.isPreview()) return false; return true; }