[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] FYI: Reindent javax/swing/text
From: |
Mark Wielaard |
Subject: |
[cp-patches] FYI: Reindent javax/swing/text |
Date: |
Sun, 01 Aug 2004 01:25:48 +0200 |
To make merging with the libgcj gui branch easier I reindented all
javax/swing/text source files as on the branch. No code was
changed.
2004-07-31 Mark Wielaard <address@hidden>
* javax/swing/text/AbstractDocument.java: Reindent.
* javax/swing/text/AttributeSet.java: Reindent.
* javax/swing/text/DefaultEditorKit.java: Reindent.
* javax/swing/text/EditorKit.java: Reindent.
* javax/swing/text/Position.java: Reindent.
* javax/swing/text/StyledEditorKit.java: Reindent.
* javax/swing/text/TextAction.java: Reindent.
* javax/swing/text/ViewFactory.java: Reindent.
Committed.
Index: javax/swing/text/AbstractDocument.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/AbstractDocument.java,v
retrieving revision 1.8
diff -u -r1.8 AbstractDocument.java
--- javax/swing/text/AbstractDocument.java 22 Jul 2004 19:45:39 -0000
1.8
+++ javax/swing/text/AbstractDocument.java 31 Jul 2004 23:23:31 -0000
@@ -133,7 +133,7 @@
protected void fireUndoableEditUpdate(UndoableEditEvent event)
{
UndoableEditListener[] listeners = getUndoableEditListeners();
-
+
for (int index = 0; index < listeners.length; ++index)
listeners[index].undoableEditHappened(event);
}
@@ -199,9 +199,9 @@
}
public String getText(int offset, int length) throws BadLocationException
- {
- return content.getString(offset, length);
- }
+ {
+ return content.getString(offset, length);
+ }
public void getText(int offset, int length, Segment txt)
throws BadLocationException
Index: javax/swing/text/AttributeSet.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/AttributeSet.java,v
retrieving revision 1.4
diff -u -r1.4 AttributeSet.java
--- javax/swing/text/AttributeSet.java 22 Jul 2004 19:45:39 -0000 1.4
+++ javax/swing/text/AttributeSet.java 31 Jul 2004 23:23:31 -0000
@@ -57,13 +57,13 @@
{
}
- boolean containsAttribute(Object name, Object value);
- boolean containsAttributes(AttributeSet attributes);
- AttributeSet copyAttributes();
- Object getAttribute(Object key);
- int getAttributeCount();
- Enumeration getAttributeNames();
- AttributeSet getResolveParent();
- boolean isDefined(Object attrName);
- boolean isEqual(AttributeSet attr);
+ boolean containsAttribute(Object name, Object value);
+ boolean containsAttributes(AttributeSet attributes);
+ AttributeSet copyAttributes();
+ Object getAttribute(Object key);
+ int getAttributeCount();
+ Enumeration getAttributeNames();
+ AttributeSet getResolveParent();
+ boolean isDefined(Object attrName);
+ boolean isEqual(AttributeSet attr);
}
Index: javax/swing/text/DefaultEditorKit.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/DefaultEditorKit.java,v
retrieving revision 1.6
diff -u -r1.6 DefaultEditorKit.java
--- javax/swing/text/DefaultEditorKit.java 31 Jul 2004 23:18:08 -0000
1.6
+++ javax/swing/text/DefaultEditorKit.java 31 Jul 2004 23:23:31 -0000
@@ -1,4 +1,4 @@
-/* DefaultEditorKit.java --
+/* DefaultEditorKit.java --
Copyright (C) 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -125,55 +125,55 @@
* Called when the kit is being removed from the JEditorPane.
*/
public void deinstall(JEditorPane c)
- {
- }
+ {
+ }
public void install(JEditorPane c)
- {
- }
+ {
+ }
public Caret createCaret()
- {
- return null;
- }
+ {
+ return null;
+ }
public Document createDefaultDocument()
- {
- return new PlainDocument();
- }
+ {
+ return new PlainDocument();
+ }
public Action[] getActions()
- {
- return null;
- }
+ {
+ return null;
+ }
public String getContentType()
- {
- return "text/plain";
- }
-
+ {
+ return "text/plain";
+ }
+
public ViewFactory getViewFactory()
- {
- return null;
- }
+ {
+ return null;
+ }
public void read(InputStream in, Document doc, int pos)
throws BadLocationException, IOException
- {
- }
+ {
+ }
public void read(Reader in, Document doc, int pos)
throws BadLocationException, IOException
- {
- }
+ {
+ }
public void write(OutputStream out, Document doc, int pos, int len)
throws BadLocationException, IOException
- {
- }
+ {
+ }
public void write(Writer out, Document doc, int pos, int len)
throws BadLocationException, IOException
- {
- }
+ {
+ }
}
Index: javax/swing/text/EditorKit.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/EditorKit.java,v
retrieving revision 1.4
diff -u -r1.4 EditorKit.java
--- javax/swing/text/EditorKit.java 22 Jul 2004 19:45:39 -0000 1.4
+++ javax/swing/text/EditorKit.java 31 Jul 2004 23:23:31 -0000
@@ -1,4 +1,4 @@
-/* EditorKit.java --
+/* EditorKit.java --
Copyright (C) 2002, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -53,31 +53,31 @@
private static final long serialVersionUID = -5044124649345887822L;
public EditorKit()
- {
- }
+ {
+ }
public Object clone()
- {
+ {
try
{
return super.clone();
- }
+ }
catch (CloneNotSupportedException e)
- {
+ {
return null;
- }
+ }
}
/**
* Called when the kit is being removed from the JEditorPane.
*/
public void deinstall(JEditorPane c)
- {
- }
+ {
+ }
public void install(JEditorPane c)
{
-}
+ }
public abstract Caret createCaret();
public abstract Document createDefaultDocument();
Index: javax/swing/text/Position.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/Position.java,v
retrieving revision 1.3
diff -u -r1.3 Position.java
--- javax/swing/text/Position.java 22 Jul 2004 19:45:39 -0000 1.3
+++ javax/swing/text/Position.java 31 Jul 2004 23:23:31 -0000
@@ -40,8 +40,8 @@
public interface Position
{
- static class Bias
- {
+ static class Bias
+ {
public static final Bias Backward = new Bias("backward");
public static final Bias Forward = new Bias("forward");
@@ -56,7 +56,7 @@
{
return name;
}
- }
+ }
- int getOffset();
+ int getOffset();
}
Index: javax/swing/text/StyledEditorKit.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/StyledEditorKit.java,v
retrieving revision 1.5
diff -u -r1.5 StyledEditorKit.java
--- javax/swing/text/StyledEditorKit.java 22 Jul 2004 19:45:39 -0000
1.5
+++ javax/swing/text/StyledEditorKit.java 31 Jul 2004 23:23:31 -0000
@@ -51,452 +51,452 @@
/**
* StyledEditorKit
*
- * @author Andrew Selkirk
+ * @author Andrew Selkirk
*/
public class StyledEditorKit extends DefaultEditorKit
{
private static final long serialVersionUID = 7002391892985555948L;
- /**
- * UnderlineAction
- */
+ /**
+ * UnderlineAction
+ */
public static class UnderlineAction extends StyledEditorKit.StyledTextAction
{
- /**
- * Constructor UnderlineAction
- */
+ /**
+ * Constructor UnderlineAction
+ */
public UnderlineAction()
{
- super("TODO");
- // TODO
+ super("TODO");
+ // TODO
}
- /**
- * actionPerformed
- * @param event TODO
- */
+ /**
+ * actionPerformed
+ * @param event TODO
+ */
public void actionPerformed(ActionEvent event)
{
- // TODO
+ // TODO
}
}
- /**
- * ItalicAction
- */
+ /**
+ * ItalicAction
+ */
public static class ItalicAction extends StyledEditorKit.StyledTextAction
{
- /**
- * Constructor ItalicAction
- */
+ /**
+ * Constructor ItalicAction
+ */
public ItalicAction()
{
- super("TODO");
- // TODO
+ super("TODO");
+ // TODO
}
- /**
- * actionPerformed
- * @param event TODO
- */
+ /**
+ * actionPerformed
+ * @param event TODO
+ */
public void actionPerformed(ActionEvent event)
{
- // TODO
+ // TODO
}
}
- /**
- * BoldAction
- */
+ /**
+ * BoldAction
+ */
public static class BoldAction extends StyledEditorKit.StyledTextAction
{
- /**
- * Constructor BoldAction
- */
+ /**
+ * Constructor BoldAction
+ */
public BoldAction()
{
- super("TODO");
- // TODO
+ super("TODO");
+ // TODO
}
- /**
- * actionPerformed
- * @param event TODO
- */
+ /**
+ * actionPerformed
+ * @param event TODO
+ */
public void actionPerformed(ActionEvent event)
{
- // TODO
+ // TODO
}
}
- /**
- * AlignmentAction
- */
+ /**
+ * AlignmentAction
+ */
public static class AlignmentAction extends StyledEditorKit.StyledTextAction
{
- /**
- * a
- */
- private int a;
-
- /**
- * Constructor AlignmentAction
- * @param nm TODO
- * @param a TODO
- */
+ /**
+ * a
+ */
+ private int a;
+
+ /**
+ * Constructor AlignmentAction
+ * @param nm TODO
+ * @param a TODO
+ */
public AlignmentAction(String nm, int a)
{
- super("TODO");
- // TODO
+ super("TODO");
+ // TODO
}
- /**
- * actionPerformed
- * @param event TODO
- */
+ /**
+ * actionPerformed
+ * @param event TODO
+ */
public void actionPerformed(ActionEvent event)
{
- // TODO
+ // TODO
}
}
- /**
- * ForegroundAction
- */
+ /**
+ * ForegroundAction
+ */
public static class ForegroundAction extends StyledEditorKit.StyledTextAction
{
- /**
- * fg
- */
- private Color fg;
-
- /**
- * Constructor ForegroundAction
- * @param nm TODO
- * @param fg TODO
- */
+ /**
+ * fg
+ */
+ private Color fg;
+
+ /**
+ * Constructor ForegroundAction
+ * @param nm TODO
+ * @param fg TODO
+ */
public ForegroundAction(String nm, Color fg)
{
- super("TODO");
- // TODO
+ super("TODO");
+ // TODO
}
- /**
- * actionPerformed
- * @param event TODO
- */
+ /**
+ * actionPerformed
+ * @param event TODO
+ */
public void actionPerformed(ActionEvent event)
{
- // TODO
+ // TODO
}
}
- /**
- * FontSizeAction
- */
+ /**
+ * FontSizeAction
+ */
public static class FontSizeAction extends StyledEditorKit.StyledTextAction
{
- /**
- * size
- */
- private int size;
-
- /**
- * Constructor FontSizeAction
- * @param nm TODO
- * @param size TODO
- */
+ /**
+ * size
+ */
+ private int size;
+
+ /**
+ * Constructor FontSizeAction
+ * @param nm TODO
+ * @param size TODO
+ */
public FontSizeAction(String nm, int size)
{
- super("TODO");
- // TODO
+ super("TODO");
+ // TODO
}
- /**
- * actionPerformed
- * @param event TODO
- */
+ /**
+ * actionPerformed
+ * @param event TODO
+ */
public void actionPerformed(ActionEvent event)
{
- // TODO
+ // TODO
}
}
- /**
- * FontFamilyAction
- */
+ /**
+ * FontFamilyAction
+ */
public static class FontFamilyAction extends StyledEditorKit.StyledTextAction
{
- /**
- * family
- */
- private String family;
-
- /**
- * Constructor FontFamilyAction
- * @param nm TODO
- * @param family TODO
- */
+ /**
+ * family
+ */
+ private String family;
+
+ /**
+ * Constructor FontFamilyAction
+ * @param nm TODO
+ * @param family TODO
+ */
public FontFamilyAction(String nm, String family)
{
- super("TODO");
- // TODO
+ super("TODO");
+ // TODO
}
- /**
- * actionPerformed
- * @param event TODO
- */
+ /**
+ * actionPerformed
+ * @param event TODO
+ */
public void actionPerformed(ActionEvent event)
{
- // TODO
+ // TODO
}
}
- /**
- * StyledTextAction
- */
+ /**
+ * StyledTextAction
+ */
public abstract static class StyledTextAction extends TextAction
{
- /**
- * Constructor StyledTextAction
- * @param nm TODO
- */
+ /**
+ * Constructor StyledTextAction
+ * @param nm TODO
+ */
public StyledTextAction(String nm)
{
- super(nm);
- // TODO
+ super(nm);
+ // TODO
}
- /**
- * getEditor
- * @param event TODO
- * @returns JEditorPane
- */
+ /**
+ * getEditor
+ * @param event TODO
+ * @returns JEditorPane
+ */
protected final JEditorPane getEditor(ActionEvent event)
{
- return null; // TODO
+ return null; // TODO
}
- /**
- * setCharacterAttributes
- * @param value0 TODO
- * @param value1 TODO
- * @param value2 TODO
- */
+ /**
+ * setCharacterAttributes
+ * @param value0 TODO
+ * @param value1 TODO
+ * @param value2 TODO
+ */
protected final void setCharacterAttributes(JEditorPane value0,
AttributeSet value1,
boolean value2)
{
- // TODO
+ // TODO
}
- /**
- * getStyledDocument
- * @param value0 TODO
- * @returns StyledDocument
- */
+ /**
+ * getStyledDocument
+ * @param value0 TODO
+ * @returns StyledDocument
+ */
protected final StyledDocument getStyledDocument(JEditorPane value0)
{
- return null; // TODO
+ return null; // TODO
}
- /**
- * getStyledEditorKit
- * @param value0 TODO
- * @returns StyledEditorKit
- */
+ /**
+ * getStyledEditorKit
+ * @param value0 TODO
+ * @returns StyledEditorKit
+ */
protected final StyledEditorKit getStyledEditorKit(JEditorPane value0)
{
- return null; // TODO
+ return null; // TODO
}
- /**
- * setParagraphAttributes
- * @param value0 TODO
- * @param value1 TODO
- * @param value2 TODO
- */
+ /**
+ * setParagraphAttributes
+ * @param value0 TODO
+ * @param value1 TODO
+ * @param value2 TODO
+ */
protected final void setParagraphAttributes(JEditorPane value0,
AttributeSet value1,
boolean value2)
{
- // TODO
+ // TODO
}
}
- /**
- * StyledViewFactory
- */
+ /**
+ * StyledViewFactory
+ */
static class StyledViewFactory
implements ViewFactory
{
- /**
- * Constructor StyledViewFactory
- */
+ /**
+ * Constructor StyledViewFactory
+ */
StyledViewFactory()
{
- // TODO
+ // TODO
}
- /**
- * create
- * @param value0 TODO
- * @returns View
- */
+ /**
+ * create
+ * @param value0 TODO
+ * @returns View
+ */
public View create(Element value0)
{
- return null; // TODO
+ return null; // TODO
}
}
- /**
- * AttributeTracker
- */
+ /**
+ * AttributeTracker
+ */
class AttributeTracker
implements CaretListener, PropertyChangeListener, Serializable
{
- /**
- * Constructor AttributeTracker
- * @param value0 TODO
- */
+ /**
+ * Constructor AttributeTracker
+ * @param value0 TODO
+ */
AttributeTracker(StyledEditorKit value0)
{
- // TODO
+ // TODO
}
- /**
- * updateInputAttributes
- * @param value0 TODO
- * @param value1 TODO
- * @param value2 TODO
- */
+ /**
+ * updateInputAttributes
+ * @param value0 TODO
+ * @param value1 TODO
+ * @param value2 TODO
+ */
void updateInputAttributes(int value0, int value1, JTextComponent value2)
{
- // TODO
+ // TODO
}
- /**
- * propertyChange
- * @param value0 TODO
- */
+ /**
+ * propertyChange
+ * @param value0 TODO
+ */
public void propertyChange(PropertyChangeEvent value0)
{
- // TODO
+ // TODO
}
- /**
- * caretUpdate
- * @param value0 TODO
- */
+ /**
+ * caretUpdate
+ * @param value0 TODO
+ */
public void caretUpdate(CaretEvent value0)
{
- // TODO
+ // TODO
}
}
- /**
- * currentRun
- */
- Element currentRun;
+ /**
+ * currentRun
+ */
+ Element currentRun;
- /**
- * currentParagraph
- */
- Element currentParagraph;
+ /**
+ * currentParagraph
+ */
+ Element currentParagraph;
- /**
- * inputAttributes
- */
- MutableAttributeSet inputAttributes;
+ /**
+ * inputAttributes
+ */
+ MutableAttributeSet inputAttributes;
- /**
- * Constructor StyledEditorKit
- */
+ /**
+ * Constructor StyledEditorKit
+ */
public StyledEditorKit()
{
- // TODO
+ // TODO
}
- /**
- * clone
- * @returns Object
- */
+ /**
+ * clone
+ * @returns Object
+ */
public Object clone()
{
- return null; // TODO
+ return null; // TODO
}
- /**
- * getActions
- * @returns Action[]
- */
+ /**
+ * getActions
+ * @returns Action[]
+ */
public Action[] getActions()
{
- return null; // TODO
+ return null; // TODO
}
- /**
- * getInputAttributes
- * @returns MutableAttributeSet
- */
+ /**
+ * getInputAttributes
+ * @returns MutableAttributeSet
+ */
public MutableAttributeSet getInputAttributes()
{
- return null; // TODO
+ return null; // TODO
}
- /**
- * getCharacterAttributeRun
- * @returns Element
- */
+ /**
+ * getCharacterAttributeRun
+ * @returns Element
+ */
public Element getCharacterAttributeRun()
{
- return null; // TODO
+ return null; // TODO
}
- /**
- * createDefaultDocument
- * @returns Document
- */
+ /**
+ * createDefaultDocument
+ * @returns Document
+ */
public Document createDefaultDocument()
{
- return null; // TODO
+ return null; // TODO
}
- /**
- * install
- * @param component TODO
- */
+ /**
+ * install
+ * @param component TODO
+ */
public void install(JEditorPane component)
{
- // TODO
+ // TODO
}
- /**
- * deinstall
- * @param component TODO
- */
+ /**
+ * deinstall
+ * @param component TODO
+ */
public void deinstall(JEditorPane component)
{
- // TODO
+ // TODO
}
- /**
- * getViewFactory
- * @returns ViewFactory
- */
+ /**
+ * getViewFactory
+ * @returns ViewFactory
+ */
public ViewFactory getViewFactory()
{
- return null; // TODO
+ return null; // TODO
}
- /**
- * createInputAttributes
- * @param element TODO
- * @param set TODO
- */
+ /**
+ * createInputAttributes
+ * @param element TODO
+ * @param set TODO
+ */
protected void createInputAttributes(Element element, MutableAttributeSet
set)
{
- // TODO
+ // TODO
}
}
Index: javax/swing/text/TextAction.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/TextAction.java,v
retrieving revision 1.3
diff -u -r1.3 TextAction.java
--- javax/swing/text/TextAction.java 22 Jul 2004 19:45:39 -0000 1.3
+++ javax/swing/text/TextAction.java 31 Jul 2004 23:23:31 -0000
@@ -44,46 +44,46 @@
/**
* TextAction
- * @author Andrew Selkirk
+ * @author Andrew Selkirk
*/
public abstract class TextAction extends AbstractAction
{
- /**
- * Constructor TextAction
- * @param name TODO
- */
+ /**
+ * Constructor TextAction
+ * @param name TODO
+ */
public TextAction(String name)
{
- // TODO
+ // TODO
}
- /**
- * getTextComponent
- * @param event TODO
+ /**
+ * getTextComponent
+ * @param event TODO
* @return JTextComponent
- */
+ */
protected final JTextComponent getTextComponent(ActionEvent event)
{
- return null; // TODO
+ return null; // TODO
}
- /**
- * augmentList
- * @param list1 TODO
- * @param list2 TODO
+ /**
+ * augmentList
+ * @param list1 TODO
+ * @param list2 TODO
* @return Action[]
- */
+ */
public static final Action[] augmentList(Action[] list1, Action[] list2)
{
- return null; // TODO
+ return null; // TODO
}
- /**
- * getFocusedComponent
+ /**
+ * getFocusedComponent
* @return JTextComponent
- */
+ */
protected final JTextComponent getFocusedComponent()
{
- return null; // TODO
+ return null; // TODO
}
}
Index: javax/swing/text/ViewFactory.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/ViewFactory.java,v
retrieving revision 1.4
diff -u -r1.4 ViewFactory.java
--- javax/swing/text/ViewFactory.java 22 Jul 2004 19:45:39 -0000 1.4
+++ javax/swing/text/ViewFactory.java 31 Jul 2004 23:23:31 -0000
@@ -46,5 +46,5 @@
*
* @return a new created view
*/
- View create (Element elem);
+ View create(Element elem);
}
signature.asc
Description: This is a digitally signed message part
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] FYI: Reindent javax/swing/text,
Mark Wielaard <=