KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > pde > internal > ui > wizards > templates > TemplateEditorInput


1 /*******************************************************************************
2  * Copyright (c) 2000, 2003 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Common Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/cpl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11
12 package org.eclipse.pde.internal.ui.wizards.templates;
13
14 import org.eclipse.core.resources.IFile;
15 import org.eclipse.ui.part.FileEditorInput;
16
17 public class TemplateEditorInput extends FileEditorInput {
18     private String JavaDoc firstPageId;
19
20     /**
21      * Constructor for TemplateEditorInput.
22      * @param file
23      */

24     public TemplateEditorInput(IFile file, String JavaDoc firstPageId) {
25         super(file);
26         this.firstPageId = firstPageId;
27     }
28     
29     public String JavaDoc getFirstPageId() {
30         return firstPageId;
31     }
32 }
33
Popular Tags