| /******************************************************************************* |
| * Copyright (c) 2004, 2011 Tasktop Technologies and others. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * https://www.eclipse.org/legal/epl-2.0 |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Tasktop Technologies - initial API and implementation |
| *******************************************************************************/ |
| |
| package org.eclipse.mylyn.internal.tasks.ui.editors; |
| |
| import org.eclipse.mylyn.commons.ui.CommonImages; |
| import org.eclipse.mylyn.tasks.ui.editors.AbstractTaskEditorPageFactory; |
| import org.eclipse.mylyn.tasks.ui.editors.TaskEditor; |
| import org.eclipse.mylyn.tasks.ui.editors.TaskEditorInput; |
| import org.eclipse.swt.graphics.Image; |
| import org.eclipse.ui.forms.editor.IFormPage; |
| |
| public class PlanningPageFactory extends AbstractTaskEditorPageFactory { |
| |
| @Override |
| public boolean canCreatePageFor(TaskEditorInput input) { |
| return true; |
| } |
| |
| @Override |
| public IFormPage createPage(TaskEditor parentEditor) { |
| return new TaskPlanningEditor(parentEditor); |
| } |
| |
| @Override |
| public Image getPageImage() { |
| return CommonImages.getImage(CommonImages.CALENDAR_SMALL); |
| } |
| |
| @Override |
| public String getPageText() { |
| return Messages.PlanningPageFactory_Private; |
| } |
| |
| @Override |
| public int getPriority() { |
| return PRIORITY_PLANNING; |
| } |
| |
| } |