Creating a file wizard

From Aptana Development

This page describes how to create a New File wizard.

Contents

Instructions

Wizard Extensions and File Content

To define your wizard extension and file content:

  1. Register your file type so that you can create your files in project view and in the file view. Define the extensions as described in Creating file wizard extensions.
  2. Once we've registered our file type the the project view and file view, we need to customize the text that will appear when our file type is created. This is discussed in Defining file wizard content.

Activating the New File Wizards

In order to activate your new file wizards, complete the next few steps.

  1. Open com.aptana.ide.core.ui.WebPerspective and go to the getAllWizardShortcuts method. You will see two string arrays. Add the fully qualified names to your file wizards to this array.
  2. Open com.aptana.ide.core.ui.WebProjectPerspectiveFactory and go to the defineActions method. You will see a string array. Add the fully qualified name to your project file wizard to this array.
  3. Start the IDE and reset the Aptana perspective. At this point, you should see you wizards along with the other Aptana file wizards.

Related Topics


Aptana Developer Home