Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.compare.structuremergeviewer
Interface IDiffContainer

All Superinterfaces:
IDiffElement, ITypedElement
All Known Subinterfaces:
ISynchronizeModelElement
All Known Implementing Classes:
DiffContainer, DiffNode

public interface IDiffContainer
extends IDiffElement

IDiffContainer is a IDiffElement with children.

IDiffContainer are the inner nodes displayed by the DiffTreeViewer. IDiffContainer are typically created as the result of performing a compare with the Differencer.

Clients may implement this interface, or use one of the standard implementations, DiffContainer or DiffNode.

See Also:
Differencer, DiffTreeViewer

Field Summary
 
Fields inherited from interface org.eclipse.compare. ITypedElement
FOLDER_TYPE, TEXT_TYPE, UNKNOWN_TYPE
 
Method Summary
 void add ( IDiffElement child)
          Adds the given child to this container.
  IDiffElement[] getChildren ()
          Returns the children of this container.
 boolean hasChildren ()
          Returns whether this container has at least one child.
 void removeToRoot ( IDiffElement child)
          Removes the given child from this container.
 
Methods inherited from interface org.eclipse.compare.structuremergeviewer. IDiffElement
getKind, getParent, setParent
 
Methods inherited from interface org.eclipse.compare. ITypedElement
getImage, getName, getType
 

Method Detail

hasChildren

boolean hasChildren()
Returns whether this container has at least one child. In some cases this methods avoids having to call the potential more costly getChildren method.

Returns:
true if this container has at least one child

getChildren


IDiffElement[] getChildren()
Returns the children of this container. If this container has no children an empty array is returned (not null).

Returns:
the children of this container as an array

add

void add(
IDiffElement child)
Adds the given child to this container. If the child is already contained in this container, this method has no effect.

Parameters:
child - the child to be added to this container

removeToRoot

void removeToRoot(
IDiffElement child)
Removes the given child from this container. If the container becomes empty it is removed from its container. If the child is not contained in this container, this method has no effect.

Parameters:
child - the child to be removed from this container

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire