Skip to content

Commit

Permalink
1.2.15
Browse files Browse the repository at this point in the history
  • Loading branch information
acharneski committed Oct 15, 2023
1 parent ff8c0cc commit e69bd9d
Show file tree
Hide file tree
Showing 39 changed files with 245 additions and 195 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ class CommentsAction extends SelectionAction<String> {
String humanLanguage
)

public class CommentsAction_ConvertedText {
public String code;
public String language;
class CommentsAction_ConvertedText {
public String code
public String language

public ConvertedText() {}
def ConvertedText() {}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ class CustomEditAction extends SelectionAction<String> {
public String code = null
public String language = null

public EditedText() {}
EditedText() {}

public EditedText(String code, String language) {
EditedText(String code, String language) {
this.code = code
this.language = language
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ class DescribeAction extends SelectionAction<String> {
String humanLanguage
)

public class DescribeAction_ConvertedText {
class DescribeAction_ConvertedText {
public String text = null
public String language = null
public DescribeAction_ConvertedText() {

DescribeAction_ConvertedText() {
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ class DocAction extends SelectionAction<String> {
String humanLanguage
)

public class DocAction_ConvertedText {
public String text;
public String language;
class DocAction_ConvertedText {
public String text
public String language

public ConvertedText() {}
def ConvertedText() {}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ import java.util.concurrent.atomic.AtomicInteger
import java.util.zip.ZipEntry
import java.util.zip.ZipOutputStream

public class GenerateProjectAction extends FileContextAction<Settings> {
class GenerateProjectAction extends FileContextAction<Settings> {
static Logger logger = LoggerFactory.getLogger(GenerateProjectAction.class)



public GenerateProjectAction() {
GenerateProjectAction() {
super(false, true)
}

Expand All @@ -50,27 +49,29 @@ public class GenerateProjectAction extends FileContextAction<Settings> {

Project newProject(String description)

public class Project implements ValidatedObject {
class Project implements ValidatedObject {
public String name = ''
public String description = ''
public String language = ''
public List<String> features = []
public List<String> libraries = []
public List<String> buildTools = []
public Project() {}

Project() {}
boolean validate() {
return true
}
}

ProjectStatements getProjectStatements(String description, Project project)

public class ProjectStatements implements ValidatedObject {
class ProjectStatements implements ValidatedObject {
public List<String> assumptions = []
public List<String> designPatterns = []
public List<String> requirements = []
public List<String> risks = []
public ProjectStatements() {}

ProjectStatements() {}

boolean validate() {
return true
Expand All @@ -79,42 +80,46 @@ public class GenerateProjectAction extends FileContextAction<Settings> {

ProjectDesign buildProjectDesign(Project project, ProjectStatements requirements)

public class ProjectDesign implements ValidatedObject {
class ProjectDesign implements ValidatedObject {
public List<ComponentDetails> components = []
public List<DocumentationDetails> documents = []
public List<TestDetails> tests = []
public ProjectDesign() {}

ProjectDesign() {}

boolean validate() {
return true
}
}

public class ComponentDetails implements ValidatedObject {
class ComponentDetails implements ValidatedObject {
public String name = ''
public String description = ''
public List<String> features = []
public ComponentDetails() {}

ComponentDetails() {}
boolean validate() {
return true
}
}

public class TestDetails implements ValidatedObject {
class TestDetails implements ValidatedObject {
public String name = ''
public List<String> steps = []
public List<String> expectations = []
public TestDetails() {}

TestDetails() {}
boolean validate() {
return true
}
}

public class DocumentationDetails implements ValidatedObject {
class DocumentationDetails implements ValidatedObject {
public String name = ''
public String description = ''
public List<String> sections = []
public DocumentationDetails() {}

DocumentationDetails() {}

boolean validate() {
return true
Expand All @@ -123,9 +128,10 @@ public class GenerateProjectAction extends FileContextAction<Settings> {

CodeSpecificationList buildProjectFileSpecifications(Project project, ProjectStatements requirements, ProjectDesign design, boolean recursive)

public class CodeSpecificationList implements ValidatedObject {
class CodeSpecificationList implements ValidatedObject {
public List<CodeSpecification> files = []
public CodeSpecificationList() {}

CodeSpecificationList() {}
boolean validate() {
return true
}
Expand All @@ -135,65 +141,71 @@ public class GenerateProjectAction extends FileContextAction<Settings> {

TestSpecificationList buildTestFileSpecifications(Project project, ProjectStatements requirements, TestDetails design, boolean recursive)

public class TestSpecificationList implements ValidatedObject {
class TestSpecificationList implements ValidatedObject {
public List<TestSpecification> files = []
public TestSpecificationList() {}

TestSpecificationList() {}
boolean validate() {
return true
}
}

DocumentSpecificationList buildDocumentationFileSpecifications(Project project, ProjectStatements requirements, DocumentationDetails design, boolean recursive)

public class DocumentSpecificationList implements ValidatedObject {
class DocumentSpecificationList implements ValidatedObject {
public List<DocumentSpecification> files = []
public DocumentSpecificationList() {}

DocumentSpecificationList() {}
boolean validate() {
return true
}
}

public class CodeSpecification implements ValidatedObject {
class CodeSpecification implements ValidatedObject {
public String description = ''
public List<FilePath> requires = []
public List<String> publicProperties = []
public List<String> publicMethodSignatures = []
public String language = ''
public FilePath location = new FilePath()
public CodeSpecification() {}

CodeSpecification() {}
boolean validate() {
return true
}
}

public class DocumentSpecification implements ValidatedObject {
class DocumentSpecification implements ValidatedObject {
public String description = ''
public List<FilePath> requires = []
public List<String> sections = []
public String language = ''
public FilePath location = new FilePath()
public DocumentSpecification() {}

DocumentSpecification() {}
boolean validate() {
return true
}
}

public class TestSpecification implements ValidatedObject {
class TestSpecification implements ValidatedObject {
public String description = ''
public List<FilePath> requires = []
public List<String> steps = []
public List<String> expectations = []
public String language = ''
public FilePath location = new FilePath()
public TestSpecification() {}

TestSpecification() {}
boolean validate() {
return true
}
}

public class FilePath implements ValidatedObject {
class FilePath implements ValidatedObject {
public String file = ''
public FilePath() {}

FilePath() {}

boolean validate() {
return file?.isBlank() == false
Expand All @@ -206,10 +218,11 @@ public class GenerateProjectAction extends FileContextAction<Settings> {

SourceCode implementDocumentationSpecification(Project project, DocumentSpecification specification, DocumentationDetails documentation, List imports, DocumentSpecification specificationAgain)

public class SourceCode implements ValidatedObject {
class SourceCode implements ValidatedObject {
public String language = ''
public String code = ''
public SourceCode() {}

SourceCode() {}
boolean validate() {
return true
}
Expand Down Expand Up @@ -417,26 +430,26 @@ public class GenerateProjectAction extends FileContextAction<Settings> {
}

@SuppressWarnings("UNUSED")
public static class SettingsUI {
static class SettingsUI {
@Name("Project Description")
public JTextArea description = new JTextArea()

@Name("Drafts Per File")
public JTextField drafts = new JTextField("2")
public JCheckBox saveAlternates = new JCheckBox("Save Alternates")

public SettingsUI() {
SettingsUI() {
description.setLineWrap(true)
description.setWrapStyleWord(true)
}
}

public static class Settings {
static class Settings {
public String description = ""
public int drafts = 2
public boolean saveAlternates = false

public Settings() {}
Settings() {}
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ class ImplementStubAction extends SelectionAction<String> {
static class ConvertedText {
public String code
public String language
public ConvertedText() {}

ConvertedText() {}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class InsertImplementationAction extends SelectionAction<String> {
public String code
public String language

public ConvertedText() {}
ConvertedText() {}
}
}

Expand Down Expand Up @@ -115,7 +115,7 @@ class InsertImplementationAction extends SelectionAction<String> {
int selectionEnd
SelectionAction.ContextRange largestIntersectingComment

public PsiClassContextActionParams(int selectionStart, int selectionEnd, SelectionAction.ContextRange largestIntersectingComment) {
PsiClassContextActionParams(int selectionStart, int selectionEnd, SelectionAction.ContextRange largestIntersectingComment) {
this.selectionStart = selectionStart
this.selectionEnd = selectionEnd
this.largestIntersectingComment = largestIntersectingComment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ class PasteAction extends SelectionAction<String> {

interface VirtualAPI {
ConvertedText convert(String text, String from_language, String to_language)
public class ConvertedText {

class ConvertedText {
public String code
public String language
public ConvertedText() {}

ConvertedText() {}
}
}
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ class QuestionAction extends SelectionAction<String> {

class Answer {
public String text = null
public Answer() {}

Answer() {}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ class RenameVariablesAction extends SelectionAction<String> {
String humanLanguage
)

public class SuggestionResponse {
class SuggestionResponse {
public List<Suggestion> suggestions = []

public SuggestionResponse() {}
SuggestionResponse() {}
}

public class Suggestion {
class Suggestion {
public String originalName = null
public String suggestedName = null

public Suggestion() {}
Suggestion() {}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ class AnalogueFileAction extends FileContextAction<AnalogueFileAction.Settings>
private static class ProjectFile {
public String path = ""
public String code = ""
public ProjectFile() {

ProjectFile() {
}
}

Expand All @@ -36,7 +37,8 @@ class AnalogueFileAction extends FileContextAction<AnalogueFileAction.Settings>

static class Settings {
public String directive = ""
public Settings() {

Settings() {
}
}

Expand Down
Loading

0 comments on commit e69bd9d

Please sign in to comment.