You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2007/10/24 22:54:23 UTC
svn commit: r588016 - in /harmony/enhanced/classlib/trunk/modules/swing/src:
main/java/common/javax/swing/ main/java/common/javax/swing/plaf/basic/
main/java/common/javax/swing/plaf/synth/ main/java/common/javax/swing/text/
main/java/common/javax/swing...
Author: hindessm
Date: Wed Oct 24 13:54:17 2007
New Revision: 588016
URL: http://svn.apache.org/viewvc?rev=588016&view=rev
Log:
Spelling fixes.
Modified:
harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/LayoutParameters.java
harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSplitPaneUI.java
harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/XMLSynthParser.java
harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/DefaultEditorKit.java
harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/MaskFormatter.java
harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/StyleContext.java
harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/HTMLDocument.java
harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/HTMLWriter.java
harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/parser/Parser.java
harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/TreeCommons.java
harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/Utilities.java
harmony/enhanced/classlib/trunk/modules/swing/src/main/java/windows/org/apache/harmony/x/swing/filechooser/windows/WinFile.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/JInternalFrameTest.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/JTextPaneTest.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/basic/BasicTextUITest.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/MultiLookAndFeelTest.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/AbstractDocument_ListenerTest.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/AbstractDocument_UpdateTest.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/DefaultStyledDocument_ElementBuffer_Specs3Test.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/GapContentTest.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/StyleContext_AddAttrTest.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/StyledEditorKit_StyledTextActionTest.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/View_ChangesTest.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/FormViewTest.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/DTDTest.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/Utils.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/tree/DefaultTreeCellRendererTest.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/tree/FixedHeightLayoutCacheTest.java
harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/org/apache/harmony/swing/tests/javax/swing/text/parser/ContentModelCompatilityTest.java
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/LayoutParameters.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/LayoutParameters.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/LayoutParameters.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/LayoutParameters.java Wed Oct 24 13:54:17 2007
@@ -61,7 +61,7 @@
/**
*
- * @param target - container being layouted with this paramaters
+ * @param target - container being laid out with this parameters
* @param alignment - alignment of the target. It can be one of the following values:
* <code>MIXED_ALIGNMENT</code> - value for OverlayLayout
* <code>HORIZONTAL_ALIGNMENT</code> - value for BoxLayout with horizontal alignment
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSplitPaneUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSplitPaneUI.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSplitPaneUI.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicSplitPaneUI.java Wed Oct 24 13:54:17 2007
@@ -677,7 +677,7 @@
protected Component createDefaultNonContinuousLayoutDivider() {
return new Canvas() {
// Note: this is not a guaratee for correct serialization/deserialization
- // but rather a performace optimization
+ // but rather a performance optimization
private static final long serialVersionUID = 1L;
@Override
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/XMLSynthParser.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/XMLSynthParser.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/XMLSynthParser.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/synth/XMLSynthParser.java Wed Oct 24 13:54:17 2007
@@ -112,7 +112,7 @@
* private class below). Value is the SynthStyle to be value from
* namedElements be inserted
*/
- private final Map<XMLSynthKey, XMLSynthStyle> namedReferenses = new HashMap<XMLSynthKey, XMLSynthStyle>();
+ private final Map<XMLSynthKey, XMLSynthStyle> namedReferences = new HashMap<XMLSynthKey, XMLSynthStyle>();
/**
* The style under modification
@@ -213,7 +213,7 @@
} else if (element == BIND_ELEMENT) {
- processBindElemant(attrs);
+ processBindElement(attrs);
} else if (element == IM_PAINTER_ELEMENT) {
@@ -241,7 +241,7 @@
*/
@Override
public void characters(char[] ch, int start, int size) throws SAXException {
- adapter.pushCharactres(ch, start, size);
+ adapter.pushCharacters(ch, start, size);
}
@Override
@@ -274,7 +274,7 @@
/**
* After the xml document parsing process all the references in
- * nameReferenses map
+ * nameReferences map
*
* All the RuntimeExceptions are internal synth exceptions
*/
@@ -297,7 +297,7 @@
*/
private void fillReferences() {
- for (Map.Entry<XMLSynthKey, XMLSynthStyle> entry : namedReferenses
+ for (Map.Entry<XMLSynthKey, XMLSynthStyle> entry : namedReferences
.entrySet()) {
XMLSynthKey key = entry.getKey();
@@ -400,7 +400,7 @@
int style = Font.PLAIN;
if (idref != null) {
- namedReferenses.put(new XMLSynthKey(FONT_ELEMENT, currentState,
+ namedReferences.put(new XMLSynthKey(FONT_ELEMENT, currentState,
idref, new String[0]), currentStyle);
return;
}
@@ -449,7 +449,7 @@
String idAttr = attrs.getValue("id"); //$NON-NLS-1$
if ((idRefAttr != null) && (colorTypeAttr != null)) {
- namedReferenses.put(new XMLSynthKey(COLOR_ELEMENT, currentState,
+ namedReferences.put(new XMLSynthKey(COLOR_ELEMENT, currentState,
idRefAttr, colorTypeAttr), currentStyle);
return;
}
@@ -514,11 +514,11 @@
if ((keyAttr.endsWith("icon")) || (keyAttr.endsWith("Icon"))) {
// Markup that it is icon property is XMLSynthKey.info array
// length
- namedReferenses.put(new XMLSynthKey(PROPERTY_ELEMENT,
+ namedReferences.put(new XMLSynthKey(PROPERTY_ELEMENT,
currentState, attrs.getValue("value"), new String[] {
keyAttr, "" }), currentStyle);
} else {
- namedReferenses.put(new XMLSynthKey(PROPERTY_ELEMENT,
+ namedReferences.put(new XMLSynthKey(PROPERTY_ELEMENT,
currentState, attrs.getValue("value"), keyAttr),
currentStyle);
}
@@ -531,11 +531,11 @@
} else if ("dimension".equalsIgnoreCase(propertyType)) {
String size = attrs.getValue("value");
- int witdth = Integer.parseInt(size.substring(0, size.indexOf(" ")));
+ int width = Integer.parseInt(size.substring(0, size.indexOf(" ")));
int height = Integer
.parseInt(size.substring(size.indexOf(" ") + 1));
- currentStyle.setProperty(keyAttr, new Dimension(witdth, height));
+ currentStyle.setProperty(keyAttr, new Dimension(width, height));
} else if ("insets".equalsIgnoreCase(propertyType)) {
@@ -560,7 +560,7 @@
String propertyType = attrs.getValue("type");
if ("idref".equals(propertyType) || propertyType == null) {
- namedReferenses.put(new XMLSynthKey(DEFAULTS_ELEMENT, currentState,
+ namedReferences.put(new XMLSynthKey(DEFAULTS_ELEMENT, currentState,
attrs.getValue("value"), attrs.getValue("key")),
currentStyle);
@@ -572,11 +572,11 @@
} else if ("dimension".equalsIgnoreCase(propertyType)) {
String size = attrs.getValue("value");
- int witdth = Integer.parseInt(size.substring(0, size.indexOf(" ")));
+ int width = Integer.parseInt(size.substring(0, size.indexOf(" ")));
int height = Integer
.parseInt(size.substring(size.indexOf(" ") + 1));
- UIManager.put(attrs.getValue("key"), new Dimension(witdth, height));
+ UIManager.put(attrs.getValue("key"), new Dimension(width, height));
} else if ("insets".equalsIgnoreCase(propertyType)) {
@@ -595,7 +595,7 @@
}
@SuppressWarnings("nls")
- private void processBindElemant(Attributes attrs) throws SAXException {
+ private void processBindElement(Attributes attrs) throws SAXException {
/*
* This method works with previously defined in parsed xml SynthStyles.
* It's compatible with RI.
@@ -692,7 +692,7 @@
}
- namedReferenses.put(new XMLSynthKey(PAINTER_ELEMENT, currentState,
+ namedReferences.put(new XMLSynthKey(PAINTER_ELEMENT, currentState,
attrs.getValue("idref"), new String[] { method,
attrs.getValue("direction") }), currentStyle);
}
@@ -719,7 +719,7 @@
String idref = attrs.getValue("idref"); //$NON-NLS-1$
if (idref != null) {
- namedReferenses.put(new XMLSynthKey(
+ namedReferences.put(new XMLSynthKey(
"insets", currentState, idref, new String[0]), //$NON-NLS-1$
currentStyle);
return;
@@ -781,7 +781,7 @@
*/
private void processGraphicsUtilsElement(Attributes attrs) {
- namedReferenses.put(new XMLSynthKey(G_UTILS_ELEMENT, currentState,
+ namedReferences.put(new XMLSynthKey(G_UTILS_ELEMENT, currentState,
attrs.getValue("idref"), new String[0]), currentStyle); //$NON-NLS-1$
}
@@ -887,7 +887,7 @@
}
- public void pushCharactres(char[] ch, int start, int end) {
+ public void pushCharacters(char[] ch, int start, int end) {
if (validatingCounter > 0) {
xmlLine.append(ch, start, end);
@@ -923,7 +923,7 @@
}
/**
- * This class is used to represent correct keys in namedReferenses table
+ * This class is used to represent correct keys in namedReferences table
* which helps to unambiguously insert named element instead of reference in
* the concluding stage of parsing
*/
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/DefaultEditorKit.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/DefaultEditorKit.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/DefaultEditorKit.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/DefaultEditorKit.java Wed Oct 24 13:54:17 2007
@@ -285,7 +285,7 @@
static final TextAction selectLineDoing = new KitAction(selectLineAction);
- private static final int CHARACHTERS_TO_READ_AT_ONCE = 256;
+ private static final int CHARACTERS_TO_READ_AT_ONCE = 256;
private static final String CONTENT_TYPE = "text/plain";
/**
@@ -334,7 +334,7 @@
if (!in.ready()) {
return;
}
- int maxCharToRead = CHARACHTERS_TO_READ_AT_ONCE;
+ int maxCharToRead = CHARACTERS_TO_READ_AT_ONCE;
char[] readArray = new char[maxCharToRead];
int numCharRead = -1;
AttributeSet attributes = doc.getDefaultRootElement().getAttributes();
@@ -481,4 +481,4 @@
new KitAction(dumpModelAction)
};
}
-}
\ No newline at end of file
+}
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/MaskFormatter.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/MaskFormatter.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/MaskFormatter.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/MaskFormatter.java Wed Oct 24 13:54:17 2007
@@ -172,8 +172,8 @@
this.placeholder = placeholder;
}
- public void setPlaceholderCharacter(final char placeholderCharater) {
- this.placeHolderCharacter = placeholderCharater;
+ public void setPlaceholderCharacter(final char placeholderCharacter) {
+ this.placeHolderCharacter = placeholderCharacter;
}
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/StyleContext.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/StyleContext.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/StyleContext.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/StyleContext.java Wed Oct 24 13:54:17 2007
@@ -595,7 +595,7 @@
/**
* This methods just does nothing because we use
- * <code>WeakReference</code>s to remove unused attibute sets from cache.
+ * <code>WeakReference</code>s to remove unused attribute sets from cache.
*/
public void reclaim(final AttributeSet a) {
}
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/HTMLDocument.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/HTMLDocument.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/HTMLDocument.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/HTMLDocument.java Wed Oct 24 13:54:17 2007
@@ -1119,7 +1119,7 @@
private static final String TARGET_SELF = "_self";
private static final String TARGET_PARENT = "_parent";
- private static final SimpleAttributeSet DEFAULT_CHARACHTER_ATTRIBUTES = new SimpleAttributeSet();
+ private static final SimpleAttributeSet DEFAULT_CHARACTER_ATTRIBUTES = new SimpleAttributeSet();
private URL base;
private Parser parser;
@@ -1472,10 +1472,10 @@
private static void addDefaultCSSAttribute(final Tag tag, final CSS.Attribute attr, final String value) {
SimpleAttributeSet attrSet = new SimpleAttributeSet();
attrSet.addAttribute(attr, attr.getConverter().toCSS(value));
- DEFAULT_CHARACHTER_ATTRIBUTES.addAttribute(tag, attrSet);
+ DEFAULT_CHARACTER_ATTRIBUTES.addAttribute(tag, attrSet);
}
private static SimpleAttributeSet getDefaultCSSAttributes(final Tag tag) {
- return (SimpleAttributeSet)DEFAULT_CHARACHTER_ATTRIBUTES.getAttribute(tag);
+ return (SimpleAttributeSet)DEFAULT_CHARACTER_ATTRIBUTES.getAttribute(tag);
}
}
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/HTMLWriter.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/HTMLWriter.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/HTMLWriter.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/HTMLWriter.java Wed Oct 24 13:54:17 2007
@@ -46,7 +46,7 @@
import org.apache.harmony.x.swing.text.html.form.FormOptionGroup;
public class HTMLWriter extends AbstractWriter {
- private static final int DEFAULT_LINE_LENGHT = 80;
+ private static final int DEFAULT_LINE_LENGTH = 80;
private static DTD dtd;
private boolean writingContent;
@@ -59,13 +59,13 @@
public HTMLWriter(final Writer w, final HTMLDocument doc) {
super(w, doc);
- setLineLength(DEFAULT_LINE_LENGHT);
+ setLineLength(DEFAULT_LINE_LENGTH);
}
public HTMLWriter(final Writer w, final HTMLDocument doc,
final int pos, final int len) {
super(w, doc, pos, len);
- setLineLength(DEFAULT_LINE_LENGHT);
+ setLineLength(DEFAULT_LINE_LENGTH);
}
public void write() throws IOException, BadLocationException {
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/parser/Parser.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/parser/Parser.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/parser/Parser.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/html/parser/Parser.java Wed Oct 24 13:54:17 2007
@@ -34,7 +34,7 @@
/**
* This class attempts to read and parse an HTML file, which it gets via an
- * Input Stream. The parsing is based on a Documet Type Definition
+ * Input Stream. The parsing is based on a Document Type Definition
* ({@link DTD}), and calls various methods (such as handleError,
* handleStartTag, etc.) when it finds tags or data. This methods should be
* overriden in a subclass in order to use the parser.
@@ -828,7 +828,7 @@
String currentAttListName =
attList.getAttributeName();
- /* Assign the attibute name (attr): object */
+ /* Assign the attribute name (attr): object */
Object attr = HTML.getAttributeKey(currentAttListName);
if (attr == null) {
attr = currentAttListName;
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/TreeCommons.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/TreeCommons.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/TreeCommons.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/TreeCommons.java Wed Oct 24 13:54:17 2007
@@ -41,7 +41,7 @@
/**
* Painting context. Used by
* {@link TreeCommons#paintTree(Graphics, TreeCommons.PaintTreeContext)}
- * method to parametrize painting differences of Basic and Metal L&Fs.
+ * method to parameterize painting differences of Basic and Metal L&Fs.
*/
public interface PaintTreeContext {
/**
@@ -183,7 +183,7 @@
}
/**
- * Paints a tree basing on the data from the paramertized context.
+ * Paints a tree basing on the data from the parameterized context.
*
* @param g Graphics to paint on
* @param context PaintTreeContext specified by particular UI.
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/Utilities.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/Utilities.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/Utilities.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/org/apache/harmony/x/swing/Utilities.java Wed Oct 24 13:54:17 2007
@@ -168,7 +168,7 @@
*
* @param original original text
* @param clipped clipped text
- * @param underscoreIndex index of the characte in <code>text</code> to be
+ * @param underscoreIndex index of the character in <code>text</code> to be
* underscored
* @return underscoreIndex or <code>-1</code> if the position is clipped
*/
@@ -232,12 +232,12 @@
* requested, popup size and location of popup related to anchor. The optimal
* location fulfills the condition popup fits on screen, not overlaps with
* anchor and is verticaly or horizontaly positioned relative to anchor. If
- * position is vertical the popup left or right bound is alligned with
+ * position is vertical the popup left or right bound is aligned with
* anchor bound depending on <code>leftToRight</code>.
*
* @param anchor anchor bounds relative to
* @param size requested popup size
- * @param leftToRight horizontal allignment
+ * @param leftToRight horizontal alignment
* @param horizontal placement relative to anchor
* @return optimal popup location
*/
@@ -323,7 +323,7 @@
/**
* If the window is <code>Frame</code> or <code>Dialog</code>, the function
- * returns <code>true</code> the window is resizable. Othewise
+ * returns <code>true</code> the window is resizable. Otherwise
* <code>false</code> is returned. This function can be used
* when implementing L&F for <code>JRootPane</code>.
*
@@ -594,7 +594,7 @@
/**
* Aligns rectangle with the inner bounds of the box taking into account
- * allignments given.
+ * alignments given.
*
* @param rect rectangle to align
* @param box box to align with
@@ -961,7 +961,7 @@
* @param x given value
* @param min bottom bound for x
* @param max top bound for x
- * @return min if x less than min, max if x larger than max, x othetwise
+ * @return min if x less than min, max if x larger than max, x otherwise
*/
public static int range(final int x, final int min, final int max) {
return Math.max(min, Math.min(x, max));
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/windows/org/apache/harmony/x/swing/filechooser/windows/WinFile.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/windows/org/apache/harmony/x/swing/filechooser/windows/WinFile.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/windows/org/apache/harmony/x/swing/filechooser/windows/WinFile.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/windows/org/apache/harmony/x/swing/filechooser/windows/WinFile.java Wed Oct 24 13:54:17 2007
@@ -144,32 +144,32 @@
}
public boolean isCDROM() {
- return getDesription() == WindowsDefs.SHDID_COMPUTER_CDROM;
+ return getDescription() == WindowsDefs.SHDID_COMPUTER_CDROM;
}
public boolean isFixedDrive() {
- return getDesription() == WindowsDefs.SHDID_COMPUTER_FIXED;
+ return getDescription() == WindowsDefs.SHDID_COMPUTER_FIXED;
}
public boolean isNetDrive() {
- return getDesription() == WindowsDefs.SHDID_COMPUTER_NETDRIVE;
+ return getDescription() == WindowsDefs.SHDID_COMPUTER_NETDRIVE;
}
public boolean isRAM() {
- return getDesription() == WindowsDefs.SHDID_COMPUTER_RAMDISK;
+ return getDescription() == WindowsDefs.SHDID_COMPUTER_RAMDISK;
}
public boolean isFloppyDrive() {
- return getDesription() == WindowsDefs.SHDID_COMPUTER_DRIVE35
- || getDesription() == WindowsDefs.SHDID_COMPUTER_DRIVE525;
+ return getDescription() == WindowsDefs.SHDID_COMPUTER_DRIVE35
+ || getDescription() == WindowsDefs.SHDID_COMPUTER_DRIVE525;
}
public boolean isRemovable() {
- return getDesription() == WindowsDefs.SHDID_COMPUTER_REMOVABLE;
+ return getDescription() == WindowsDefs.SHDID_COMPUTER_REMOVABLE;
}
public boolean isComputerNode() {
- return getDesription() == WindowsDefs.SHDID_NET_SERVER;
+ return getDescription() == WindowsDefs.SHDID_NET_SERVER;
}
public String getTypeName() {
@@ -202,7 +202,7 @@
return result;
}
- private int getDesription() {
+ private int getDescription() {
if (description == -1) {
Object[] parentInfo = getParentInfo();
Win32.IShellFolder parentFolder = (Win32.IShellFolder)parentInfo[0];
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/JInternalFrameTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/JInternalFrameTest.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/JInternalFrameTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/JInternalFrameTest.java Wed Oct 24 13:54:17 2007
@@ -1267,7 +1267,7 @@
try {
frame.setMaximum(false);
} catch (PropertyVetoException e) {
- assertTrue("no excetion should be thrown", false);
+ assertTrue("no exception should be thrown", false);
}
assertTrue("normalBounds is set", frame.getNormalBounds() == normal);
assertFalse("normalBounds is not a bound property", listener.ok);
@@ -1275,7 +1275,7 @@
try {
frame.setMaximum(true);
} catch (PropertyVetoException e) {
- assertTrue("no excetion should be thrown", false);
+ assertTrue("no exception should be thrown", false);
}
assertTrue("normalBounds is set", frame.getNormalBounds().equals(bounds));
assertFalse("normalBounds is set", frame.getNormalBounds() == bounds);
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/JTextPaneTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/JTextPaneTest.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/JTextPaneTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/JTextPaneTest.java Wed Oct 24 13:54:17 2007
@@ -427,26 +427,26 @@
AttributeSet attributes;
textPane.setCaretPosition(1);
attrs = textPane.getInputAttributes();
- assertAttrubutes(attrs, false, false, true, false, false, true);
+ assertAttributes(attrs, false, false, true, false, false, true);
textPane.insertComponent(new JButton("Format C:\\>"));
- assertAttrubutes(attrs, false, false, false, false, false, false);
+ assertAttributes(attrs, false, false, false, false, false, false);
assertNull(StyleConstants.getComponent(attrs));
attributes = textPane.getStyledDocument().getCharacterElement(1).getAttributes();
- assertAttrubutes(attributes, false, false, false, false, false, false);
+ assertAttributes(attributes, false, false, false, false, false, false);
assertNotNull(StyleConstants.getComponent(attributes));
attrs = new SimpleAttributeSet(attributes);
StyleConstants.setUnderline(attrs, true);
textPane.getStyledDocument().setCharacterAttributes(1, 1, attrs, true);
textPane.setCaretPosition(1);
- assertAttrubutes(textPane.getInputAttributes(), false, false, true, false, false, true);
+ assertAttributes(textPane.getInputAttributes(), false, false, true, false, false, true);
textPane.select(2, 2);
- assertAttrubutes(textPane.getInputAttributes(), false, false, false, false, false, true);
+ assertAttributes(textPane.getInputAttributes(), false, false, false, false, false, true);
textPane.replaceSelection("*");
attrs = textPane.getInputAttributes();
- assertAttrubutes(attrs, false, false, false, false, false, true);
+ assertAttributes(attrs, false, false, false, false, false, true);
assertNull(StyleConstants.getComponent(attrs));
attributes = textPane.getStyledDocument().getCharacterElement(2).getAttributes();
- assertAttrubutes(attributes, false, false, false, false, false, true);
+ assertAttributes(attributes, false, false, false, false, false, true);
assertNull(StyleConstants.getComponent(attributes));
}
@@ -454,7 +454,7 @@
textPane.setEditable(false);
textPane.setCaretPosition(3);
attrs = textPane.getInputAttributes();
- assertAttrubutes(attrs, false, false, true, false, false, true);
+ assertAttributes(attrs, false, false, true, false, false, true);
textPane.insertIcon(new Icon() {
public void paintIcon(Component c, Graphics g, int x, int y) {
g.drawRect(x, y, getIconWidth(), getIconHeight());
@@ -468,12 +468,12 @@
return 40;
}
});
- assertAttrubutes(attrs, false, false, false, false, false, false);
+ assertAttributes(attrs, false, false, false, false, false, false);
Element iconElement = textPane.getStyledDocument().getDefaultRootElement()
.getElement(0).getElement(1);
AttributeSet attributes = iconElement.getAttributes();
assertNotNull(attributes.getAttribute(StyleConstants.IconAttribute));
- assertAttrubutes(attributes, false, false, false, false, false, false);
+ assertAttributes(attributes, false, false, false, false, false, false);
}
public void testReplaceSelection() throws BadLocationException {
@@ -540,11 +540,11 @@
textPane.replaceSelection("3");
attrs = new SimpleAttributeSet(textPane.getStyledDocument().getCharacterElement(1)
.getAttributes());
- assertAttrubutes(attrs, false, false, false, false, false, false);
+ assertAttributes(attrs, false, false, false, false, false, false);
assertNotNull(StyleConstants.getIcon(attrs));
attrs = new SimpleAttributeSet(textPane.getStyledDocument().getCharacterElement(2)
.getAttributes());
- assertAttrubutes(attrs, false, false, false, false, false, false);
+ assertAttributes(attrs, false, false, false, false, false, false);
assertNull(StyleConstants.getIcon(attrs));
}
@@ -597,7 +597,7 @@
}
}
- private void assertAttrubutes(final AttributeSet attrs, final boolean isBold,
+ private void assertAttributes(final AttributeSet attrs, final boolean isBold,
final boolean isItalic, final boolean isStrikeThrough, final boolean isSubscript,
final boolean isSuperScript, final boolean isUnderline) {
assertEquals(isBold, StyleConstants.isBold(attrs));
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/basic/BasicTextUITest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/basic/BasicTextUITest.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/basic/BasicTextUITest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/basic/BasicTextUITest.java Wed Oct 24 13:54:17 2007
@@ -283,7 +283,7 @@
* rootView.getAlignment(View.Y_AXIS));
* assertNull(rootView.getAttributes());
*
- * //has not null AttrributeSet Dimension dimension =
+ * //has not null AttributeSet Dimension dimension =
* ui.getMaximumSize(jta);
*
* //assertTrue(rintSpec(dimension.width) == //
@@ -774,4 +774,4 @@
Object actionName = im.get(im.keys()[0]);
assertNotNull(am.get(actionName));
}
-}
\ No newline at end of file
+}
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/MultiLookAndFeelTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/MultiLookAndFeelTest.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/MultiLookAndFeelTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/plaf/multi/MultiLookAndFeelTest.java Wed Oct 24 13:54:17 2007
@@ -80,7 +80,7 @@
/*
* Test method for 'javax.swing.plaf.multi.MultiLookAndFeel.getDefaults()'
- * Defaults contains referenses to Multi classes only
+ * Defaults contains references to Multi classes only
*/
public void testGetDefaults() {
assertEquals(mlaf.getDefaults().get("ButtonUI"), //$NON-NLS-1$
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/AbstractDocument_ListenerTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/AbstractDocument_ListenerTest.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/AbstractDocument_ListenerTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/AbstractDocument_ListenerTest.java Wed Oct 24 13:54:17 2007
@@ -115,7 +115,7 @@
}
/**
- * Helper method which constracts the array before calling its
+ * Helper method which constructs the array before calling its
* counterpart to perform real checking.
*
* @param change true if changeUpdate is supposed to be called
@@ -388,4 +388,4 @@
doc.remove(0, 2);
checkCalledEvents(false, false, true, true);
}
-}
\ No newline at end of file
+}
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/AbstractDocument_UpdateTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/AbstractDocument_UpdateTest.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/AbstractDocument_UpdateTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/AbstractDocument_UpdateTest.java Wed Oct 24 13:54:17 2007
@@ -304,7 +304,7 @@
/**
* Tests if RUN_DIRECTION property has any influence on
- * bidirectional algorythm in AbstractDocument.
+ * bidirectional algorithm in AbstractDocument.
*/
public void testInsertUpdate10() throws BadLocationException {
doc.putProperty(TextAttribute.RUN_DIRECTION, TextAttribute.RUN_DIRECTION_RTL);
@@ -318,7 +318,7 @@
/**
* Tests if RUN_DIRECTION attribute set on text inserted has any
- * influence on bidirectional algorythm in AbstractDocument.
+ * influence on bidirectional algorithm in AbstractDocument.
*/
public void testInsertUpdate11() throws BadLocationException {
StyleContext context = (StyleContext) doc.getAttributeContext();
@@ -341,7 +341,7 @@
/**
* Tests if RUN_DIRECTION property has any influence on
- * bidirectional algorythm in AbstractDocument.
+ * bidirectional algorithm in AbstractDocument.
*/
public void testInsertUpdate12() throws BadLocationException {
doc.insertString(0, "kkk", null);
@@ -455,4 +455,4 @@
assertEquals(3, removeEdit.getChildrenAdded().length);
assertEquals(3, removeEdit.getChildrenRemoved().length);
}
-}
\ No newline at end of file
+}
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/DefaultStyledDocument_ElementBuffer_Specs3Test.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/DefaultStyledDocument_ElementBuffer_Specs3Test.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/DefaultStyledDocument_ElementBuffer_Specs3Test.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/DefaultStyledDocument_ElementBuffer_Specs3Test.java Wed Oct 24 13:54:17 2007
@@ -115,7 +115,7 @@
public void check(final Element element) {
if (attrs == null) {
- assertEquals("Attibute count", 0, element.getAttributes().getAttributeCount());
+ assertEquals("Attribute count", 0, element.getAttributes().getAttributeCount());
} else {
assertTrue("Attributes", attrs.isEqual(element.getAttributes()));
}
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/GapContentTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/GapContentTest.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/GapContentTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/GapContentTest.java Wed Oct 24 13:54:17 2007
@@ -222,7 +222,7 @@
}
// Regression for HARMONY-2566
- public void testGetCharsMaxInterger() {
+ public void testGetCharsMaxInteger() {
try {
content.getChars(1, Integer.MAX_VALUE, null);
fail("BadLocationException is expected");
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/StyleContext_AddAttrTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/StyleContext_AddAttrTest.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/StyleContext_AddAttrTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/StyleContext_AddAttrTest.java Wed Oct 24 13:54:17 2007
@@ -63,7 +63,7 @@
}
/**
- * Add two diffrent key/value pair to an empty set.
+ * Add two different key/value pair to an empty set.
* Check the return instances are different.
*/
public void testAddAttributeDiff() {
@@ -190,4 +190,4 @@
protected void setUp() {
sc = StyleContextTest.sc = new StyleContext();
}
-}
\ No newline at end of file
+}
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/StyledEditorKit_StyledTextActionTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/StyledEditorKit_StyledTextActionTest.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/StyledEditorKit_StyledTextActionTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/StyledEditorKit_StyledTextActionTest.java Wed Oct 24 13:54:17 2007
@@ -74,7 +74,7 @@
public void testGetEditor() {
jep = new JEditorPane();
assertEquals(jep, action.getEditor(new ActionEvent(jep, 1, "...")));
- //Really this is need to check NullPointerExceoption, but ...
+ //Really this needs to check NullPointerException, but ...
}
public void testSetParagraphAttributes() {
@@ -249,4 +249,4 @@
Element elem = StyledEditorKitTest.getElementByOffset(doc, offset);
return (elem == null) ? null : elem.getAttributes();
}
-}
\ No newline at end of file
+}
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/View_ChangesTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/View_ChangesTest.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/View_ChangesTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/View_ChangesTest.java Wed Oct 24 13:54:17 2007
@@ -936,7 +936,7 @@
assertEquals("added and created are different", added.length, viewsCreatedElements
.size());
for (int i = 0; i < added.length; i++) {
- assertSame("Elemets different @ " + i, added[i], viewsCreatedElements.get(i));
+ assertSame("Elements different @ " + i, added[i], viewsCreatedElements.get(i));
}
assertEquals("Child view count is unexpected", count, view.getViewCount());
assertEquals("Replace index is unexpected", docEvent.getChange(root).getIndex(),
@@ -951,4 +951,4 @@
public void testForwardUpdate() {
// tested in testInsertUpdate05
}*/
-}
\ No newline at end of file
+}
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/FormViewTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/FormViewTest.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/FormViewTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/FormViewTest.java Wed Oct 24 13:54:17 2007
@@ -725,7 +725,7 @@
doc = new HTMLDocument();
editorPane.setDocument(doc);
htmlEditorKit.read(reader, doc, 0);
- // 1. Test checkbox button. Succsessful should be only checked buttons.
+ // 1. Test checkbox button. Successful should be only checked buttons.
src = new StringBuffer();
src.append("<HTML><HEAD></HEAD><BODY> Test");
@@ -778,7 +778,7 @@
doc = new HTMLDocument();
editorPane.setDocument(doc);
htmlEditorKit.read(reader, doc, 0);
- // 1. Test submit button. Succsessful should be only armed button.
+ // 1. Test submit button. Successful should be only armed button.
if (isHarmony()) {
/**
@@ -816,7 +816,7 @@
// 1. Test disable attribute in
// a) BUTTON
// b) OPTGROUP
- // 2. Test submit button. Succsessful should be only armed button.
+ // 2. Test submit button. Successful should be only armed button.
}
src = new StringBuffer();
@@ -833,7 +833,7 @@
editorPane.setDocument(doc);
htmlEditorKit.read(reader, doc, 0);
// TODO
- // 1. Test checkbox button. Succsessful should be only checked buttons.
+ // 1. Test checkbox button. Successful should be only checked buttons.
src = new StringBuffer();
src.append("<HTML><HEAD></HEAD><BODY> Test");
@@ -852,7 +852,7 @@
htmlEditorKit.read(reader, doc, 0);
// TODO
// 1. Test radioButton.
- // a) For buttons with the same name succsessful should be only selected
+ // a) For buttons with the same name successful should be only selected
// button.
// b) Test Unchecked buttons
@@ -872,7 +872,7 @@
editorPane.setDocument(doc);
htmlEditorKit.read(reader, doc, 0);
// TODO
- // 1. Succsessful should be only selected items.
+ // 1. Successful should be only selected items.
src = new StringBuffer();
src.append("<HTML><HEAD></HEAD><BODY> Test");
@@ -885,7 +885,7 @@
editorPane.setDocument(doc);
htmlEditorKit.read(reader, doc, 0);
// TODO
- // 1. File is succsessful element
+ // 1. File is successful element
// TODO
// 1. If current value of element is unset, element may considered as
@@ -902,7 +902,7 @@
editorPane.setDocument(doc);
htmlEditorKit.read(reader, doc, 0);
// TODO
- // 1. Reset isn't succsessful element
+ // 1. Reset isn't successful element
src = new StringBuffer();
src.append("<HTML><HEAD></HEAD><BODY> Test");
@@ -915,7 +915,7 @@
editorPane.setDocument(doc);
htmlEditorKit.read(reader, doc, 0);
// TODO
- // 1. OBJECT with attrubute "declare" isn't succsessful element.
+ // 1. OBJECT with attribute "declare" isn't successful element.
// TODO
// 1. Tests on invisible elements.
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/DTDTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/DTDTest.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/DTDTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/DTDTest.java Wed Oct 24 13:54:17 2007
@@ -281,7 +281,7 @@
ContentModel contentModel = null;
String[] exclusions = new String[] {HTML, BASE};
String[] inclusions = new String[] {APPLET, BODY};
- AttributeList attl = new AttributeList("atttibuteList");
+ AttributeList attl = new AttributeList("attributeList");
Element elem = dtd.defElement(name, type, omitStart, omitEnd,
contentModel, exclusions, inclusions,
attl);
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/Utils.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/Utils.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/Utils.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/text/html/parser/Utils.java Wed Oct 24 13:54:17 2007
@@ -268,7 +268,7 @@
final int type,
final String data,
final boolean isGeneral,
- final boolean isParametr) {
+ final boolean isParameter) {
TestCase.assertEquals(name, entity.name);
//TestCase.assertEquals(type, entity.type);
TestCase.assertEquals(data, String.valueOf(entity.data));
@@ -276,7 +276,7 @@
TestCase.assertEquals(type, entity.getType()); //TODO 65536
TestCase.assertEquals(data, entity.getString());
TestCase.assertEquals(isGeneral, entity.isGeneral());
- TestCase.assertEquals(isParametr, entity.isParameter());
+ TestCase.assertEquals(isParameter, entity.isParameter());
}
public static void checkEntity(final Entity entity,
@@ -284,14 +284,14 @@
final int type,
final char data,
final boolean isGeneral,
- final boolean isParametr) {
+ final boolean isParameter) {
TestCase.assertEquals(name, entity.name);
TestCase.assertEquals(1, entity.data.length);
TestCase.assertEquals(data, entity.data[0]);
TestCase.assertEquals(name, entity.getName());
TestCase.assertEquals(type, entity.getType()); //TODO 65536
TestCase.assertEquals(isGeneral, entity.isGeneral());
- TestCase.assertEquals(isParametr, entity.isParameter());
+ TestCase.assertEquals(isParameter, entity.isParameter());
}
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/tree/DefaultTreeCellRendererTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/tree/DefaultTreeCellRendererTest.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/tree/DefaultTreeCellRendererTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/tree/DefaultTreeCellRendererTest.java Wed Oct 24 13:54:17 2007
@@ -222,12 +222,12 @@
renderer.getTreeCellRendererComponent(new JTree(), "value", true, true, true, 0, false);
JLabel label = new JLabel("value", renderer.getDefaultLeafIcon(), SwingConstants.LEFT);
label.setFont(renderer.getFont());
- Dimension baseDimenstion = label.getPreferredSize();
+ Dimension baseDimension = label.getPreferredSize();
if (isHarmony()) {
- assertEquals(new Dimension(baseDimenstion.width + 2, baseDimenstion.height),
+ assertEquals(new Dimension(baseDimension.width + 2, baseDimension.height),
renderer.getPreferredSize());
} else {
- assertEquals(new Dimension(baseDimenstion.width + 3, baseDimenstion.height),
+ assertEquals(new Dimension(baseDimension.width + 3, baseDimension.height),
renderer.getPreferredSize());
}
}
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/tree/FixedHeightLayoutCacheTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/tree/FixedHeightLayoutCacheTest.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/tree/FixedHeightLayoutCacheTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/javax/swing/tree/FixedHeightLayoutCacheTest.java Wed Oct 24 13:54:17 2007
@@ -82,7 +82,7 @@
assertEquals(200, cache.getRowHeight());
try {
cache.setRowHeight(0);
- fail("no excepttion has been thrown");
+ fail("no exception has been thrown");
} catch (IllegalArgumentException e) {
}
}
Modified: harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/org/apache/harmony/swing/tests/javax/swing/text/parser/ContentModelCompatilityTest.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/org/apache/harmony/swing/tests/javax/swing/text/parser/ContentModelCompatilityTest.java?rev=588016&r1=588015&r2=588016&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/org/apache/harmony/swing/tests/javax/swing/text/parser/ContentModelCompatilityTest.java (original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/test/api/java.injected/org/apache/harmony/swing/tests/javax/swing/text/parser/ContentModelCompatilityTest.java Wed Oct 24 13:54:17 2007
@@ -708,7 +708,7 @@
* 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.ContentModel(int,
* ContentModel)' ContentModel(Element( "1",0,true,true,null,null,null,null ,
* and a contentmodel is created. Then ContentModel(0,contentmodel) is
- * instanciated It checks if an instance is created, content is equal to el
+ * instantiated It checks if an instance is created, content is equal to el
* ,type is 0 and next is null.
*/
public void testContentModelIntContentModel036() {
@@ -2274,7 +2274,7 @@
* Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.toString()'
* ContentModel(Element( "1",0,true,true,null,null,null,null , and a
* contentmodel is created. Then ContentModel(0,contentmodel) is
- * instanciated Expected result is "1"
+ * instantiated Expected result is "1"
*/
public void testToString024() {
try {
@@ -2952,7 +2952,7 @@
/**
* Test method for 'org.apache.harmony.swing.tests.javax.swing.text.parser.ContentModel.first()'
* ContentModel(Element( "1",0,true,true,null,null,null,null)) Then
- * ContentModel(0,contentmodel) is instanciated Expected: Element(
+ * ContentModel(0,contentmodel) is instantiated Expected: Element(
* "1",0,true,true,null,null,null,null)
*/
public void testFirst024() {