~ubuntu-branches/debian/sid/eclipse-cdt/sid

« back to all changes in this revision

Viewing changes to core/org.eclipse.cdt.ui/src/org/eclipse/cdt/ui/wizards/NewSourceFileCreationWizard.java

  • Committer: Package Import Robot
  • Author(s): Jakub Adam
  • Date: 2011-10-06 21:15:04 UTC
  • mfrom: (1.1.4)
  • Revision ID: package-import@ubuntu.com-20111006211504-8dutmljjih0zikfv
Tags: 8.0.1-1
* New upstream release.
* Split the JNI packages into a separate architecture dependent
  package and made eclipse-cdt architecture independent.
* Install JNI libraries into multiarch aware location
* Bumped Standards-Version to 3.9.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*******************************************************************************
 
2
 * Copyright (c) 2004, 2008 QNX Software Systems and others.
 
3
 * All rights reserved. This program and the accompanying materials
 
4
 * are made available under the terms of the Eclipse Public License v1.0
 
5
 * which accompanies this distribution, and is available at
 
6
 * http://www.eclipse.org/legal/epl-v10.html
 
7
 *
 
8
 * Contributors:
 
9
 *     QNX Software Systems - initial API and implementation
 
10
 *******************************************************************************/
 
11
package org.eclipse.cdt.ui.wizards;
 
12
 
 
13
import org.eclipse.cdt.internal.ui.CPluginImages;
 
14
import org.eclipse.cdt.internal.ui.wizards.filewizard.AbstractFileCreationWizard;
 
15
import org.eclipse.cdt.internal.ui.wizards.filewizard.NewFileWizardMessages;
 
16
import org.eclipse.cdt.internal.ui.wizards.filewizard.NewSourceFileCreationWizardPage;
 
17
import org.eclipse.cdt.ui.CUIPlugin;
 
18
 
 
19
public class NewSourceFileCreationWizard extends AbstractFileCreationWizard {
 
20
    
 
21
    public NewSourceFileCreationWizard() {
 
22
        super();
 
23
        setDefaultPageImageDescriptor(CPluginImages.DESC_WIZBAN_NEW_SOURCEFILE);
 
24
        setDialogSettings(CUIPlugin.getDefault().getDialogSettings());
 
25
        setWindowTitle(NewFileWizardMessages.NewSourceFileCreationWizard_title); 
 
26
    }
 
27
    
 
28
    /*
 
29
     * @see Wizard#createPages
 
30
     */
 
31
    @Override
 
32
        public void addPages() {
 
33
        super.addPages();
 
34
        fPage = new NewSourceFileCreationWizardPage();
 
35
        addPage(fPage);
 
36
        fPage.init(getSelection());
 
37
    }
 
38
}