/******************************************************************************* * Copyright (c) 2012 Pivotal Software, Inc. * 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: * Pivotal Software, Inc. - initial API and implementation *******************************************************************************/ package org.eclipse.jdt.debug.tests; import org.eclipse.jface.text.source.IVerticalRulerInfo; import org.eclipse.swt.widgets.Control; /** * @author Andrew Eisenberg */ 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; } }