Skip to content

Commit f32534a

Browse files
committed
Test Properties panel UI Improvment
Readme update
1 parent 33e8752 commit f32534a

File tree

3 files changed

+50
-33
lines changed

3 files changed

+50
-33
lines changed

README.md

Lines changed: 44 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,20 @@
77
Follow the [Wiki Session](https://github.com/albilu/netbeansPython/wiki) (WIP) for the full `user guide`
88

99
### Requirements
10+
1011
[![](https://img.shields.io/badge/Python-3.7+-green)]() [![](https://img.shields.io/badge/JDK-11+-green)]() [![](https://img.shields.io/badge/Netbeans-13+-green)]()
1112

1213
### Installation
13-
- Install from Netbeans \
14-
`Tools -> Plugins -> Available Plugins -> Install`
15-
- Or Download the latest [release](https://github.com/albilu/netbeansPython/releases) and install in Netbeans: \
16-
`Tools -> Plugins -> Downloaded -> Add Plugins -> Install`
14+
15+
- Install from Netbeans \
16+
`Tools -> Plugins -> Available Plugins -> Install`
17+
18+
- If Plugin not available, register the repository
19+
`Tools -> Plugins -> Settings -> Add`
20+
https://raw.githubusercontent.com/albilu/netbeansPython/master/ppuc/{Netbeans version}/updates.xml
21+
22+
- Or Download the latest [release](https://github.com/albilu/netbeansPython/releases) and install in Netbeans: \
23+
`Tools -> Plugins -> Downloaded -> Add Plugins -> Install`
1724

1825
### Bugs
1926

@@ -29,52 +36,62 @@ The project is driven by the need to bring to Netbeans similar support for Pytho
2936
### Support/Contribute/Sponsor
3037

3138
Support this project growth and maintenance by:
32-
- Starring it [![](https://img.shields.io/github/stars/albilu/netbeansPython)]()
33-
- Submiting [PR](https://github.com/albilu/netbeansPython/pulls) for issues in the backlog
34-
- [Sponsoring it](https://github.com/sponsors/albilu)
39+
40+
- Starring it [![](https://img.shields.io/github/stars/albilu/netbeansPython)]()
41+
- Submiting [PR](https://github.com/albilu/netbeansPython/pulls) for issues in the backlog
42+
- [Sponsoring it](https://github.com/sponsors/albilu)
3543

3644
### Related Projects
3745

3846
This is a non exhaustive list of some outstanding projects this module rely on:
39-
- [python-lsp-server](https://github.com/python-lsp/python-lsp-server): Python Language Server *by Spyder IDE Community*
40-
- [pty4j](https://github.com/JetBrains/pty4j): Java implementation of PTY *by JetBrains*
41-
- [pynguin](https://github.com/se2p/pynguin): Python Unit Test Generator
47+
48+
- [python-lsp-server](https://github.com/python-lsp/python-lsp-server): Python Language Server _by Spyder IDE Community_
49+
- [pty4j](https://github.com/JetBrains/pty4j): Java implementation of PTY _by JetBrains_
50+
- [pynguin](https://github.com/se2p/pynguin): Python Unit Test Generator
4251

4352
## Main Features
53+
4454
### Project Management
45-
- Simple Python project type creation (with `venv/virtualenv`)
46-
- Import projects from Sources
47-
- Simple [Poetry](https://python-poetry.org/) project creation (common `poetry` commands supported)
48-
- Run/Build projects
55+
56+
- Simple Python project type creation (with `venv/virtualenv`)
57+
- Import projects from Sources
58+
- Simple [Poetry](https://python-poetry.org/) project creation (common `poetry` commands supported)
59+
- Run/Build projects
4960
![f9b73732e9534000af91eb4e9bf11208.png](_resources/f9b73732e9534000af91eb4e9bf11208.png)
5061

5162
### LSP Server Features
52-
- [See list of features supported](https://github.com/python-lsp/python-lsp-server#lsp-server-features)
63+
64+
- [See list of features supported](https://github.com/python-lsp/python-lsp-server#lsp-server-features)
5365
![d242d82a04c729be7c6e6b0b84759c2f.png](_resources/d242d82a04c729be7c6e6b0b84759c2f.png)
54-
- [LSP Configurations](https://github.com/python-lsp/python-lsp-server#configuration) available in Netbeans via: \
55-
`Tools -> Python Platforms -> Lsp Server`
66+
- [LSP Configurations](https://github.com/python-lsp/python-lsp-server#configuration) available in Netbeans via: \
67+
`Tools -> Python Platforms -> Lsp Server`
5668
![f4ecdf1c9e7648113e8dd265b277366a.png](_resources/f4ecdf1c9e7648113e8dd265b277366a.png)
5769

5870
### Python Interpreters Management
59-
- Multiple Python Interpreters Management including [venv](https://docs.python.org/3/library/venv.html#venv-def) and `virtualenv`
71+
72+
- Multiple Python Interpreters Management including [venv](https://docs.python.org/3/library/venv.html#venv-def) and `virtualenv`
6073
![cad96c97900764698d62caf7d6bf49b4.png](_resources/cad96c97900764698d62caf7d6bf49b4.png)
6174

6275
### Packages Management
63-
- Manage Python Packages (Install/Delete) via [Pypi](https://pypi.org/) or personal Repositories \
64-
`Windows -> Python Package Manager`
76+
77+
- Manage Python Packages (Install/Delete) via [Pypi](https://pypi.org/) or personal Repositories \
78+
`Windows -> Python Package Manager`
6579
![74a5dd8877b9608931b49604ab59440d.png](_resources/74a5dd8877b9608931b49604ab59440d.png)
6680

6781
### Python REPL
68-
- [IPython](https://github.com/ipython/ipython) and [PTPython](https://github.com/prompt-toolkit/ptpython) integrated as Interactive Shells (with autocompletion) \
69-
`Windows -> Interactive Python Interpreters -> IPython`
82+
83+
- [IPython](https://github.com/ipython/ipython) and [PTPython](https://github.com/prompt-toolkit/ptpython) integrated as Interactive Shells (with autocompletion) \
84+
`Windows -> Interactive Python Interpreters -> IPython`
7085
![b18df5a8d44631819affe75ecd6fab61.png](_resources/b18df5a8d44631819affe75ecd6fab61.png)
7186

7287
### Unittest/Test Coverage
73-
- [Unittest](https://docs.python.org/3/library/unittest.html)/code [coverage](https://coverage.readthedocs.io/en/7.2.2/#) suportted
74-
- Create/Generate unit tests
75-
- Go to test/tested class
88+
89+
- [Unittest](https://docs.python.org/3/library/unittest.html)/code [coverage](https://coverage.readthedocs.io/en/7.2.2/#) suportted
90+
- Create/Generate unit tests
91+
- Go to test/tested class
7692
![ebaed2b72b503dec7733d6698f3a0a72.png](_resources/ebaed2b72b503dec7733d6698f3a0a72.png)
7793

7894
### Debugger
79-
- Lite Python Debugger relying on the Python internal debugger [PDB](https://docs.python.org/3/library/pdb.html) (breakpoints/callstack/variable inspection) supported
80-
![74a5dd8877b9608931b49604ab59555d.png](_resources/74a5dd8877b9608931b49604ab59555d.png)
95+
96+
- Lite Python Debugger relying on the Python internal debugger [PDB](https://docs.python.org/3/library/pdb.html) (breakpoints/callstack/variable inspection) supported
97+
![74a5dd8877b9608931b49604ab59555d.png](_resources/74a5dd8877b9608931b49604ab59555d.png)

src/main/java/org/netbeans/modules/python/projectproperties/PythonTestPanel.form

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@
5757
<Component id="testGeneratorParamsLabel" alignment="0" min="-2" max="-2" attributes="0"/>
5858
<Component id="testGeneratorDirLabel" alignment="0" min="-2" max="-2" attributes="0"/>
5959
</Group>
60-
<EmptySpace type="separate" max="-2" attributes="0"/>
60+
<EmptySpace min="-2" pref="25" max="-2" attributes="0"/>
6161
<Group type="103" groupAlignment="0" attributes="0">
62-
<Component id="testGeneratorParamsTextField" pref="378" max="32767" attributes="0"/>
62+
<Component id="testGeneratorParamsTextField" pref="400" max="32767" attributes="0"/>
6363
<Group type="102" alignment="0" attributes="0">
64-
<Component id="testGeneratorDirTextField" pref="294" max="32767" attributes="0"/>
64+
<Component id="testGeneratorDirTextField" pref="322" max="32767" attributes="0"/>
6565
<EmptySpace min="-2" max="-2" attributes="0"/>
6666
<Component id="testGeneratorDirButton" min="-2" max="-2" attributes="0"/>
6767
</Group>

src/main/java/org/netbeans/modules/python/projectproperties/PythonTestPanel.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
109109
.addComponent(testGeneratorLabel)
110110
.addComponent(testGeneratorParamsLabel)
111111
.addComponent(testGeneratorDirLabel))
112-
.addGap(18, 18, 18)
112+
.addGap(25, 25, 25)
113113
.addGroup(testGeneratorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
114-
.addComponent(testGeneratorParamsTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 378, Short.MAX_VALUE)
114+
.addComponent(testGeneratorParamsTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)
115115
.addGroup(testGeneratorPanelLayout.createSequentialGroup()
116-
.addComponent(testGeneratorDirTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 294, Short.MAX_VALUE)
116+
.addComponent(testGeneratorDirTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)
117117
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
118118
.addComponent(testGeneratorDirButton))
119119
.addComponent(testGeneratorComboBox, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))

0 commit comments

Comments
 (0)