Skip to content

Commit 0e032e0

Browse files
committed
misc: fix spelling
1 parent 5a117e1 commit 0e032e0

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

Diff for: bundles/org.eclipse.swt.tools/gtk/rebuild_swt_natives.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ temp_log_file="$(mktemp)" # Keep log so we can count warnings after.
170170
# 'script' command logs commands and their output.
171171
# This is used instead of output redirection to preserve make colouring output,
172172
# while at the same time capture log for parsing.
173-
# (Dev note: old 'build.sh' did not have '-gtk-all' paramater and 'install' was broken.
173+
# (Dev note: old 'build.sh' did not have '-gtk-all' parameter and 'install' was broken.
174174
# For really old SWT builds, may need to manually copy '.so' files and manually specify GTK3)
175175
script --quiet --return --command " ./build.sh -gtk-all install" $temp_log_file #"script" cmd preserves color coding during logging.
176176
if [ "$?" -ne 0 ]; then # Failed

Diff for: bundles/org.eclipse.swt/Eclipse SWT PI/gtk/library/build.sh

+7-7
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
HELP="
1919
Build GTK4 or GTK3 bindings and (optionally) copy them to binary repository.
20-
Paramaters (specified in this order):
21-
clean - delete *.o and *.so files from current folder. If this is the only paramater, do nothing else.
22-
But if other paramaters are given and this is the first one, then continue with other actions.
20+
Parameters (specified in this order):
21+
clean - delete *.o and *.so files from current folder. If this is the only parameter, do nothing else.
22+
But if other parameters are given and this is the first one, then continue with other actions.
2323
2424
One of the following 3:
2525
-gtk3 : Build bindings with GTK3.
@@ -213,10 +213,10 @@ fi
213213

214214
# Safety check:
215215
# If "install" was given as target, check that OUTPUT_DIR is a valid directory.
216-
for i in "$@"; do # loop over all input paramaters
216+
for i in "$@"; do # loop over all input parameters
217217
if [ "$i" = "install" ]; then
218218
if [ ! -d "${OUTPUT_DIR}" ]; then # if directory not valid.
219-
func_echo_error "ERROR: 'install' was passed in as paramater, but OUTPUT_DIR :"
219+
func_echo_error "ERROR: 'install' was passed in as parameter, but OUTPUT_DIR :"
220220
func_echo_error "(${OUTPUT_DIR}) "
221221
func_echo_error "is not a valid directory."
222222
func_echo_error "Exit with failure"
@@ -225,7 +225,7 @@ for i in "$@"; do # loop over all input paramaters
225225
fi
226226
done
227227

228-
for i in "$@"; do # loop over all input paramaters
228+
for i in "$@"; do # loop over all input parameters
229229
if [ "$i" = "--print-outputdir-and-exit" ]; then
230230
# used by external scripts to find binary folder
231231
echo "OUTPUT_DIR=${OUTPUT_DIR}"
@@ -243,7 +243,7 @@ if [ "x${1}" = "xclean" ]; then
243243
shift
244244

245245
# if there are no more other parameters, exit.
246-
# don't exit if there are more paramaters. Useful for one-liners like: ./build.sh clean -gtk-all install
246+
# don't exit if there are more parameters. Useful for one-liners like: ./build.sh clean -gtk-all install
247247
if [ "$1" = "" ]; then
248248
exit $?
249249
fi

