Skip to content

Commit

Permalink
[#1] New File Wizard to create a Swagger file
Browse files Browse the repository at this point in the history
Fix file extension name in description.
  • Loading branch information
ghillairet committed Oct 8, 2015
1 parent dbbd846 commit 6bec05a
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ public class SwagEditNewWizardPage extends WizardPage {
private final String extension = "yaml";

/**
* Constructor for SampleNewWizardPage.
* Constructor for SwagEditNewWizardPage.
*
* @param pageName
* @param selection
*/
public SwagEditNewWizardPage(ISelection selection) {
super("wizardPage");
setTitle("Swagger");
setDescription("This wizard creates a new file with *.yml extension that can be opened by the swagger editor.");
setDescription("This wizard creates a new file with *.yaml extension that can be opened by the swagger editor.");
this.selection = selection;
}

Expand Down Expand Up @@ -108,7 +108,6 @@ private void initialize() {
* Uses the standard container selection dialog to choose the new value for
* the container field.
*/

private void handleBrowse() {
ContainerSelectionDialog dialog = new ContainerSelectionDialog(
getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
Expand All @@ -124,7 +123,6 @@ private void handleBrowse() {
/**
* Ensures that both text fields are set.
*/

private void dialogChanged() {
IResource container = ResourcesPlugin.getWorkspace().getRoot()
.findMember(new Path(getContainerName()));
Expand Down

0 comments on commit 6bec05a

Please sign in to comment.