Skip to content
This repository was archived by the owner on Nov 28, 2022. It is now read-only.

Commit 7679e68

Browse files
keithchongsghung
authored andcommitted
[24] Add .gitignore, update strings, bump up version
Signed-off-by: Keith Chong <[email protected]>
1 parent 92c47a7 commit 7679e68

File tree

9 files changed

+38
-29
lines changed

9 files changed

+38
-29
lines changed

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@
55
[![Chat](https://img.shields.io/static/v1.svg?label=chat&message=mattermost&color=145dbf)](https://mattermost.eclipse.org/eclipse/channels/eclipse-codewind)
66
[![Gitter](https://badges.gitter.im/OpenAPITools/openapi-generator.svg)](https://gitter.im/OpenAPITools/openapi-generator)
77

8-
The Codewind OpenAPI Tools for Eclipse includes wizards that invoke the OpenAPI Generator to create API clients, server stubs, and HTML documentation from OpenAPI Specifications. The tools are integrated and customized to work with Codewind for Eclipse, but they also work with a base Eclipse IDE for Java EE Developers installation.
8+
The Codewind OpenAPI Tools for Eclipse includes wizards that invoke the OpenAPI Generator to create API clients, server stubs, and HTML documentation from OpenAPI definitions. The tools are integrated and customized to work with Codewind for Eclipse, but they also work with a base Eclipse IDE for Java EE Developers installation.
99

1010
## Installing
1111
1. Download and install the latest [Eclipse IDE for Java EE Developers](https://www.eclipse.org/downloads/packages/release/) or use an existing installation. If you use Codewind OpenAPI Tools with Codewind, the earliest supported version of the Eclipse IDE is 4.11.0 (2019-03).
1212
2. [Optional] Install [Codewind from the Eclipse Marketplace](https://marketplace.eclipse.org/content/codewind).
1313
3. Install the [Codewind OpenAPI Tools from the Eclipse Marketplace](https://marketplace.eclipse.org/content/codewind).
1414

1515
## Running commands
16-
1. Launch the context menu on any existing workspace projects or any `openapi.yaml` workspace OpenAPI Specification files from the **Package Explorer** or **Project Explorer** views.
16+
1. Launch the context menu on any existing workspace projects or any `openapi.yaml` workspace OpenAPI document files from the **Package Explorer** or **Project Explorer** views.
1717
2. If Codewind is installed, the context menu generator actions are available in the **Codewind Explorer** view.
18-
3. Ensure at least one OpenAPI Specification is in the project.
18+
3. Ensure at least one OpenAPI definition is in the project.
1919
4. Select an action to generate the client or server stubs or HTML documentation.
2020
5. Enter the requested information that is displayed in the wizard.
2121
6. After generation, edit the `.openapi-generator-ignore` file to ensure that subsequent code generation does not overwrite custom code.
2222

2323
## Features
2424
- Generate API clients in any of the supported [languages/frameworks](https://github.com/OpenAPITools/openapi-generator#overview).
2525
- Generate server stubs in any of the supported [languages/frameworks](https://github.com/OpenAPITools/openapi-generator#overview).
26-
- Generate HTML documentation from an OpenAPI Specification file.
26+
- Generate HTML documentation from an OpenAPI definition.
2727

2828
## Contributing
2929
[Submitting issues](https://github.com/eclipse/codewind-openapi-eclipse/issues)

Diff for: dev/org.eclipse.codewind.openapi.core/.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
*.class
2+
/bin
3+
/build
4+
/dist
5+
/lib

Diff for: dev/org.eclipse.codewind.openapi.feature/feature.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<feature
1515
id="org.eclipse.codewind.openapi.feature"
1616
label="%featureName"
17-
version="0.2.0.qualifier"
17+
version="0.3.0.qualifier"
1818
provider-name="%providerName">
1919

2020
<description>

Diff for: dev/org.eclipse.codewind.openapi.ui/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.class
2+
/bin
3+
/build
4+
/dist

Diff for: dev/org.eclipse.codewind.openapi.ui/plugin.properties

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
# Contributors:
1111
# IBM Corporation - initial API and implementation
1212
###############################################################################
13-
CREATE_CLIENT_DESCRIPTION=Create a client API stub from an OpenAPI Specification.
14-
CREATE_SERVER_DESCRIPTION=Create a server API stub from an OpenAPI Specification.
15-
CREATE_HTML_DESCRIPTION=Create HTML documentation from an OpenAPI Specification.
13+
CREATE_CLIENT_DESCRIPTION=Create a client API stub from an OpenAPI definition.
14+
CREATE_SERVER_DESCRIPTION=Create a server API stub from an OpenAPI definition.
15+
CREATE_HTML_DESCRIPTION=Create HTML documentation from an OpenAPI definition.
1616

1717
OPENAPI_MENU_GROUP=OpenAPI Generate
1818
OPENAPI_TOOLS=OpenAPI Tools

Diff for: dev/org.eclipse.codewind.openapi.ui/src/org/eclipse/codewind/openapi/ui/Messages.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class Messages extends NLS {
3939
public static String INFO_INVALID_SELECTION;
4040

4141
public static String WIZARD_PAGE_PROJECT;
42-
public static String WIZARD_PAGE_SPECIFICATION;
42+
public static String WIZARD_PAGE_DEFINITION;
4343
public static String WIZARD_PAGE_OUTPUT_FOLDER;
4444
public static String WIZARD_PAGE_LANGUAGE;
4545
public static String WIZARD_PAGE_GENERATOR_TYPE;
@@ -52,13 +52,13 @@ public class Messages extends NLS {
5252
public static String WIZARD_PAGE_PROJECT_NOT_PROVIDED;
5353
public static String WIZARD_PAGE_PROJECT_NOT_IMPORTED;
5454
public static String WIZARD_PAGE_PROJECT_NOT_ACCESSIBLE;
55-
public static String WIZARD_PAGE_SELECT_SPEC;
55+
public static String WIZARD_PAGE_SELECT_DEFINITION;
5656
public static String WIZARD_PAGE_SELECT_OUTPUT_FOLDER;
5757
public static String WIZARD_PAGE_SELECT_LANGUAGE;
5858
public static String WIZARD_PAGE_SELECT_GENERATOR_TYPE;
5959

60-
public static String BROWSE_DIALOG_MESSAGE_SELECT_SPEC;
61-
public static String BROWSE_DIALOG_TITLE_SELECT_SPEC;
60+
public static String BROWSE_DIALOG_MESSAGE_SELECT_DEFINITION;
61+
public static String BROWSE_DIALOG_TITLE_SELECT_DEFINITION;
6262

6363
public static String BROWSE_DIALOG_MESSAGE_SELECT_FOLDER;
6464
public static String BROWSE_DIALOG_TITLE_SELECT_FOLDER;

Diff for: dev/org.eclipse.codewind.openapi.ui/src/org/eclipse/codewind/openapi/ui/Messages.properties

+11-11
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
# Contributors:
1111
# IBM Corporation - initial API and implementation
1212
###############################################################################
13-
CLIENT_WIZARD_PAGE_TITLE=Client API from OpenAPI Specification
14-
CLIENT_WIZARD_PAGE_DESCRIPTION=Generate a client API stub from an OpenAPI Specification.
13+
CLIENT_WIZARD_PAGE_TITLE=Client API from OpenAPI Definition
14+
CLIENT_WIZARD_PAGE_DESCRIPTION=Generate a client API stub from an OpenAPI definition.
1515

16-
SERVER_WIZARD_PAGE_TITLE=Server API from OpenAPI Specification
17-
SERVER_WIZARD_PAGE_DESCRIPTION=Generate a server API stub from an OpenAPI Specification.
16+
SERVER_WIZARD_PAGE_TITLE=Server API from OpenAPI Definition
17+
SERVER_WIZARD_PAGE_DESCRIPTION=Generate a server API stub from an OpenAPI definition.
1818

19-
HTML_WIZARD_PAGE_TITLE=HTML from OpenAPI Specification
20-
HTML_WIZARD_PAGE_DESCRIPTION=Generate HTML documentation from an OpenAPI Specification.
19+
HTML_WIZARD_PAGE_TITLE=HTML from OpenAPI Definition
20+
HTML_WIZARD_PAGE_DESCRIPTION=Generate HTML documentation from an OpenAPI definition.
2121

2222
INFO_FILES_EXIST_TITLE=Generated code already exists
2323
INFO_FILES_EXIST_DESCRIPTION=Existing files might be overwritten. Add filters to .openapi-generator-ignore to ensure that the wanted files are not overwritten. Continue?
@@ -30,8 +30,8 @@ WIZARD_PAGE_OUTPUT_FOLDER_TOOLTIP=The location of the generated files. A folder
3030
WIZARD_PAGE_GENERATOR_TYPE_TOOLTIP=The generator name as used by the OpenAPI Generator -g option
3131

3232
WIZARD_PAGE_PROJECT=&Project:
33-
WIZARD_PAGE_SPECIFICATION=&OpenAPI Specification:
34-
WIZARD_PAGE_OUTPUT_FOLDER=Output &Folder:
33+
WIZARD_PAGE_DEFINITION=&OpenAPI definition:
34+
WIZARD_PAGE_OUTPUT_FOLDER=Output &folder:
3535
WIZARD_PAGE_LANGUAGE=&Language:
3636
WIZARD_PAGE_GENERATOR_TYPE=&Generator name:
3737
WIZARD_PAGE_BROWSE_FILE=&Browse...
@@ -40,13 +40,13 @@ WIZARD_PAGE_BROWSE_FOLDER=Bro&wse...
4040
WIZARD_PAGE_PROJECT_NOT_PROVIDED=The project must be provided.
4141
WIZARD_PAGE_PROJECT_NOT_IMPORTED=The project must exist. Import the project first.
4242
WIZARD_PAGE_PROJECT_NOT_ACCESSIBLE=The project is closed or is not writable.
43-
WIZARD_PAGE_SELECT_SPEC=Select an OpenAPI Specification. The file must be in the project.
43+
WIZARD_PAGE_SELECT_DEFINITION=Select an OpenAPI definition. The file must be in the project.
4444
WIZARD_PAGE_SELECT_OUTPUT_FOLDER=Select an output folder for the generated code.
4545
WIZARD_PAGE_SELECT_LANGUAGE=Select a language.
4646
WIZARD_PAGE_SELECT_GENERATOR_TYPE=Select a generator type.
4747

48-
BROWSE_DIALOG_MESSAGE_SELECT_SPEC=Select an OpenAPI Specification from the project.
49-
BROWSE_DIALOG_TITLE_SELECT_SPEC=Select an OpenAPI Specification file.
48+
BROWSE_DIALOG_MESSAGE_SELECT_DEFINITION=Select an OpenAPI definition from the project.
49+
BROWSE_DIALOG_TITLE_SELECT_DEFINITION=Select an OpenAPI definition file.
5050

5151
BROWSE_DIALOG_MESSAGE_SELECT_FOLDER=Select an output folder for the generated files.
5252
BROWSE_DIALOG_TITLE_SELECT_FOLDER=Select a folder.

Diff for: dev/org.eclipse.codewind.openapi.ui/src/org/eclipse/codewind/openapi/ui/wizard/AbstractGenerateWizardPage.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public void createControl(Composite parent) {
115115
projectText.addModifyListener(e -> dialogChanged(e));
116116

117117
label = new Label(container, SWT.NULL);
118-
label.setText(Messages.WIZARD_PAGE_SPECIFICATION);
118+
label.setText(Messages.WIZARD_PAGE_DEFINITION);
119119

120120
fileText = new Text(container, SWT.BORDER | SWT.SINGLE);
121121
gd = new GridData(GridData.FILL_HORIZONTAL);
@@ -294,7 +294,7 @@ protected void dialogChanged(ModifyEvent e) {
294294
return;
295295
}
296296
if (fileName.length() == 0) {
297-
updateStatus(Messages.WIZARD_PAGE_SELECT_SPEC);
297+
updateStatus(Messages.WIZARD_PAGE_SELECT_DEFINITION);
298298
return;
299299
}
300300
if (outputFolder.getText().length() == 0) {
@@ -326,7 +326,7 @@ protected void handleFileBrowse() {
326326
ElementTreeSelectionDialog ed = new ElementTreeSelectionDialog(getShell(), new WorkbenchLabelProvider(), new WorkbenchContentProvider());
327327
ed.setInput(project);
328328
ed.setAllowMultiple(false);
329-
ed.setMessage(Messages.BROWSE_DIALOG_MESSAGE_SELECT_SPEC);
329+
ed.setMessage(Messages.BROWSE_DIALOG_MESSAGE_SELECT_DEFINITION);
330330
ed.addFilter(new ViewerFilter() {
331331
@Override
332332
public boolean select(Viewer arg0, Object arg1, Object resource) {
@@ -342,7 +342,7 @@ public boolean select(Viewer arg0, Object arg1, Object resource) {
342342
return false;
343343
}
344344
});
345-
ed.setTitle(Messages.BROWSE_DIALOG_TITLE_SELECT_SPEC);
345+
ed.setTitle(Messages.BROWSE_DIALOG_TITLE_SELECT_DEFINITION);
346346
if (ed.open() == ElementTreeSelectionDialog.OK) {
347347
Object[] result = ed.getResult();
348348
if (result.length == 1) {

Diff for: dev/org.eclipse.codewind.openapi.ui/src/org/eclipse/codewind/openapi/ui/wizard/GenerateHtmlWizardPage.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void createControl(Composite parent) {
6262
projectText.addModifyListener(e -> dialogChanged());
6363

6464
label = new Label(container, SWT.NULL);
65-
label.setText(Messages.WIZARD_PAGE_SPECIFICATION);
65+
label.setText(Messages.WIZARD_PAGE_DEFINITION);
6666

6767
fileText = new Text(container, SWT.BORDER | SWT.SINGLE);
6868
gd = new GridData(GridData.FILL_HORIZONTAL);
@@ -157,7 +157,7 @@ protected void dialogChanged() {
157157
return;
158158
}
159159
if (fileName.length() == 0) {
160-
updateStatus(Messages.WIZARD_PAGE_SELECT_SPEC);
160+
updateStatus(Messages.WIZARD_PAGE_SELECT_DEFINITION);
161161
return;
162162
}
163163
if (outputFolder.getText().length() == 0) {

0 commit comments

Comments
 (0)