Diff for: bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -2082,8 +2082,8 @@ public boolean setUrl (String url, String postData, String[] headers) {
20822082
{ // Extract result meta data
20832083
// Get Media Type from Content-Type
20842084
String content_type = conn.getContentType();
2085-
int paramaterSeparatorIndex = content_type.indexOf(';');
2086-
mime_type = paramaterSeparatorIndex > 0 ? content_type.substring(0, paramaterSeparatorIndex) : content_type;
2085+
int parameterSeparatorIndex = content_type.indexOf(';');
2086+
mime_type = parameterSeparatorIndex > 0 ? content_type.substring(0, parameterSeparatorIndex) : content_type;
20872087

20882088
// Get Encoding if defined
20892089
if (content_type.indexOf(';') > 0) {

Diff for: docs/gtk-dev-guide.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -441,12 +441,12 @@ C enums don't map onto Java's enums. Instead, to add an enum like GtkAlign to OS
441441
public static final int GTK_ALIGN_CENTER = 3;
442442
public static final int GTK_ALIGN_BASELINE = 4;
443443

444-
And when you declare a function, delcare the java-doc paramater cast like this:
444+
And when you declare a function, delcare the java-doc parameter cast like this:
445445

446446
@param gtkalign cast=(GtkAlign) // note (GtkAlign) with no pointer, not (GtkAlign *)
447447

448448

449-
This will allow the native call to understand that the paramater is an enum.
449+
This will allow the native call to understand that the parameter is an enum.
450450

451451
**Appendix: Special custom bindings**
452452

@@ -460,7 +460,7 @@ Suppose you have:
460460
_g_object_set(long /*int*/ object, byte[] first_property_name, GdkRGBA data, long /*int*/ terminator); ### GdkRGBA is specific to GTK3.
461461

462462

463-
Add the method signature to OS.java. Clean the project and attempt a build. You will get a build error about GdkRGBA paramater in g_object_set(). This is because GdkRGBA only exists in GTK3.4+.
463+
Add the method signature to OS.java. Clean the project and attempt a build. You will get a build error about GdkRGBA parameter in g_object_set(). This is because GdkRGBA only exists in GTK3.4+.
464464

465465
Now search os.c for "NO__ …. g object set ", you will find something like:
466466

Diff for: tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug510905_Browser_JsConsole.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static void main(String[] args) {
4949

5050
final Text jsConsole = new Text(shell, SWT.BORDER);
5151
// jsConsole.setText("document.body.innerHTML = theJavaFunction(123, 'hello', null, true)");
52-
jsConsole.setText("document.body.innerHTML = theJavaFunction()"); // Case where there are no paramaters.
52+
jsConsole.setText("document.body.innerHTML = theJavaFunction()"); // Case where there are no parameters.
5353
jsConsole.setSelection(jsConsole.getText().length());
5454
GridData data = new GridData(SWT.FILL, SWT.BEGINNING, true, false);
5555
jsConsole.setLayoutData(data);

Diff for: tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug510905_Browser_TwoJsConsoles.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private static Browser makeBrowserWithConsole(Composite leftBrowser, String func
7777
leftBrowser.setLayout(gridLayout);
7878

7979
final Text jsConsole = new Text(leftBrowser, SWT.BORDER);
80-
jsConsole.setText("document.body.innerHTML = " + funcName + "(123)"); // Case where there are no paramaters.
80+
jsConsole.setText("document.body.innerHTML = " + funcName + "(123)"); // Case where there are no parameters.
8181
jsConsole.setSelection(jsConsole.getText().length());
8282
GridData data = new GridData(SWT.FILL, SWT.BEGINNING, true, false);
8383
jsConsole.setLayoutData(data);

Diff for: tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug527564_exec_hang.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ private static Browser makeBrowserWithConsole(Composite leftBrowser, String func
7575
leftBrowser.setLayout(gridLayout);
7676

7777
final Text jsConsole = new Text(leftBrowser, SWT.BORDER);
78-
jsConsole.setText("document.body.innerHTML = " + funcName + "(123)"); // Case where there are no paramaters.
78+
jsConsole.setText("document.body.innerHTML = " + funcName + "(123)"); // Case where there are no parameters.
7979
jsConsole.setSelection(jsConsole.getText().length());
8080
GridData data = new GridData(SWT.FILL, SWT.BEGINNING, true, false);
8181
jsConsole.setLayoutData(data);

Diff for: tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/snippets/Bug536141_BrowserFunctionLostReload.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static void main(String[] args) {
5050

5151
final Text jsConsole = new Text(shell, SWT.BORDER);
5252
// jsConsole.setText("document.body.innerHTML = theJavaFunction(123, 'hello', null, true)");
53-
jsConsole.setText("document.body.innerHTML = theJavaFunction()"); // Case where there are no paramaters.
53+
jsConsole.setText("document.body.innerHTML = theJavaFunction()"); // Case where there are no parameters.
5454
jsConsole.setSelection(jsConsole.getText().length());
5555
GridData data = new GridData(SWT.FILL, SWT.BEGINNING, true, false);
5656
jsConsole.setLayoutData(data);

Diff for: tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/manualJUnit/MJ_Table.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ public void column_header_icons_Snippet297() {
774774
}
775775

776776
/**
777-
* Based on Snippet 106 with some modificaitons.
777+
* Based on Snippet 106 with some modifications.
778778
*/
779779
@Test
780780
public void column_dynamically_added_after_shellOpened_Snippet106() {
@@ -1032,7 +1032,7 @@ public void color_differentCells_Snippet129 () {
10321032
}
10331033

10341034
@Test
1035-
public void programaticScrolling_Snippet52() {
1035+
public void programmaticScrolling_Snippet52() {
10361036
Shell shell = mkShell("Table should be scrolled down to 100th item");
10371037
Table table = new Table (shell, SWT.BORDER | SWT.MULTI);
10381038
Rectangle clientArea = shell.getClientArea ();

0 commit comments

Comments
 (0)