Skip to content

Commit 6f2a010

Browse files
jbamptonakurtakov
authored andcommitted
misc: fix spelling
1 parent 5115799 commit 6f2a010

File tree

11 files changed

+30
-30
lines changed

11 files changed

+30
-30
lines changed

bundles/org.eclipse.swt.tools/gtk/clone_build_gtk_debug.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func_echo_info "You are in: $(pwd)"
105105
if [ "$SILENT" == "false" ]; then
106106
func_echo_input "Currently gtk is on branch:"
107107
git branch
108-
func_echo_input "Its reccomended to checkout a version of GTK that
108+
func_echo_input "Its recommended to checkout a version of GTK that
109109
is found on your system, because 'master' usually requires very new upstream libraries.
110110
To find out which version of Gtk3 is on your system, you can check your package manager. Ex on fedora:
111111
sudo dnf list installed | grep '^gtk3\.'
@@ -114,7 +114,7 @@ To checkout a particular gtk branch:
114114
git branch -r | grep gtk-3
115115
git checkout origin/gtk-3-22
116116
Shall I continue (y)? (You can checkout the required branch in another terminal tab.
117-
(To avoid seesing this message, try running this script with '-y'"
117+
(To avoid seeing this message, try running this script with '-y'"
118118

119119
read -p "[y/n]: "
120120
if [ ! "$REPLY" == y ]; then
@@ -127,7 +127,7 @@ fi
127127
cd "$GTK_SRC_DIR"
128128
if [ "$NOCLEANUP" == false ]; then
129129
func_echo_info "Cleanup old gtk build files.
130-
This is needed if switching between gtk version to avoid compiliation issues."
130+
This is needed if switching between gtk version to avoid compilation issues."
131131
git clean -xdf # remove build files.
132132
git reset --hard # undo changes to existing source files.
133133
else

bundles/org.eclipse.swt/Eclipse SWT Browser/common/org/eclipse/swt/browser/WebBrowser.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ public void createFunction (BrowserFunction function) {
368368
}
369369

370370
/**
371-
* Designed to be overriden.
372-
* @return javaScrit code that defines the 'callJava' syntax for javascript.
371+
* Designed to be overridden.
372+
* @return javaScript code that defines the 'callJava' syntax for javascript.
373373
*/
374374
String getJavaCallDeclaration() {
375375
return "if (!window.callJava) {\n"
@@ -393,7 +393,7 @@ public void destroyFunction (BrowserFunction function) {
393393
deregisterFunction (function);
394394
}
395395

396-
// Designed to be overriden by platform implementations, used for optimization and avoiding deadlocks.
396+
// Designed to be overridden by platform implementations, used for optimization and avoiding deadlocks.
397397
// Webkit2 is async, we often don't need to bother waiting for a return type if we never use it.
398398
void nonBlockingExecute(String script) {
399399
execute(script);

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Table.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3649,7 +3649,7 @@ public void setItemCount (int count) {
36493649
*/
36503650
public void setLinesVisible (boolean show) {
36513651
checkWidget();
3652-
//Note: this is overriden by the active theme in GTK3.
3652+
//Note: this is overridden by the active theme in GTK3.
36533653
GTK.gtk_tree_view_set_grid_lines (handle, show ? GTK.GTK_TREE_VIEW_GRID_LINES_VERTICAL : GTK.GTK_TREE_VIEW_GRID_LINES_NONE);
36543654
}
36553655

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Tree.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3818,7 +3818,7 @@ public void setHeaderVisible (boolean show) {
38183818
*/
38193819
public void setLinesVisible (boolean show) {
38203820
checkWidget();
3821-
//Note: this is overriden by the active theme in GTK3.
3821+
//Note: this is overridden by the active theme in GTK3.
38223822
GTK.gtk_tree_view_set_grid_lines (handle, show ? GTK.GTK_TREE_VIEW_GRID_LINES_VERTICAL : GTK.GTK_TREE_VIEW_GRID_LINES_NONE);
38233823
}
38243824

docs/gtk-dev-guide.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ You should learn at least:
196196

197197
Widget is the main Widget. Everything else extends Widget. The most interesting classes are Widget, Control and Composite. Most widgets fork off of these.
198198

199-
As such, it is useful to be aware of fields/methods in parent classes and which methods get overriden by children. In Eclipse, you can Ctrl+click on a method to see it's super implementation, or derived implementations (this is very useful).
199+
As such, it is useful to be aware of fields/methods in parent classes and which methods get overridden by children. In Eclipse, you can Ctrl+click on a method to see it's super implementation, or derived implementations (this is very useful).
200200

201201
This list below shows the widget hierarchy:
202202

@@ -281,11 +281,11 @@ These are typically wrapped in a lock:
281281

282282
**Constants and ENUMS**
283283

284-
C constants and C Enums are delcared as plain ints. like so:
284+
C constants and C Enums are declared as plain ints. like so:
285285

286286
public static final int GTK_SCROLL_STEP_UP = 6;
287287

288-
*Note: If you need to add a C enum to OS.java, C ENUMS (Enumirations) begin at 0. Do note, that the Javadoc is parsed by the JNI parser. So be careful about what you put in there.*
288+
*Note: If you need to add a C enum to OS.java, C ENUMS (Enumerations) begin at 0. Do note, that the Javadoc is parsed by the JNI parser. So be careful about what you put in there.*
289289

290290
**Static Strings translated to C-bytes**
291291

@@ -441,7 +441,7 @@ 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 parameter cast like this:
444+
And when you declare a function, declare the java-doc parameter cast like this:
445445

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

@@ -878,7 +878,7 @@ Now click on OK. Right click on your project -> Indexer -> Rebuild index. Now yo
878878

879879
**Debugging GTK applications**
880880

881-
Besides stepping through a GTK appliction, you also use the GtkInspector, which can be ran for a GTK3.14+ application to see real-time information about your running GTK application.
881+
Besides stepping through a GTK application, you also use the GtkInspector, which can be ran for a GTK3.14+ application to see real-time information about your running GTK application.
882882

883883
You can set launch flags to help debug GTK apps as well as SWT snippets. Set the following global variable to get detailed frame-sizes:
884884

@@ -935,7 +935,7 @@ Inside the GTK code base somewhere, set a break point in a common area:
935935

936936
gtkmain.c:gtk_main_do_event(GdkEvent *event) #This will be triggered an almost every GDK event
937937

938-
Launch your SWT application. In terminal execute jps (java proccesses) and identify the PID of your SWT appplication.
938+
Launch your SWT application. In terminal execute jps (java processes) and identify the PID of your SWT application.
939939

940940
lufimtse@unused-10-15-18-183 pathscripts$ jps
941941
357 Jps

examples/org.eclipse.swt.examples.launcher/src/org/eclipse/swt/examples/launcher/SplitLayout.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
/**
2222
* A Layout class that automatically switches from a horizontal split to a vertical
23-
* split layout to accomodate changing size conditions.
23+
* split layout to accommodate changing size conditions.
2424
*
2525
* Later on we might improve this class to take into account the "preferred" size of
2626
* the widgets.

examples/org.eclipse.swt.examples.ole.win32/src/org/eclipse/swt/examples/ole/win32/OLEExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ void fileOpen() {
159159
OleAutomation player = new OleAutomation(clientSite);
160160
int playURL[] = player.getIDsOfNames(new String[] { "URL" });
161161
if (playURL != null) {
162-
boolean suceeded = player.setProperty(playURL[0], new Variant(fileName));
163-
if (!suceeded)
162+
boolean succeeded = player.setProperty(playURL[0], new Variant(fileName));
163+
if (!succeeded)
164164
disposeClient();
165165
} else {
166166
disposeClient();

examples/org.eclipse.swt.examples.ole.win32/src/org/eclipse/swt/examples/ole/win32/OleWebBrowser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class OleWebBrowser {
5656
public static final int FrameBeforeNavigate = 200; // Fired when a new hyperlink is being navigated to in a frame.
5757
public static final int FrameNavigateComplete = 201; // Fired when a new hyperlink is being navigated to in a frame.
5858
public static final int FrameNewWindow = 204; // Fired when a new window should be created.
59-
public static final int Quit = 103; // Fired when application is quiting.
59+
public static final int Quit = 103; // Fired when application is quitting.
6060
public static final int WindowMove = 109; // Fired when window has been moved.
6161
public static final int WindowResize = 110; // Fired when window has been sized.
6262
public static final int WindowActivate = 111; // Fired when window has been activated.
@@ -217,7 +217,7 @@ public void Refresh(){
217217
}
218218

219219
/**
220-
* Aborts loading of the currnet page.
220+
* Aborts loading of the current page.
221221
*/
222222
public void Stop() {
223223
// dispid=106, type=METHOD, name="Stop"

examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/graphics/GraphicsExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ public void redraw() {
557557
}
558558

559559
/**
560-
* Sets wheter the canvas is double buffered or not.
560+
* Sets whether the canvas is double buffered or not.
561561
*/
562562
public void setDoubleBuffered(boolean doubleBuffered) {
563563
dbItem.setSelection(doubleBuffered);

examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/texteditor/text.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public class StyledText extends Canvas {
142142
Color foreground = null; //
143143
Clipboard clipboard;
144144
boolean mouseDown = false;
145-
boolean mouseDoubleClick = false; // true=a double click ocurred. Don't do mouse swipe selection.
145+
boolean mouseDoubleClick = false; // true=a double click occurred. Don't do mouse swipe selection.
146146
int autoScrollDirection = SWT.NULL; // the direction of autoscrolling (up, down, right, left)
147147
int autoScrollDistance = 0;
148148
int lastTextChangeStart; // cache data of the
@@ -857,7 +857,7 @@ public class StyledText extends Canvas {
857857
writeStyledLine(line, lineOffset, styles, lineBackground);
858858
}
859859
/**
860-
* Appends the specified line delmimiter to the RTF data.
860+
* Appends the specified line delimiter to the RTF data.
861861
* <p>
862862
*
863863
* @param lineDelimiter line delimiter to write as RTF.
@@ -1124,7 +1124,7 @@ public class StyledText extends Canvas {
11241124
}
11251125
}
11261126
/**
1127-
* Appends the specified line delmimiter to the data.
1127+
* Appends the specified line delimiter to the data.
11281128
* <p>
11291129
*
11301130
* @param lineDelimiter line delimiter to write
@@ -1290,7 +1290,7 @@ public class StyledText extends Canvas {
12901290
return rect.x + rect.width + leftMargin + rightMargin;
12911291
}
12921292
/**
1293-
* Grows the <code>lineWidth</code> array to accomodate new line width
1293+
* Grows the <code>lineWidth</code> array to accommodate new line width
12941294
* information.
12951295
* <p>
12961296
*
@@ -2840,8 +2840,8 @@ void doMouseSelection() {
28402840
/**
28412841
* Returns the offset of the word at the specified offset.
28422842
* If the current selection extends from high index to low index
2843-
* (i.e., right to left, or caret is at left border of selecton on
2844-
* non-bidi platforms) the start offset of the word preceeding the
2843+
* (i.e., right to left, or caret is at left border of selection on
2844+
* non-bidi platforms) the start offset of the word preceding the
28452845
* selection is returned. If the current selection extends from
28462846
* low index to high index the end offset of the word following
28472847
* the selection is returned.
@@ -3810,7 +3810,7 @@ public int getLineHeight() {
38103810
/**
38113811
* Returns a LineCache implementation. Depending on whether or not
38123812
* word wrap is on this may be a line wrapping or line width
3813-
* calculating implementaiton.
3813+
* calculating implementation.
38143814
* <p>
38153815
*
38163816
* @param content StyledTextContent to create the LineCache on.
@@ -7764,7 +7764,7 @@ void showCaret(int caretLine) {
77647764
* Scrolls the specified offset into view.
77657765
* <p>
77667766
*
7767-
* @param offset offset that should be scolled into view
7767+
* @param offset offset that should be scrolled into view
77687768
*/
77697769
void showOffset(int offset) {
77707770
int line = content.getLineAtOffset(offset);
@@ -7902,7 +7902,7 @@ void wordWrapResize(int oldClientAreaWidth) {
79027902
newTopIndex = content.getLineAtOffset(topOffset);
79037903
// topOffset is the beginning of the top line. therefore it
79047904
// needs to be adjusted because in a wrapped line this is also
7905-
// the end of the preceeding line.
7905+
// the end of the preceding line.
79067906
if (newTopIndex < content.getLineCount() - 1 &&
79077907
topOffset == content.getOffsetAtLine(newTopIndex + 1)) {
79087908
newTopIndex++;

tests/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ tycho.pomless.parent = ../local-build/local-build-parent
1616
pom.model.artifactId = swt-tests
1717

1818
pom.model.property.code.ignoredWarnings = ${tests.ignoredWarnings}
19-
# Skip all tests on build servers, because it contains platform specific code (overriden to false on platform-specific build machines)
19+
# Skip all tests on build servers, because it contains platform specific code (overridden to false on platform-specific build machines)
2020
pom.model.property.skipNativeTests = true
2121
pom.model.property.skipTests = ${skipNativeTests}

0 commit comments

Comments
 (0)