Package org.eclipse.jdt.ui
Class JavaElementContentProvider
java.lang.Object
org.eclipse.jdt.ui.StandardJavaElementContentProvider
org.eclipse.jdt.ui.JavaElementContentProvider
- All Implemented Interfaces:
IElementChangedListener
,IWorkingCopyProvider
,org.eclipse.jface.viewers.IContentProvider
,org.eclipse.jface.viewers.IStructuredContentProvider
,org.eclipse.jface.viewers.ITreeContentProvider
@Deprecated
public class JavaElementContentProvider
extends StandardJavaElementContentProvider
implements IElementChangedListener
Deprecated.
use the StandardJavaElementContentProvider instead
A tree content provider for Java elements. It extends the
StandardJavaElementContentProvider with support for listening to changes.
This class may be instantiated; it is not intended to be subclassed.
- See Also:
- Restriction:
- This class is not intended to be subclassed by clients.
-
Field Summary
Modifier and TypeFieldDescriptionprotected Object
Deprecated.The input objectprotected org.eclipse.jface.viewers.TreeViewer
Deprecated.The tree viewerFields inherited from class org.eclipse.jdt.ui.StandardJavaElementContentProvider
fProvideMembers, fProvideWorkingCopy, NO_CHILDREN
-
Constructor Summary
ConstructorDescriptionDeprecated.Creates a new content provider for Java elements.JavaElementContentProvider
(boolean provideMembers, boolean provideWorkingCopy) Deprecated.Creates a new content provider for Java elements. -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Deprecated.void
Deprecated.Notifies that one or more attributes of one or more Java elements have changed.void
inputChanged
(org.eclipse.jface.viewers.Viewer viewer, Object oldInput, Object newInput) Deprecated.protected void
processDelta
(IJavaElementDelta delta) Deprecated.Processes a delta recursively.Methods inherited from class org.eclipse.jdt.ui.StandardJavaElementContentProvider
concatenate, exists, getChildren, getElements, getFolderContent, getJavaProjects, getPackageContent, getPackageFragmentRootContent, getPackageFragmentRoots, getParent, getProvideMembers, getProvideWorkingCopy, hasChildren, internalGetParent, isClassPathChange, isPackageFragmentEmpty, isProjectPackageFragmentRoot, providesWorkingCopies, setProvideMembers, setProvideWorkingCopy, skipProjectPackageFragmentRoot
-
Field Details
-
fViewer
protected org.eclipse.jface.viewers.TreeViewer fViewerDeprecated.The tree viewer -
fInput
Deprecated.The input object
-
-
Constructor Details
-
JavaElementContentProvider
public JavaElementContentProvider()Deprecated.Creates a new content provider for Java elements. -
JavaElementContentProvider
public JavaElementContentProvider(boolean provideMembers, boolean provideWorkingCopy) Deprecated.Creates a new content provider for Java elements.- Parameters:
provideMembers
- iftrue
members below compilation units and class files are provided.provideWorkingCopy
- iftrue
the element provider provides working copies for members of compilation units which have an associated working copy. Otherwise only original elements are provided.- Since:
- 2.0
-
-
Method Details
-
dispose
public void dispose()Deprecated.- Specified by:
dispose
in interfaceorg.eclipse.jface.viewers.IContentProvider
- Overrides:
dispose
in classStandardJavaElementContentProvider
-
inputChanged
Deprecated.- Specified by:
inputChanged
in interfaceorg.eclipse.jface.viewers.IContentProvider
- Overrides:
inputChanged
in classStandardJavaElementContentProvider
-
elementChanged
Deprecated.Description copied from interface:IElementChangedListener
Notifies that one or more attributes of one or more Java elements have changed. The specific details of the change are described by the given event.- Specified by:
elementChanged
in interfaceIElementChangedListener
- Parameters:
event
- the change event
-
processDelta
Deprecated.Processes a delta recursively. When more than two children are affected the tree is fully refreshed starting at this node. The delta is processed in the current thread but the viewer updates are posted to the UI thread.- Parameters:
delta
- the delta to be processed- Throws:
JavaModelException
- if an error occurs while processing the delta
-