blob: 698a7df088c475b06c5dbedb0d7a3d1b9aeb3dd9 [file] [log] [blame]
/**
********************************************************************************
* Copyright (c) 2015-2018 Robert Bosch GmbH and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Robert Bosch GmbH - initial API and implementation
*
********************************************************************************
*/
package org.eclipse.app4mc.amalthea.model.editor.search;
import org.eclipse.search.ui.text.Match;
import org.eclipse.ui.IEditorInput;
/**
*
*
*/
public class SearchMatch extends Match {
private final IEditorInput editorInput;
public SearchMatch(final Object element, final int offset, final int length, final IEditorInput editorInput) {
super(element, offset, length);
this.editorInput = editorInput;
}
public SearchMatch(final Object element, final int unit, final int offset, final int length,
final IEditorInput editorInput) {
super(element, unit, offset, length);
this.editorInput = editorInput;
}
/**
* @return the editorInput
*/
public IEditorInput getEditorInput() {
return this.editorInput;
}
}