| /******************************************************************************* |
| * Copyright (c) 2010 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.wst.debug.core.tests; |
| |
| import org.eclipse.jface.text.source.IVerticalRulerInfo; |
| import org.eclipse.swt.widgets.Control; |
| |
| /** |
| * |
| */ |
| public class VerticalRulerInfoStub implements IVerticalRulerInfo { |
| |
| private int fLineNumber = -1; |
| |
| public VerticalRulerInfoStub(int line) { |
| fLineNumber = line; |
| } |
| |
| /* (non-Javadoc) |
| * @see org.eclipse.jface.text.source.IVerticalRulerInfo#getControl() |
| */ |
| public Control getControl() { |
| return null; |
| } |
| |
| /* (non-Javadoc) |
| * @see org.eclipse.jface.text.source.IVerticalRulerInfo#getLineOfLastMouseButtonActivity() |
| */ |
| public int getLineOfLastMouseButtonActivity() { |
| return fLineNumber; |
| } |
| |
| /* (non-Javadoc) |
| * @see org.eclipse.jface.text.source.IVerticalRulerInfo#getWidth() |
| */ |
| public int getWidth() { |
| return 0; |
| } |
| |
| /* (non-Javadoc) |
| * @see org.eclipse.jface.text.source.IVerticalRulerInfo#toDocumentLineNumber(int) |
| */ |
| public int toDocumentLineNumber(int y_coordinate) { |
| return 0; |
| } |
| |
| } |