@Override
 protected IPath createNewResourceFilePath() {
   return mNewFilePage
       .getSelectedFolderPath()
       .append(mNewFilePage.getSelectedElementName())
       .addFileExtension(FILE_EXTENSION);
 }
  public NewMechanoidOpsFileWizard() {

    Injector injector =
        OpServiceModelActivator.getInstance()
            .getInjector(OpServiceModelActivator.COM_ROBOTOWORKS_MECHANOID_OPS_OPSERVICEMODEL);

    injector.injectMembers(this);

    mNewFilePage =
        new NewMechanoidElementPage("new_file_page") { // $NON-NLS-1$
          @Override
          protected String getNameFieldInfoMessage() {
            return Messages.NewMechanoidOpsFileWizard_Widget_Label_Message_Name;
          }
        };
    mNewFilePage.setTitle(Messages.NewMechanoidOpsFileWizard_Title);
    mNewFilePage.setDescription(Messages.NewMechanoidOpsFileWizard_Message);
  }
 @Override
 protected void onBeforeCreateElementResource() {
   mSelectedPackageName = mNewFilePage.getSelectedPackageName();
   mSelectedElementName = mNewFilePage.getSelectedElementName();
 }