Skip to content

Commit 5baa4a8

Browse files
committed
Merge remote-tracking branch 'origin/dev_plt_audit'
2 parents ed431d9 + c63ba1b commit 5baa4a8

85 files changed

Lines changed: 1688 additions & 1380 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

openapi-feature/feature.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<feature id="com.xliic.openapi" label="OpenAPI (Swagger) Editor" version="1.0.45" provider-name="42Crunch" plugin="openapi-plugin">
2+
<feature id="com.xliic.openapi" label="OpenAPI (Swagger) Editor" version="1.0.46" provider-name="42Crunch" plugin="openapi-plugin">
33

44
<description>
55
An Eclipse OpenAPI (Swagger) Editor
@@ -696,6 +696,6 @@ For more information on this, and how to apply and follow the GNU AGPL, see
696696
<import plugin="org.eclipse.e4.core.services" />
697697
</requires>
698698

699-
<plugin id="openapi-plugin" download-size="0" install-size="0" version="1.0.45" unpack="false" />
699+
<plugin id="openapi-plugin" download-size="0" install-size="0" version="1.0.46" unpack="false" />
700700

701701
</feature>

openapi-feature/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<parent>
88
<groupId>com.xliic.openapi</groupId>
99
<artifactId>openapi-parent</artifactId>
10-
<version>1.0.45</version>
10+
<version>1.0.46</version>
1111
</parent>
1212

1313
<artifactId>com.xliic.openapi</artifactId>

openapi-plugin/META-INF/MANIFEST.MF

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: Eclipse-openapi
44
Bundle-SymbolicName: openapi-plugin;singleton:=true
5-
Bundle-Version: 1.0.45
5+
Bundle-Version: 1.0.46
66
Require-Bundle: org.eclipse.ui,
77
org.eclipse.core.runtime,
88
org.eclipse.core.resources;bundle-version="3.13.700",
@@ -42,7 +42,7 @@ Bundle-ClassPath: .,
4242
libs/okio-jvm-3.2.0.jar,
4343
libs/validation-api-2.0.1.Final.jar,
4444
libs/javax.servlet-api-3.1.0.jar,
45-
libs/openapi-bundler-3.4.jar,
45+
libs/openapi-bundler-3.5.jar,
4646
libs/snakeyaml-1.30.jar,
4747
libs/snakeyaml-engine-2.3.jar,
4848
libs/jetty-client-9.4.49.v20220914.jar,

openapi-plugin/build.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ bin.includes = plugin.xml,\
2323
libs/javax.servlet-api-3.1.0.jar,\
2424
libs/snakeyaml-1.30.jar,\
2525
libs/snakeyaml-engine-2.3.jar,\
26-
libs/openapi-bundler-3.4.jar,\
2726
libs/commons-collections4-4.4.jar,\
2827
libs/jetty-client-9.4.49.v20220914.jar,\
2928
libs/jetty-http-9.4.49.v20220914.jar,\
@@ -36,5 +35,6 @@ bin.includes = plugin.xml,\
3635
libs/websocket-client-9.4.49.v20220914.jar,\
3736
libs/websocket-common-9.4.49.v20220914.jar,\
3837
libs/websocket-server-9.4.49.v20220914.jar,\
39-
libs/websocket-servlet-9.4.49.v20220914.jar
38+
libs/websocket-servlet-9.4.49.v20220914.jar,\
39+
libs/openapi-bundler-3.5.jar
4040

openapi-plugin/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.xliic.openapi</groupId>
77
<artifactId>openapi-parent</artifactId>
8-
<version>1.0.45</version>
8+
<version>1.0.46</version>
99
</parent>
1010

