Files
SCViewer/plugins/com.minres.scviewer.ui/src/SCViewerMatchingStrategy.java
T
2026-11-21 17:06:54 +01:00

23 lines
882 B
Java

/*******************************************************************************
* Copyright (c) 2024-2026 MINRES Technologies GmbH and others.
*
* SPDX-License-Identifier: EPL-1.0
*
* Contributors:
* MINRES Technologies GmbH - initial API and implementation
*******************************************************************************/
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorMatchingStrategy;
import org.eclipse.ui.IEditorReference;
public class SCViewerMatchingStrategy implements IEditorMatchingStrategy {
@Override
public boolean matches(IEditorReference editorRef, IEditorInput input) {
return input.getName().endsWith(".ftr") || input.getName().endsWith(".fst")
|| input.getName().endsWith(".vcd") || input.getName().endsWith(".txlog")
|| input.getName().endsWith(".txlog.gz") || input.getName().endsWith(".txdb");
}
}