Skip to content

Commit

Permalink
use new enum for defining project type
Browse files Browse the repository at this point in the history
  • Loading branch information
brunovieira97 committed Mar 9, 2024
1 parent 7f0d51a commit 0928e29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/handler/GenerateProjectHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@ import { IDefaultProjectData, IProjectMetadata, IStep, ParentFolder } from "./Ha
import { SpecifyArtifactIdStep } from "./SpecifyArtifactIdStep";
import { SpecifyGroupIdStep } from "./SpecifyGroupIdStep";
import { SpecifyServiceUrlStep } from "./SpecifyServiceUrlStep";
import { ProjectType } from "../model";

const OPEN_IN_NEW_WORKSPACE = "Open";
const OPEN_IN_CURRENT_WORKSPACE = "Add to Workspace";

export class GenerateProjectHandler extends BaseHandler {

private projectType: "maven-project" | "gradle-project";
private projectType: ProjectType;
private outputUri: vscode.Uri;
private metadata: IProjectMetadata;

constructor(projectType: "maven-project" | "gradle-project", defaults?: IDefaultProjectData) {
constructor(projectType: ProjectType, defaults?: IDefaultProjectData) {
super();
this.projectType = projectType;
this.metadata = {
Expand Down

0 comments on commit 0928e29

Please sign in to comment.