1111
<artifactId>openapi-plugin</artifactId>
@@ -23,7 +23,7 @@
2323
<annotations.version>23.0.0</annotations.version>
2424
<okhttp.version>4.10.0</okhttp.version>
2525
<okio.version>3.2.0</okio.version>
26-
<openapi.bundler.version>3.4</openapi.bundler.version>
26+
<openapi.bundler.version>3.5</openapi.bundler.version>
2727
<jackson.version>2.13.3</jackson.version>
2828
<snakeyaml.engine.version>2.3</snakeyaml.engine.version>
2929
<snakeyaml.version>1.30</snakeyaml.version>

openapi-plugin/resources/audit/index.js

Lines changed: 44 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi-plugin/resources/data-dictionary/index.js

Lines changed: 48 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi-plugin/resources/data-dictionary/style.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi-plugin/resources/messages/OpenApiBundle.properties

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,9 @@ openapi.new.file.json.v3="JSON OpenAPI 3.0"
99
openapi.new.file.yaml.v2="YAML OpenAPI 2.0"
1010
openapi.new.file.yaml.v3="YAML OpenAPI 3.0"
1111
openapi.config.display.name=OpenAPI (Swagger) Editor
12-
openapi.audit.token.progress.title=Generating token
13-
openapi.audit.report.progress.title=Generating audit report
14-
openapi.audit.token.progress.indicator=Generating token...
15-
openapi.audit.report.progress.indicator=Generating audit report...
16-
openapi.audit.token.progress.indicator.wait=Processing takes longer than expected, please wait...
1712
openapi.audit.intention.name=View details
1813
openapi.error.stack.overflow.title=Unexpected StackOverflow Error
19-
openapi.error.response.429=Too many requests. You can run up to 3 security audits per minute, please try again later.
20-
openapi.error.response.403=Authentication failed. Please paste the token that you received in email to \
21-
File > Settings > Tools > OpenAPI (Swagger) Editor.\nIf you want to receive a new token instead, \
22-
clear that setting altogether and initiate a new security audit for one of your OpenAPI files.
23-
openapi.error.response.unexpected=Unexpected response when trying to audit API: {0}
2414
openapi.error.unexpected=Failed to perform Security Audit, unable to contact https://stateless.42crunch.com: {0}
25-
openapi.error.token.response.unexpected=Unexpected response when trying to request token: {0}
26-
openapi.error.token.unexpected=Failed to request API Token, unable to contact https://stateless.42crunch.com: {0}
27-
openapi.error.token.response.empty=Unexpected response when trying to request token: empty response body
2815
openapi.tree.valid.empty.text=No OpenAPI file selected
2916
openapi.tree.invalid.empty.text=Selected file contains parsing error(s)
3017
openapi.action.show.warnings=Show Warnings
@@ -39,7 +26,6 @@ openapi.audit.issues.notification=Some issues have not been displayed, \
3926
openapi.audit.issue.bad.location=Unable to locate issue {0} at {1}.
4027
openapi.jcef.not.supported=Unable to create an instance of JCEF browser: {0}
4128
openapi.settings.no.hosts.configured=No approved hosts configured
42-
openapi.settings.hosts.name=Hostname
4329
openapi.ref.not.approved=Failed to resolve external reference, "{0}" is not in the list of approved hosts
4430
openapi.ref.unable.resolve=Unable to resolve resource {0}
4531
openapi.ref.reload.progress.title=Reloading remote references

openapi-plugin/src/main/java/com/xliic/core/fileEditor/FileEditorManager.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,15 @@ public FileEditor[] getAllEditors(@NotNull VirtualFile file) {
7777
return fileEditors.toArray(new FileEditor[0]);
7878
}
7979

80+
@NotNull
81+
public FileEditor[] getAllEditors() {
82+
List<FileEditor> fileEditors = new LinkedList<>();
83+
for (IEditorInput input : EclipseUtil.getAllSupportedEditorInputs()) {
84+
fileEditors.add(new FileEditor(input));
85+
}
86+
return fileEditors.toArray(new FileEditor[0]);
87+
}
88+
8089
public FileEditor[] getEditors(@NotNull VirtualFile file) {
8190
return getAllEditors(file);
8291
}

0 commit comments

Comments
 (0)