org.eclipse.ui.console.IScrollLockStateProvider Maven / Gradle / Ivy
The newest version!
/*******************************************************************************
* Copyright (c) 2014, 2015 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* IBM Corporation - initial API and implementation
* *******************************************************************************/
package org.eclipse.ui.console;
/**
* A scroll lock provider allows a client to control the scroll lock state of
* its container, e.g. a view.
*
* Clients may implement this interface.
*
*
* @since 3.6
*/
public interface IScrollLockStateProvider {
/**
* Sets the scroll lock state that got explicitly set by the user, e.g. by
* pressing a button that controls the state.
*
* @param scrollLock true
to turn scroll lock on, otherwise
* false
*/
void setScrollLock(boolean scrollLock);
/**
* Returns the scroll lock state that got explicitly set by the user, e.g.
* by pressing a button that controls the state.
*
* @return true
if scroll lock is on, false
* otherwise
*/
boolean getScrollLock();
/**
* Sets the auto-scroll lock state, e.g. when the user moves the caret
* upwards in a console.
*
* @param scrollLock true
to turn auto-scroll lock on,
* otherwise false
*/
void setAutoScrollLock(boolean scrollLock);
/**
* Returns the auto-scroll lock state.
*
* @see #setAutoScrollLock(boolean)
* @return true
if auto-scroll lock is on, false
* otherwise
*/
boolean getAutoScrollLock();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy