Java Code Examples for org.eclipse.jface.viewers.ViewerRow#BELOW

The following examples show how to use org.eclipse.jface.viewers.ViewerRow#BELOW . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GalleryViewerRow.java    From nebula with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * @see org.eclipse.jface.viewers.ViewerRow#getNeighbor(int, boolean)
 */
public ViewerRow getNeighbor(int direction, boolean sameLevel) {
	if (direction == ViewerRow.ABOVE) {
		// TODO: handle grouping
		return getRowAbove();
	} else if (direction == ViewerRow.BELOW) {
		// TODO: handle grouping
		return getRowBelow();
	} else {
		throw new IllegalArgumentException(
				"Illegal value of direction argument."); //$NON-NLS-1$
	}
}
 
Example 2
Source File: GridViewerRow.java    From nebula with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public ViewerRow getNeighbor(int direction, boolean sameLevel) {
	if (direction == ViewerRow.ABOVE) {
		return getRowAbove();
	} else if (direction == ViewerRow.BELOW) {
		return getRowBelow();
	} else {
		throw new IllegalArgumentException("Illegal value of direction argument."); //$NON-NLS-1$
	}
}
 
Example 3
Source File: GridViewerRow.java    From nebula with Eclipse Public License 2.0 5 votes vote down vote up
public ViewerRow getNeighbor(int direction, boolean sameLevel) {
	if( direction == ViewerRow.ABOVE ) {
		return getRowAbove();
	} else if( direction == ViewerRow.BELOW ) {
		return getRowBelow();
	} else {
		throw new IllegalArgumentException("Illegal value of direction argument."); //$NON-NLS-1$
	}
}
 
Example 4
Source File: TableComboViewerRow.java    From nebula with Eclipse Public License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public ViewerRow getNeighbor(int direction, boolean sameLevel) {
	if (direction == ViewerRow.ABOVE) {
		return getRowAbove();
	} else if (direction == ViewerRow.BELOW) {
		return getRowBelow();
	} else {
		throw new IllegalArgumentException("Illegal value of direction argument."); //$NON-NLS-1$
	}
}
 
Example 5
Source File: CTreeComboViewerRow.java    From nebula with Eclipse Public License 2.0 5 votes vote down vote up
/** 
 * @see org.eclipse.jface.viewers.ViewerRow#getNeighbor(int, boolean)
 */
public ViewerRow getNeighbor(int direction, boolean sameLevel) {
	if (direction == ViewerRow.ABOVE) {
		return getRowAbove(sameLevel);
	} else if (direction == ViewerRow.BELOW) {
		return getRowBelow(sameLevel);
	} else {
		throw new IllegalArgumentException("Illegal value of direction argument."); //$NON-NLS-1$
	}
}
 
Example 6
Source File: GridViewerRow.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
/**
    * {@inheritDoc}
    */
   public ViewerRow getNeighbor(int direction, boolean sameLevel) {
	if( direction == ViewerRow.ABOVE ) {
		return getRowAbove();
	} else if( direction == ViewerRow.BELOW ) {
		return getRowBelow();
	} else {
		throw new IllegalArgumentException("Illegal value of direction argument."); //$NON-NLS-1$
	}
}
 
Example 7
Source File: TableComboViewerRow.java    From translationstudio8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public ViewerRow getNeighbor(int direction, boolean sameLevel) {
	if (direction == ViewerRow.ABOVE) {
		return getRowAbove();
	} else if (direction == ViewerRow.BELOW) {
		return getRowBelow();
	} else {
		throw new IllegalArgumentException("Illegal value of direction argument."); //$NON-NLS-1$
	}
}
 
Example 8
Source File: GridViewerRow.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
/**
    * {@inheritDoc}
    */
   public ViewerRow getNeighbor(int direction, boolean sameLevel) {
	if( direction == ViewerRow.ABOVE ) {
		return getRowAbove();
	} else if( direction == ViewerRow.BELOW ) {
		return getRowBelow();
	} else {
		throw new IllegalArgumentException("Illegal value of direction argument."); //$NON-NLS-1$
	}
}
 
Example 9
Source File: TableComboViewerRow.java    From tmxeditor8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public ViewerRow getNeighbor(int direction, boolean sameLevel) {
	if (direction == ViewerRow.ABOVE) {
		return getRowAbove();
	} else if (direction == ViewerRow.BELOW) {
		return getRowBelow();
	} else {
		throw new IllegalArgumentException("Illegal value of direction argument."); //$NON-NLS-1$
	}
}
 
Example 10
Source File: TableComboViewerRow.java    From Pydev with Eclipse Public License 1.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public ViewerRow getNeighbor(int direction, boolean sameLevel) {
    if (direction == ViewerRow.ABOVE) {
        return getRowAbove();
    } else if (direction == ViewerRow.BELOW) {
        return getRowBelow();
    } else {
        throw new IllegalArgumentException("Illegal value of direction argument."); //$NON-NLS-1$
    }
}