blob: 4299da103c44fdaf2881fdf986684b5c1518e4af [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2004 - 2006 University Of British Columbia 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:
* University Of British Columbia - initial API and implementation
*******************************************************************************/
package org.eclipse.mylar.internal.ui;
import java.util.Collections;
import java.util.List;
import org.eclipse.jface.text.TextSelection;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.mylar.internal.tasklist.ui.editors.MylarTaskEditor;
import org.eclipse.mylar.provisional.core.IMylarElement;
import org.eclipse.mylar.provisional.ui.IMylarUiBridge;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
/**
* @author Mik Kersten
*/
public class TaskUiBridge implements IMylarUiBridge {
public void open(IMylarElement node) {
// ignore
}
public void setContextCapturePaused(boolean paused) {
// ignore
}
public void restoreEditor(IMylarElement document) {
// ignore
}
public void close(IMylarElement node) {
// ignore
}
public boolean acceptsEditor(IEditorPart editorPart) {
return editorPart instanceof MylarTaskEditor;
}
public List<TreeViewer> getContentOutlineViewers(IEditorPart editorPart) {
return Collections.emptyList();
}
public Object getObjectForTextSelection(TextSelection selection, IEditorPart editor) {
return null;
}
public IMylarElement getElement(IEditorInput input) {
return null;
}
}