Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2016-01-07 21:04:29 +0000
committerAndrey Loskutov2016-01-07 21:08:48 +0000
commitc98a35a24d3d416c116d748eeedb75c131d5ec31 (patch)
tree78eba2ae6f2b22174ddf0e38aedf579d4ea560ea /bundles/org.eclipse.swt
parentde408f30623624c9e7e34cc2cca3aa1308fa9427 (diff)
downloadeclipse.platform.swt-c98a35a24d3d416c116d748eeedb75c131d5ec31.tar.gz
eclipse.platform.swt-c98a35a24d3d416c116d748eeedb75c131d5ec31.tar.xz
eclipse.platform.swt-c98a35a24d3d416c116d748eeedb75c131d5ec31.zip
Bug 485367 - cleaned trailing spaces in swt (gtk, cairo and Co)
Change-Id: I666ba3c50b8d8d8c8db67db7efd1647115f36cf1 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'bundles/org.eclipse.swt')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java34
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/Accessible.java124
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleFactory.java72
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleObject.java258
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java24
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT OpenGL/glx/org/eclipse/swt/internal/opengl/glx/GLX.java54
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT OpenGL/gtk/org/eclipse/swt/opengl/GLCanvas.java16
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/Cairo.java6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/Lock.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/Platform.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java14
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkActionIface.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkAttribute.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkComponentIface.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkEditableTextIface.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkHypertextIface.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkObjectClass.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkObjectFactoryClass.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkSelectionIface.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTableIface.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTextIface.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTextRange.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTextRectangle.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkValueIface.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/GtkAccessible.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GInterfaceInfo.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GObjectClass.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTypeInfo.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTypeQuery.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkColor.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkDragContext.java6
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEvent.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventAny.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventButton.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventCrossing.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventExpose.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventFocus.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventKey.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventMotion.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventProperty.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventScroll.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventWindowState.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkGCValues.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkGeometry.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkImage.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkRGBA.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkRectangle.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkVisual.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkWindowAttr.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkAdjustment.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkAllocation.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkBorder.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkCellRendererClass.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkFixed.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkRequisition.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkTargetEntry.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkWidgetClass.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoAttrColor.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoAttrInt.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoAttribute.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoItem.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoLayoutLine.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoLayoutRun.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoLogAttr.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoRectangle.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XAnyEvent.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XEvent.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XExposeEvent.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XFocusChangeEvent.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XRenderPictureAttributes.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Program/cde/org/eclipse/swt/internal/cde/CDE.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Program/gnome/org/eclipse/swt/internal/gnome/GNOME.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Program/gnome/org/eclipse/swt/internal/gnome/GnomeVFSMimeApplication.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ButtonDrawData.java38
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ComboDrawData.java16
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/DrawData.java16
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ExpanderDrawData.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/GroupDrawData.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ScaleDrawData.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ScrollBarDrawData.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/TabFolderDrawData.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/TabItemDrawData.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolBarDrawData.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolItemDrawData.java14
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/JSClassDefinition.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Path.java56
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Pattern.java36
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Transform.java74
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Color.java26
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Font.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java8
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java28
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java4
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java6
101 files changed, 563 insertions, 563 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java
index de63e75883..dba5cd6938 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/gtk/org/eclipse/swt/awt/SWT_AWT.java
@@ -33,20 +33,20 @@ import org.eclipse.swt.widgets.Event;
*
* @see <a href="http://www.eclipse.org/swt/snippets/#awt">Swing/AWT snippets</a>
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
- *
+ *
* @since 3.0
*/
public class SWT_AWT {
/**
* The name of the embedded Frame class. The default class name
- * for the platform will be used if <code>null</code>.
+ * for the platform will be used if <code>null</code>.
*/
public static String embeddedFrameClass;
/**
* Key for looking up the embedded frame for a Composite using
- * getData().
+ * getData().
*/
static String EMBEDDED_FRAME_KEY = "org.eclipse.swt.awt.SWT_AWT.embeddedFrame";
@@ -94,14 +94,14 @@ static synchronized void initializeSwing() {
/**
* Returns a <code>java.awt.Frame</code> which is the embedded frame
* associated with the specified composite.
- *
+ *
* @param parent the parent <code>Composite</code> of the <code>java.awt.Frame</code>
* @return a <code>java.awt.Frame</code> the embedded frame or <code>null</code>.
- *
+ *
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
* </ul>
- *
+ *
* @since 3.2
*/
public static Frame getFrame (Composite parent) {
@@ -122,15 +122,15 @@ public static Frame getFrame (Composite parent) {
* strongly recommended that a heavyweight component such as <code>java.awt.Panel</code>
* be added to the frame as the root of all components.
* </p>
- *
+ *
* @param parent the parent <code>Composite</code> of the new <code>java.awt.Frame</code>
* @return a <code>java.awt.Frame</code> to be the parent of the embedded AWT components
- *
+ *
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
- * <li>ERROR_INVALID_ARGUMENT - if the parent Composite does not have the SWT.EMBEDDED style</li>
+ * <li>ERROR_INVALID_ARGUMENT - if the parent Composite does not have the SWT.EMBEDDED style</li>
* </ul>
- *
+ *
* @since 3.0
*/
public static Frame new_Frame (final Composite parent) {
@@ -149,7 +149,7 @@ public static Frame new_Frame (final Composite parent) {
String className = embeddedFrameClass != null ? embeddedFrameClass : "sun.awt.X11.XEmbeddedFrame";
clazz = Class.forName(className);
} catch (Throwable e) {
- SWT.error (SWT.ERROR_NOT_IMPLEMENTED, e, " [need JDK 1.5 or greater]");
+ SWT.error (SWT.ERROR_NOT_IMPLEMENTED, e, " [need JDK 1.5 or greater]");
}
initializeSwing ();
Object value = null;
@@ -225,7 +225,7 @@ public static Frame new_Frame (final Composite parent) {
Shell shell = parent.getShell ();
shell.addListener (SWT.Deiconify, shellListener);
shell.addListener (SWT.Iconify, shellListener);
-
+
Listener listener = new Listener () {
public void handleEvent (Event e) {
switch (e.type) {
@@ -256,7 +256,7 @@ public static Frame new_Frame (final Composite parent) {
};
parent.addListener (SWT.Dispose, listener);
parent.addListener (SWT.Resize, listener);
-
+
parent.getDisplay().asyncExec(new Runnable() {
public void run () {
if (parent.isDisposed()) return;
@@ -274,18 +274,18 @@ public static Frame new_Frame (final Composite parent) {
/**
* Creates a new <code>Shell</code>. This Shell is the root for
- * the SWT widgets that will be embedded within the AWT canvas.
- *
+ * the SWT widgets that will be embedded within the AWT canvas.
+ *
* @param display the display for the new Shell
* @param parent the parent <code>java.awt.Canvas</code> of the new Shell
* @return a <code>Shell</code> to be the parent of the embedded SWT widgets
- *
+ *
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the display is null</li>
* <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
* <li>ERROR_INVALID_ARGUMENT - if the parent's peer is not created</li>
* </ul>
- *
+ *
* @since 3.0
*/
public static Shell new_Shell (final Display display, final Canvas parent) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/Accessible.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/Accessible.java
index 957ee3c4d8..84f39e270b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/Accessible.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/Accessible.java
@@ -30,7 +30,7 @@ import org.eclipse.swt.widgets.*;
* As a rule of thumb, an application would only want to use the
* accessible control listener to implement accessibility for a
* custom control.
- *
+ *
* @see Control#getAccessible
* @see AccessibleListener
* @see AccessibleEvent
@@ -38,7 +38,7 @@ import org.eclipse.swt.widgets.*;
* @see AccessibleControlEvent
* @see <a href="http://www.eclipse.org/swt/snippets/#accessibility">Accessibility snippets</a>
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
- *
+ *
* @since 2.0
*/
public class Accessible {
@@ -58,11 +58,11 @@ public class Accessible {
Control control;
List<Relation> relations;
List<Accessible> children;
-
+
static class Relation {
int type;
Accessible target;
-
+
public Relation(int type, Accessible target) {
this.type = type;
this.target = target;
@@ -76,19 +76,19 @@ public class Accessible {
return (relation.type == this.type) && (relation.target == this.target);
}
}
-
+
/**
* Constructs a new instance of this class given its parent.
- *
+ *
* @param parent the Accessible parent, which must not be null
- *
+ *
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the parent is null</li>
* </ul>
- *
+ *
* @see #dispose
* @see Control#getAccessible
- *
+ *
* @since 3.6
*/
public Accessible(Accessible parent) {
@@ -115,8 +115,8 @@ public class Accessible {
super ();
this.control = control;
AccessibleFactory.registerAccessible (this);
- }
-
+ }
+
/**
* Adds the listener to the collection of listeners who will
* be notified when an accessible client asks for certain strings,
@@ -142,7 +142,7 @@ public class Accessible {
checkWidget ();
if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
if (accessibleListeners == null) accessibleListeners = new ArrayList<AccessibleListener>();
- accessibleListeners.add (listener);
+ accessibleListeners.add (listener);
}
/**
@@ -170,7 +170,7 @@ public class Accessible {
checkWidget ();
if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
if (accessibleControlListeners == null) accessibleControlListeners = new ArrayList<AccessibleControlListener>();
- accessibleControlListeners.add (listener);
+ accessibleControlListeners.add (listener);
}
/**
@@ -194,7 +194,7 @@ public class Accessible {
* @see AccessibleTextListener
* @see AccessibleTextExtendedListener
* @see #removeAccessibleTextListener
- *
+ *
* @since 3.0
*/
public void addAccessibleTextListener (AccessibleTextListener listener) {
@@ -202,13 +202,13 @@ public class Accessible {
if (listener == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
if (listener instanceof AccessibleTextExtendedListener) {
if (accessibleTextExtendedListeners == null) accessibleTextExtendedListeners = new ArrayList<AccessibleTextExtendedListener>();
- accessibleTextExtendedListeners.add ((AccessibleTextExtendedListener)listener);
+ accessibleTextExtendedListeners.add ((AccessibleTextExtendedListener)listener);
} else {
if (accessibleTextListeners == null) accessibleTextListeners = new ArrayList<AccessibleTextListener>();
accessibleTextListeners.add (listener);
}
}
-
+
/**
* Adds the listener to the collection of listeners that will be
* notified when an accessible client asks for any of the properties
@@ -227,7 +227,7 @@ public class Accessible {
*
* @see AccessibleActionListener
* @see #removeAccessibleActionListener
- *
+ *
* @since 3.6
*/
public void addAccessibleActionListener(AccessibleActionListener listener) {
@@ -255,7 +255,7 @@ public class Accessible {
*
* @see AccessibleEditableTextListener
* @see #removeAccessibleEditableTextListener
- *
+ *
* @since 3.7
*/
public void addAccessibleEditableTextListener(AccessibleEditableTextListener listener) {
@@ -283,7 +283,7 @@ public class Accessible {
*
* @see AccessibleHyperlinkListener
* @see #removeAccessibleHyperlinkListener
- *
+ *
* @since 3.6
*/
public void addAccessibleHyperlinkListener(AccessibleHyperlinkListener listener) {
@@ -311,7 +311,7 @@ public class Accessible {
*
* @see AccessibleTableListener
* @see #removeAccessibleTableListener
- *
+ *
* @since 3.6
*/
public void addAccessibleTableListener(AccessibleTableListener listener) {
@@ -339,7 +339,7 @@ public class Accessible {
*
* @see AccessibleTableCellListener
* @see #removeAccessibleTableCellListener
- *
+ *
* @since 3.6
*/
public void addAccessibleTableCellListener(AccessibleTableCellListener listener) {
@@ -367,7 +367,7 @@ public class Accessible {
*
* @see AccessibleValueListener
* @see #removeAccessibleValueListener
- *
+ *
* @since 3.6
*/
public void addAccessibleValueListener(AccessibleValueListener listener) {
@@ -395,7 +395,7 @@ public class Accessible {
*
* @see AccessibleAttributeListener
* @see #removeAccessibleAttributeListener
- *
+ *
* @since 3.6
*/
public void addAccessibleAttributeListener(AccessibleAttributeListener listener) {
@@ -408,10 +408,10 @@ public class Accessible {
/**
* Adds a relation with the specified type and target
* to the receiver's set of relations.
- *
+ *
* @param type an <code>ACC</code> constant beginning with RELATION_* indicating the type of relation
* @param target the accessible that is the target for this relation
- *
+ *
* @since 3.6
*/
public void addRelation(int type, Accessible target) {
@@ -422,7 +422,7 @@ public class Accessible {
relations.add(relation);
if (accessibleObject != null) accessibleObject.addRelation(type, target);
}
-
+
void addRelations () {
if (relations == null) return;
if (accessibleObject == null) return;
@@ -431,7 +431,7 @@ public class Accessible {
accessibleObject.addRelation(relation.type, relation.target);
}
}
-
+
/**
* Disposes of the operating system resources associated with
* the receiver, and removes the receiver from its parent's
@@ -445,7 +445,7 @@ public class Accessible {
* It is also not necessary to call this for instances of <code>Accessible</code>
* that were retrieved with <code>Control.getAccessible()</code>.
* </p>
- *
+ *
* @since 3.6
*/
public void dispose () {
@@ -456,7 +456,7 @@ public class Accessible {
}
/**
- * Returns the control for this Accessible object.
+ * Returns the control for this Accessible object.
*
* @return the receiver's control
* @since 3.0
@@ -470,7 +470,7 @@ public class Accessible {
if (!isValidThread ()) SWT.error (SWT.ERROR_THREAD_INVALID_ACCESS);
if (control.isDisposed ()) SWT.error (SWT.ERROR_WIDGET_DISPOSED);
}
-
+
AccessibleObject getAccessibleObject () {
if (accessibleObject == null) {
if (parent == null) {
@@ -512,14 +512,14 @@ public class Accessible {
* available on all platforms, and should never be called from
* application code.
* </p>
- *
+ *
* @noreference This method is not intended to be referenced by clients.
*/
public void internal_dispose_Accessible() {
AccessibleFactory.unregisterAccessible (Accessible.this);
release ();
}
-
+
/**
* Invokes platform specific functionality to allocate a new accessible object.
* <p>
@@ -532,7 +532,7 @@ public class Accessible {
*
* @param control the control to get the accessible object for
* @return the platform specific accessible object
- *
+ *
* @noreference This method is not intended to be referenced by clients.
*/
public static Accessible internal_new_Accessible (Control control) {
@@ -543,7 +543,7 @@ public class Accessible {
boolean isValidThread () {
return control.getDisplay ().getThread () == Thread.currentThread ();
}
-
+
void release () {
if (children != null) {
for (int i = 0; i < children.size(); i++) {
@@ -556,7 +556,7 @@ public class Accessible {
accessibleObject = null;
}
}
-
+
/**
* Removes the listener from the collection of listeners who will
* be notified when an accessible client asks for custom control
@@ -632,7 +632,7 @@ public class Accessible {
* @see AccessibleTextListener
* @see AccessibleTextExtendedListener
* @see #addAccessibleTextListener
- *
+ *
* @since 3.0
*/
public void removeAccessibleTextListener (AccessibleTextListener listener) {
@@ -650,7 +650,7 @@ public class Accessible {
}
}
}
-
+
/**
* Removes the listener from the collection of listeners that will be
* notified when an accessible client asks for any of the properties
@@ -669,7 +669,7 @@ public class Accessible {
*
* @see AccessibleActionListener
* @see #addAccessibleActionListener
- *
+ *
* @since 3.6
*/
public void removeAccessibleActionListener(AccessibleActionListener listener) {
@@ -699,7 +699,7 @@ public class Accessible {
*
* @see AccessibleEditableTextListener
* @see #addAccessibleEditableTextListener
- *
+ *
* @since 3.7
*/
public void removeAccessibleEditableTextListener(AccessibleEditableTextListener listener) {
@@ -710,7 +710,7 @@ public class Accessible {
if (accessibleEditableTextListeners.isEmpty()) accessibleEditableTextListeners = null;
}
}
-
+
/**
* Removes the listener from the collection of listeners that will be
* notified when an accessible client asks for any of the properties
@@ -729,7 +729,7 @@ public class Accessible {
*
* @see AccessibleHyperlinkListener
* @see #addAccessibleHyperlinkListener
- *
+ *
* @since 3.6
*/
public void removeAccessibleHyperlinkListener(AccessibleHyperlinkListener listener) {
@@ -759,7 +759,7 @@ public class Accessible {
*
* @see AccessibleTableListener
* @see #addAccessibleTableListener
- *
+ *
* @since 3.6
*/
public void removeAccessibleTableListener(AccessibleTableListener listener) {
@@ -789,7 +789,7 @@ public class Accessible {
*
* @see AccessibleTableCellListener
* @see #addAccessibleTableCellListener
- *
+ *
* @since 3.6
*/
public void removeAccessibleTableCellListener(AccessibleTableCellListener listener) {
@@ -819,7 +819,7 @@ public class Accessible {
*
* @see AccessibleValueListener
* @see #addAccessibleValueListener
- *
+ *
* @since 3.6
*/
public void removeAccessibleValueListener(AccessibleValueListener listener) {
@@ -849,7 +849,7 @@ public class Accessible {
*
* @see AccessibleAttributeListener
* @see #addAccessibleAttributeListener
- *
+ *
* @since 3.6
*/
public void removeAccessibleAttributeListener(AccessibleAttributeListener listener) {
@@ -864,10 +864,10 @@ public class Accessible {
/**
* Removes the relation with the specified type and target
* from the receiver's set of relations.
- *
+ *
* @param type an <code>ACC</code> constant beginning with RELATION_* indicating the type of relation
* @param target the accessible that is the target for this relation
- *
+ *
* @since 3.6
*/
public void removeRelation(int type, Accessible target) {
@@ -887,12 +887,12 @@ public class Accessible {
* @param event an <code>ACC</code> constant beginning with EVENT_* indicating the message to send
* @param eventData an object containing event-specific data, or null if there is no event-specific data
* (eventData is specified in the documentation for individual ACC.EVENT_* constants)
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
* </ul>
- *
+ *
* @see ACC#EVENT_ACTION_CHANGED
* @see ACC#EVENT_ATTRIBUTE_CHANGED
* @see ACC#EVENT_DESCRIPTION_CHANGED
@@ -925,7 +925,7 @@ public class Accessible {
* @see ACC#EVENT_TEXT_COLUMN_CHANGED
* @see ACC#EVENT_TEXT_SELECTION_CHANGED
* @see ACC#EVENT_VALUE_CHANGED
- *
+ *
* @since 3.6
*/
public void sendEvent(int event, Object eventData) {
@@ -934,12 +934,12 @@ public class Accessible {
accessibleObject.sendEvent(event, eventData);
}
}
-
+
/**
* Sends a message with event-specific data and a childID
* to accessible clients, indicating that something has changed
* within a custom control.
- *
+ *
* NOTE: This API is intended for applications that are still using childIDs.
* Moving forward, applications should use accessible objects instead of childIDs.
*
@@ -947,12 +947,12 @@ public class Accessible {
* @param eventData an object containing event-specific data, or null if there is no event-specific data
* (eventData is specified in the documentation for individual ACC.EVENT_* constants)
* @param childID an identifier specifying a child of the control
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
* </ul>
- *
+ *
* @see ACC#EVENT_DESCRIPTION_CHANGED
* @see ACC#EVENT_LOCATION_CHANGED
* @see ACC#EVENT_NAME_CHANGED
@@ -960,7 +960,7 @@ public class Accessible {
* @see ACC#EVENT_STATE_CHANGED
* @see ACC#EVENT_TEXT_SELECTION_CHANGED
* @see ACC#EVENT_VALUE_CHANGED
- *
+ *
* @since 3.8
*/
public void sendEvent(int event, Object eventData, int childID) {
@@ -978,7 +978,7 @@ public class Accessible {
}
}
}
-
+
/**
* Sends a message to accessible clients that the child selection
* within a custom container control has changed.
@@ -987,7 +987,7 @@ public class Accessible {
* <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
* </ul>
- *
+ *
* @since 3.0
*/
public void selectionChanged () {
@@ -1002,7 +1002,7 @@ public class Accessible {
* has changed within a custom control.
*
* @param childID an identifier specifying a child of the control
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
@@ -1014,13 +1014,13 @@ public class Accessible {
accessibleObject.setFocus (childID);
}
}
-
+
/**
* Sends a message to accessible clients that the text
* caret has moved within a custom control.
*
* @param index the new caret index within the control
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
@@ -1048,10 +1048,10 @@ public class Accessible {
* <li>ERROR_WIDGET_DISPOSED - if the receiver's control has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver's control</li>
* </ul>
- *
+ *
* @see ACC#TEXT_INSERT
* @see ACC#TEXT_DELETE
- *
+ *
* @since 3.0
*/
public void textChanged (int type, int startIndex, int length) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleFactory.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleFactory.java
index cc09a78504..3e1efcfbf1 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleFactory.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleFactory.java
@@ -51,17 +51,17 @@ class AccessibleFactory {
/* Action callbacks */
static final Callback AtkActionCB_do_action;
- static final Callback AtkActionCB_get_n_actions;
+ static final Callback AtkActionCB_get_n_actions;
static final Callback AtkActionCB_get_description;
static final Callback AtkActionCB_get_keybinding;
- static final Callback AtkActionCB_get_name;
-
+ static final Callback AtkActionCB_get_name;
+
/* Component callbacks */
static final Callback AtkComponentCB_get_extents;
static final Callback AtkComponentCB_get_position;
static final Callback AtkComponentCB_get_size;
static final Callback AtkComponentCB_ref_accessible_at_point;
-
+
/* EditableText callbacks */
static final Callback AtkEditableTextCB_set_run_attributes;
static final Callback AtkEditableTextCB_set_text_contents;
@@ -75,18 +75,18 @@ class AccessibleFactory {
static final Callback AtkHypertextCB_get_link;
static final Callback AtkHypertextCB_get_n_links;
static final Callback AtkHypertextCB_get_link_index;
-
+
/* Object callbacks */
static final Callback AtkObjectCB_get_description;
static final Callback AtkObjectCB_get_index_in_parent;
static final Callback AtkObjectCB_get_n_children;
static final Callback AtkObjectCB_get_name;
- static final Callback AtkObjectCB_get_parent;
+ static final Callback AtkObjectCB_get_parent;
static final Callback AtkObjectCB_get_role;
static final Callback AtkObjectCB_ref_child;
static final Callback AtkObjectCB_ref_state_set;
static final Callback AtkObjectCB_get_attributes;
-
+
/* Selection callbacks */
static final Callback AtkSelectionCB_is_child_selected;
static final Callback AtkSelectionCB_ref_selection;
@@ -115,7 +115,7 @@ class AccessibleFactory {
static final Callback AtkTableCB_add_row_selection;
static final Callback AtkTableCB_remove_column_selection;
static final Callback AtkTableCB_remove_row_selection;
-
+
/* Text callbacks */
static final Callback AtkTextCB_get_character_extents;
static final Callback AtkTextCB_get_range_extents;
@@ -135,18 +135,18 @@ class AccessibleFactory {
static final Callback AtkTextCB_get_character_at_offset;
static final Callback AtkTextCB_get_character_count;
static final Callback AtkTextCB_get_bounded_ranges;
-
+
/* Value callbacks */
static final Callback AtkValueCB_get_current_value;
static final Callback AtkValueCB_get_maximum_value;
static final Callback AtkValueCB_get_minimum_value;
static final Callback AtkValueCB_set_current_value;
-
+
static final Callback GObjectClass_finalize;
static final Callback AtkObjectFactoryCB_create_accessible;
-
+
/* interface initialization callbacks */
- static final Callback InitActionIfaceCB;
+ static final Callback InitActionIfaceCB;
static final Callback InitComponentIfaceCB;
static final Callback InitEditableTextIfaceCB;
static final Callback InitHypertextIfaceCB;
@@ -249,7 +249,7 @@ class AccessibleFactory {
InitActionIfaceCB = newCallback (AccessibleFactory.class, "initActionIfaceCB", 1); //$NON-NLS-1$
GInterfaceInfo interfaceInfo = new GInterfaceInfo ();
interfaceInfo.interface_init = InitActionIfaceCB.getAddress ();
- ActionIfaceDefinition = OS.g_malloc (GInterfaceInfo.sizeof);
+ ActionIfaceDefinition = OS.g_malloc (GInterfaceInfo.sizeof);
OS.memmove (ActionIfaceDefinition, interfaceInfo, GInterfaceInfo.sizeof);
/* Component interface */
InitComponentIfaceCB = newCallback (AccessibleFactory.class, "initComponentIfaceCB", 1); //$NON-NLS-1$
@@ -261,37 +261,37 @@ class AccessibleFactory {
InitEditableTextIfaceCB = newCallback (AccessibleFactory.class, "initEditableTextIfaceCB", 1); //$NON-NLS-1$
interfaceInfo = new GInterfaceInfo ();
interfaceInfo.interface_init = InitEditableTextIfaceCB.getAddress ();
- EditableTextIfaceDefinition = OS.g_malloc (GInterfaceInfo.sizeof);
+ EditableTextIfaceDefinition = OS.g_malloc (GInterfaceInfo.sizeof);
OS.memmove (EditableTextIfaceDefinition, interfaceInfo, GInterfaceInfo.sizeof);
/* Hypertext interface */
InitHypertextIfaceCB = newCallback (AccessibleFactory.class, "initHypertextIfaceCB", 1); //$NON-NLS-1$
interfaceInfo = new GInterfaceInfo ();
interfaceInfo.interface_init = InitHypertextIfaceCB.getAddress ();
- HypertextIfaceDefinition = OS.g_malloc (GInterfaceInfo.sizeof);
+ HypertextIfaceDefinition = OS.g_malloc (GInterfaceInfo.sizeof);
OS.memmove (HypertextIfaceDefinition, interfaceInfo, GInterfaceInfo.sizeof);
/* Selection interface */
InitSelectionIfaceCB = newCallback (AccessibleFactory.class, "initSelectionIfaceCB", 1); //$NON-NLS-1$
interfaceInfo = new GInterfaceInfo ();
interfaceInfo.interface_init = InitSelectionIfaceCB.getAddress ();
- SelectionIfaceDefinition = OS.g_malloc (GInterfaceInfo.sizeof);
+ SelectionIfaceDefinition = OS.g_malloc (GInterfaceInfo.sizeof);
OS.memmove (SelectionIfaceDefinition, interfaceInfo, GInterfaceInfo.sizeof);
/* Text interface */
InitTableIfaceCB = newCallback (AccessibleFactory.class, "initTableIfaceCB", 1); //$NON-NLS-1$
interfaceInfo = new GInterfaceInfo ();
interfaceInfo.interface_init = InitTableIfaceCB.getAddress ();
- TableIfaceDefinition = OS.g_malloc (GInterfaceInfo.sizeof);
+ TableIfaceDefinition = OS.g_malloc (GInterfaceInfo.sizeof);
OS.memmove (TableIfaceDefinition, interfaceInfo, GInterfaceInfo.sizeof);
/* Text interface */
InitTextIfaceCB = newCallback (AccessibleFactory.class, "initTextIfaceCB", 1); //$NON-NLS-1$
interfaceInfo = new GInterfaceInfo ();
interfaceInfo.interface_init = InitTextIfaceCB.getAddress ();
- TextIfaceDefinition = OS.g_malloc (GInterfaceInfo.sizeof);
+ TextIfaceDefinition = OS.g_malloc (GInterfaceInfo.sizeof);
OS.memmove (TextIfaceDefinition, interfaceInfo, GInterfaceInfo.sizeof);
/* Value interface */
InitValueIfaceCB = newCallback (AccessibleFactory.class, "initValueIfaceCB", 1); //$NON-NLS-1$
interfaceInfo = new GInterfaceInfo ();
interfaceInfo.interface_init = InitValueIfaceCB.getAddress ();
- ValueIfaceDefinition = OS.g_malloc (GInterfaceInfo.sizeof);
+ ValueIfaceDefinition = OS.g_malloc (GInterfaceInfo.sizeof);
OS.memmove (ValueIfaceDefinition, interfaceInfo, GInterfaceInfo.sizeof);
}
@@ -308,7 +308,7 @@ class AccessibleFactory {
OS.memmove (buffer, typeName, widgetTypeNameLength);
return new String(Converter.mbcsToWcs(null, buffer));
}
-
+
static long /*int*/ getParentType (long /*int*/ widgetType) {
LONG type = null;
while (widgetType != 0 && (type = Factories.get(new LONG(widgetType))) == null) {
@@ -323,8 +323,8 @@ class AccessibleFactory {
if (accessible == null) {
/*
* we don't care about this control, so create it with the parent's
- * type so that its accessibility callbacks will not pass though here
- */
+ * type so that its accessibility callbacks will not pass though here
+ */
long /*int*/ result = OS.g_object_new (getParentType(OS.G_OBJECT_TYPE (widget)), 0);
ATK.atk_object_initialize (result, widget);
return result;
@@ -342,12 +342,12 @@ class AccessibleFactory {
accessible.addRelations ();
return object.handle;
}
-
+
static AccessibleObject createChildAccessible (Accessible accessible, int childId) {
long /*int*/ childType = getType (CHILD_TYPENAME, accessible, ATK.GTK_TYPE_ACCESSIBLE(), childId);
return new AccessibleObject(childType, 0, accessible, true);
}
-
+
static void createAccessible (Accessible accessible) {
long /*int*/ controlHandle = accessible.getControlHandle ();
OS.gtk_widget_get_accessible(controlHandle);
@@ -431,7 +431,7 @@ class AccessibleFactory {
typeInfo.base_init = GTypeInfo_base_init_type.getAddress ();
typeInfo.class_size = (short) query.class_size;
typeInfo.instance_size = (short) query.instance_size;
- long /*int*/ definition = OS.g_malloc (GTypeInfo.sizeof);
+ long /*int*/ definition = OS.g_malloc (GTypeInfo.sizeof);
OS.memmove (definition, typeInfo, GTypeInfo.sizeof);
type = OS.g_type_register_static (parentType, nameBytes, definition, 0);
OS.g_type_add_interface_static (type, ATK.ATK_TYPE_COMPONENT(), ComponentIfaceDefinition);
@@ -450,10 +450,10 @@ class AccessibleFactory {
AtkObjectFactoryClass objectClass = new AtkObjectFactoryClass ();
ATK.memmove (objectClass, klass);
objectClass.create_accessible = AtkObjectFactoryCB_create_accessible.getAddress ();
- ATK.memmove (klass, objectClass);
+ ATK.memmove (klass, objectClass);
return 0;
}
-
+
static long /*int*/ gTypeInfo_base_init_type (long /*int*/ klass) {
AtkObjectClass objectClass = new AtkObjectClass ();
ATK.memmove (objectClass, klass);
@@ -470,23 +470,23 @@ class AccessibleFactory {
GObjectClass objectClassStruct = new GObjectClass ();
OS.memmove (objectClassStruct, gObjectClass);
objectClassStruct.finalize = GObjectClass_finalize.getAddress ();
- OS.memmove (gObjectClass, objectClassStruct);
+ OS.memmove (gObjectClass, objectClassStruct);
ATK.memmove (klass, objectClass);
return 0;
}
-
+
static long /*int*/ initActionIfaceCB (long /*int*/ iface) {
AtkActionIface inter = new AtkActionIface ();
ATK.memmove (inter, iface);
- inter.do_action = AtkActionCB_do_action.getAddress ();
+ inter.do_action = AtkActionCB_do_action.getAddress ();
inter.get_n_actions = AtkActionCB_get_n_actions.getAddress ();
inter.get_description = AtkActionCB_get_description.getAddress ();
- inter.get_keybinding = AtkActionCB_get_keybinding.getAddress ();
+ inter.get_keybinding = AtkActionCB_get_keybinding.getAddress ();
inter.get_name = AtkActionCB_get_name.getAddress ();
ATK.memmove (iface, inter);
return 0;
}
-
+
static long /*int*/ initComponentIfaceCB (long /*int*/ iface) {
AtkComponentIface inter = new AtkComponentIface ();
ATK.memmove (inter, iface);
@@ -515,7 +515,7 @@ class AccessibleFactory {
static long /*int*/ initHypertextIfaceCB (long /*int*/ iface) {
AtkHypertextIface inter = new AtkHypertextIface ();
ATK.memmove (inter, iface);
- inter.get_link = AtkHypertextCB_get_link.getAddress ();
+ inter.get_link = AtkHypertextCB_get_link.getAddress ();
inter.get_link_index = AtkHypertextCB_get_link_index.getAddress ();
inter.get_n_links = AtkHypertextCB_get_n_links.getAddress ();
ATK.memmove (iface, inter);
@@ -613,8 +613,8 @@ class AccessibleFactory {
typeInfo.base_init = GTypeInfo_base_init_factory.getAddress ();
typeInfo.class_size = (short)ATK.AtkObjectFactoryClass_sizeof ();
typeInfo.instance_size = (short)ATK.AtkObjectFactory_sizeof ();
- long /*int*/ info = OS.g_malloc (GTypeInfo.sizeof);
- OS.memmove (info, typeInfo, GTypeInfo.sizeof);
+ long /*int*/ info = OS.g_malloc (GTypeInfo.sizeof);
+ OS.memmove (info, typeInfo, GTypeInfo.sizeof);
long /*int*/ swtFactoryType = OS.g_type_register_static (ATK.ATK_TYPE_OBJECT_FACTORY(), factoryName, info, 0);
long /*int*/ parentType = ATK.atk_object_factory_get_accessible_type(factory);
ATK.atk_registry_set_factory_type (registry, widgetType, swtFactoryType);
@@ -623,7 +623,7 @@ class AccessibleFactory {
if (AccessibleObject.DEBUG) AccessibleObject.print("-->Register=" + accessible.control + " " + widget); //$NON-NLS-1$
Accessibles.put (new LONG (widget), accessible);
}
-
+
static void unregisterAccessible (Accessible accessible) {
long /*int*/ widget = accessible.getControlHandle ();
Accessibles.remove (new LONG (widget));
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleObject.java b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleObject.java
index d39bd558cd..71d59754e5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleObject.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Accessibility/gtk/org/eclipse/swt/accessibility/AccessibleObject.java
@@ -29,7 +29,7 @@ class AccessibleObject {
/*
* a lightweight object does not correspond to a concrete gtk widget, but
* to a logical child of a widget (eg.- a CTabItem, which is simply drawn)
- */
+ */
boolean isLightweight = false;
static long /*int*/ actionNamePtr = -1;
@@ -38,7 +38,7 @@ class AccessibleObject {
static long /*int*/ namePtr = -1;
static final Map<LONG, AccessibleObject> AccessibleObjects = new HashMap<LONG, AccessibleObject> (9);
static final boolean DEBUG = Device.DEBUG;
-
+
static final int ROW_ROLE;
static {
@@ -60,11 +60,11 @@ class AccessibleObject {
AccessibleObjects.put (new LONG (handle), this);
if (DEBUG) print("new AccessibleObject: " + handle + " control=" + accessible.control + " lw=" + isLightweight);
}
-
+
static void print (String str) {
System.out.println (str);
}
-
+
static int size(Collection<?> listeners) {
return listeners == null ? 0 : listeners.size();
}
@@ -77,7 +77,7 @@ class AccessibleObject {
}
return null;
}
-
+
static long /*int*/ atkAction_do_action (long /*int*/ atkObject, long /*int*/ index) {
if (DEBUG) print ("-->atkAction_do_action");
AccessibleObject object = getAccessibleObject (atkObject);
@@ -100,7 +100,7 @@ class AccessibleObject {
if (iface != null && iface.do_action != 0) {
parentResult = ATK.call (iface.do_action, atkObject, index);
}
- return parentResult;
+ return parentResult;
}
static long /*int*/ atkAction_get_n_actions (long /*int*/ atkObject) {
@@ -124,9 +124,9 @@ class AccessibleObject {
if (iface != null && iface.get_n_actions != 0) {
parentResult = ATK.call (iface.get_n_actions, atkObject);
}
- return parentResult;
+ return parentResult;
}
-
+
static long /*int*/ atkAction_get_description (long /*int*/ atkObject, long /*int*/ index) {
if (DEBUG) print ("-->atkAction_get_description");
AccessibleObject object = getAccessibleObject (atkObject);
@@ -151,9 +151,9 @@ class AccessibleObject {
if (iface != null && iface.get_description != 0) {
parentResult = ATK.call (iface.get_description, atkObject, index);
}
- return parentResult;
+ return parentResult;
}
-
+
static long /*int*/ atkAction_get_keybinding (long /*int*/ atkObject, long /*int*/ index) {
if (DEBUG) print ("-->atkAction_get_keybinding");
AccessibleObject object = getAccessibleObject (atkObject);
@@ -175,7 +175,7 @@ class AccessibleObject {
}
if (event.result != null) {
if (keybindingPtr != -1) OS.g_free (keybindingPtr);
- return keybindingPtr = getStringPtr (event.result);
+ return keybindingPtr = getStringPtr (event.result);
}
}
List<AccessibleListener> listeners2 = accessible.accessibleListeners;
@@ -186,11 +186,11 @@ class AccessibleObject {
if (parentResult != 0) event.result = getString (parentResult);
for (int i = 0; i < length; i++) {
AccessibleListener listener = listeners2.get(i);
- listener.getKeyboardShortcut (event);
- }
+ listener.getKeyboardShortcut (event);
+ }
if (event.result != null) {
if (keybindingPtr != -1) OS.g_free (keybindingPtr);
- return keybindingPtr = getStringPtr (event.result);
+ return keybindingPtr = getStringPtr (event.result);
}
}
}
@@ -230,8 +230,8 @@ class AccessibleObject {
if (parentResult != 0) event.result = getString (parentResult);
for (int i = 0; i < length; i++) {
AccessibleControlListener listener = listeners2.get(i);
- listener.getDefaultAction (event);
- }
+ listener.getDefaultAction (event);
+ }
if (event.result != null) {
if (actionNamePtr != -1) OS.g_free (actionNamePtr);
return actionNamePtr = getStringPtr (event.result);
@@ -241,7 +241,7 @@ class AccessibleObject {
}
return parentResult;
}
-
+
static AtkComponentIface getComponentIface (long /*int*/ atkObject) {
if (ATK.g_type_is_a (OS.g_type_parent (OS.G_OBJECT_TYPE (atkObject)), ATK.ATK_TYPE_COMPONENT())) {
AtkComponentIface iface = new AtkComponentIface ();
@@ -281,7 +281,7 @@ class AccessibleObject {
if (coord_type == ATK.ATK_XY_WINDOW) {
windowPoint (object, topWindowX, topWindowY);
event.x += topWindowX [0];
- event.y += topWindowY [0];
+ event.y += topWindowY [0];
}
for (int i = 0; i < length; i++) {
AccessibleControlListener listener = listeners.get (i);
@@ -325,7 +325,7 @@ class AccessibleObject {
if (coord_type == ATK.ATK_XY_WINDOW) {
windowPoint (object, topWindowX, topWindowY);
event.x += topWindowX [0];
- event.y += topWindowY [0];
+ event.y += topWindowY [0];
}
for (int i = 0; i < length; i++) {
AccessibleControlListener listener = listeners.get (i);
@@ -388,17 +388,17 @@ class AccessibleObject {
if (coord_type == ATK.ATK_XY_WINDOW) {
windowPoint (object, topWindowX, topWindowY);
event.x += topWindowX [0];
- event.y += topWindowY [0];
+ event.y += topWindowY [0];
}
for (int i = 0; i < length; i++) {
AccessibleControlListener listener = listeners.get (i);
- listener.getChildAtPoint (event);
+ listener.getChildAtPoint (event);
}
if (event.childID == object.id) event.childID = ACC.CHILDID_SELF;
Accessible result = event.accessible;
AccessibleObject accObj = result != null ? result.getAccessibleObject() : object.getChildByID (event.childID);
if (accObj != null) {
- return OS.g_object_ref (accObj.handle);
+ return OS.g_object_ref (accObj.handle);
}
}
}
@@ -408,9 +408,9 @@ class AccessibleObject {
parentResult = ATK.call (iface.ref_accessible_at_point, atkObject, x, y, coord_type);
}
return parentResult;
- }
+ }
+
-
static AtkEditableTextIface getEditableTextIface (long /*int*/ atkObject) {
if (ATK.g_type_is_a (OS.g_type_parent (OS.G_OBJECT_TYPE (atkObject)), ATK.ATK_TYPE_EDITABLE_TEXT())) {
AtkEditableTextIface iface = new AtkEditableTextIface ();
@@ -419,7 +419,7 @@ class AccessibleObject {
}
return null;
}
-
+
// gboolean atk_editable_text_set_run_attributes(AtkEditableText *text, AtkAttributeSet *attrib_set, gint start_offset, gint end_offset);
static long /*int*/ atkEditableText_set_run_attributes (long /*int*/ atkObject, long /*int*/ attrib_set, long /*int*/ start_offset, long /*int*/ end_offset) {
if (DEBUG) print ("-->atkEditableText_set_run_attributes");
@@ -502,7 +502,7 @@ class AccessibleObject {
createFont = true;
}
} else if (name.equals(getString(ATK.atk_text_attribute_get_name(ATK.ATK_TEXT_ATTR_STRETCH)))) {
- //"ultra_condensed", "extra_condensed", "condensed", "semi_condensed", "normal", "semi_expanded", "expanded", "extra_expanded" or "ultra_expanded"
+ //"ultra_condensed", "extra_condensed", "condensed", "semi_condensed", "normal", "semi_expanded", "expanded", "extra_expanded" or "ultra_expanded"
int stretch = -1;
if (value.equals("ultra_condensed")) stretch = OS.PANGO_STRETCH_ULTRA_CONDENSED;
else if (value.equals("extra_condensed")) stretch = OS.PANGO_STRETCH_EXTRA_CONDENSED;
@@ -696,7 +696,7 @@ class AccessibleObject {
}
return parentResult;
}
-
+
// void atk_editable_text_delete_text (AtkEditableText *text, gint start_pos, gint end_pos);
static long /*int*/ atkEditableText_delete_text (long /*int*/ atkObject, long /*int*/ start_pos, long /*int*/ end_pos) {
if (DEBUG) print ("-->atkEditableText_delete_text");
@@ -750,7 +750,7 @@ class AccessibleObject {
}
return parentResult;
}
-
+
static AtkHypertextIface getHypertextIface (long /*int*/ atkObject) {
if (ATK.g_type_is_a (OS.g_type_parent (OS.G_OBJECT_TYPE (atkObject)), ATK.ATK_TYPE_HYPERTEXT())) {
AtkHypertextIface iface = new AtkHypertextIface ();
@@ -759,7 +759,7 @@ class AccessibleObject {
}
return null;
}
-
+
static long /*int*/ atkHypertext_get_link (long /*int*/ atkObject, long /*int*/ link_index) {
if (DEBUG) print ("-->atkHypertext_get_link");
AccessibleObject object = getAccessibleObject (atkObject);
@@ -835,7 +835,7 @@ class AccessibleObject {
}
return parentResult;
}
-
+
static AtkObjectClass getObjectClass (long /*int*/ atkObject) {
AtkObjectClass objectClass = new AtkObjectClass ();
ATK.memmove (objectClass, ATK.g_type_class_peek (OS.g_type_parent (OS.G_OBJECT_TYPE (atkObject))));
@@ -947,7 +947,7 @@ class AccessibleObject {
parentResult = OS.g_slist_append(parentResult, attrPtr);
}
//TODO - tabStops
-
+
/* Check for group attributes. */
int level = (event.groupLevel != -1) ? event.groupLevel : 0;
int setsize = (event.groupCount != -1) ? event.groupCount : 0;
@@ -989,7 +989,7 @@ class AccessibleObject {
ATK.memmove(attrPtr, attr, AtkAttribute.sizeof);
parentResult = OS.g_slist_append(parentResult, attrPtr);
}
-
+
if (event.attributes != null) {
int end = event.attributes.length / 2 * 2;
for (int i = 0; i < end; i+= 2) {
@@ -1023,7 +1023,7 @@ class AccessibleObject {
if (parentResult != 0) event.result = getString (parentResult);
for (int i = 0; i < length; i++) {
AccessibleListener listener = listeners.get (i);
- listener.getName (event);
+ listener.getName (event);
}
if (DEBUG) print ("---> " + event.result);
if (event.result == null) return parentResult;
@@ -1032,14 +1032,14 @@ class AccessibleObject {
}
}
return parentResult;
- }
+ }
static long /*int*/ atkObject_get_n_children (long /*int*/ atkObject) {
if (DEBUG) print ("-->atkObject_get_n_children: " + atkObject);
AccessibleObject object = getAccessibleObject (atkObject);
long /*int*/ parentResult = 0;
AtkObjectClass objectClass = getObjectClass (atkObject);
- if (objectClass.get_n_children != 0) {
+ if (objectClass.get_n_children != 0) {
parentResult = ATK.call (objectClass.get_n_children, atkObject);
}
if (object != null && object.id == ACC.CHILDID_SELF) {
@@ -1119,7 +1119,7 @@ class AccessibleObject {
event.detail = -1;
for (int i = 0; i < length; i++) {
AccessibleControlListener listener = listeners.get (i);
- listener.getRole (event);
+ listener.getRole (event);
}
if (DEBUG) print ("---> " + event.detail);
if (event.detail != -1) {
@@ -1204,14 +1204,14 @@ class AccessibleObject {
if (event.accessible != null) {
AccessibleObject accObject = event.accessible.getAccessibleObject();
if (accObject != null) {
- return OS.g_object_ref (accObject.handle);
+ return OS.g_object_ref (accObject.handle);
}
}
}
object.updateChildren ();
- AccessibleObject accObject = object.getChildByIndex ((int)/*64*/index);
+ AccessibleObject accObject = object.getChildByIndex ((int)/*64*/index);
if (accObject != null) {
- return OS.g_object_ref (accObject.handle);
+ return OS.g_object_ref (accObject.handle);
}
}
AtkObjectClass objectClass = getObjectClass (atkObject);
@@ -1224,7 +1224,7 @@ class AccessibleObject {
AccessibleObject object = getAccessibleObject (atkObject);
long /*int*/ parentResult = 0;
AtkObjectClass objectClass = getObjectClass (atkObject);
- if (objectClass.ref_state_set != 0) {
+ if (objectClass.ref_state_set != 0) {
parentResult = ATK.call (objectClass.ref_state_set, atkObject);
}
if (object != null) {
@@ -1239,7 +1239,7 @@ class AccessibleObject {
for (int i = 0; i < length; i++) {
AccessibleControlListener listener = listeners.get (i);
listener.getState (event);
- }
+ }
if (event.detail != -1) {
/* Convert from win32 state values to atk state values */
int state = event.detail;
@@ -1251,7 +1251,7 @@ class AccessibleObject {
if ((state & ACC.STATE_HOTTRACKED) != 0) ATK.atk_state_set_add_state (set, ATK.ATK_STATE_ARMED);
if ((state & ACC.STATE_INVISIBLE) == 0) ATK.atk_state_set_add_state (set, ATK.ATK_STATE_VISIBLE);
if ((state & ACC.STATE_MULTISELECTABLE) != 0) ATK.atk_state_set_add_state (set, ATK.ATK_STATE_MULTISELECTABLE);
- if ((state & ACC.STATE_OFFSCREEN) == 0) ATK.atk_state_set_add_state (set, ATK.ATK_STATE_SHOWING);
+ if ((state & ACC.STATE_OFFSCREEN) == 0) ATK.atk_state_set_add_state (set, ATK.ATK_STATE_SHOWING);
if ((state & ACC.STATE_PRESSED) != 0) ATK.atk_state_set_add_state (set, ATK.ATK_STATE_PRESSED);
if ((state & ACC.STATE_READONLY) == 0) ATK.atk_state_set_add_state (set, ATK.ATK_STATE_EDITABLE);
if ((state & ACC.STATE_SELECTABLE) != 0) ATK.atk_state_set_add_state (set, ATK.ATK_STATE_SELECTABLE);
@@ -1271,7 +1271,7 @@ class AccessibleObject {
}
return parentResult;
}
-
+
static AtkSelectionIface getSelectionIface (long /*int*/ atkObject) {
if (ATK.g_type_is_a (OS.g_type_parent (OS.G_OBJECT_TYPE (atkObject)), ATK.ATK_TYPE_SELECTION())) {
AtkSelectionIface iface = new AtkSelectionIface ();
@@ -1280,7 +1280,7 @@ class AccessibleObject {
}
return null;
}
-
+
static long /*int*/ atkSelection_is_child_selected (long /*int*/ atkObject, long /*int*/ index) {
if (DEBUG) print ("-->atkSelection_is_child_selected");
AccessibleObject object = getAccessibleObject (atkObject);
@@ -1293,7 +1293,7 @@ class AccessibleObject {
Accessible accessible = object.accessible;
List<AccessibleControlListener> listeners = accessible.accessibleControlListeners;
int length = size(listeners);
- if (length > 0) {
+ if (length > 0) {
AccessibleControlEvent event = new AccessibleControlEvent (accessible);
event.childID = object.id;
for (int i = 0; i < length; i++) {
@@ -1302,7 +1302,7 @@ class AccessibleObject {
}
Accessible result = event.accessible;
AccessibleObject accessibleObject = result != null ? result.getAccessibleObject() : object.getChildByID (event.childID);
- if (accessibleObject != null) {
+ if (accessibleObject != null) {
return accessibleObject.index == index ? 1 : 0;
}
}
@@ -1322,17 +1322,17 @@ class AccessibleObject {
Accessible accessible = object.accessible;
List<AccessibleControlListener> listeners = accessible.accessibleControlListeners;
int length = size(listeners);
- if (length > 0) {
+ if (length > 0) {
AccessibleControlEvent event = new AccessibleControlEvent (accessible);
event.childID = object.id;
for (int i = 0; i < length; i++) {
AccessibleControlListener listener = listeners.get (i);
listener.getSelection (event);
- }
+ }
AccessibleObject accObj = object.getChildByID (event.childID);
if (accObj != null) {
if (parentResult != 0) OS.g_object_unref (parentResult);
- OS.g_object_ref (accObj.handle);
+ OS.g_object_ref (accObj.handle);
return accObj.handle;
}
}
@@ -1348,7 +1348,7 @@ class AccessibleObject {
}
return null;
}
-
+
static long /*int*/ atkTable_ref_at (long /*int*/ atkObject, long /*int*/ row, long /*int*/ column) {
if (DEBUG) print ("-->atkTable_ref_at");
AccessibleObject object = getAccessibleObject (atkObject);
@@ -1642,7 +1642,7 @@ class AccessibleObject {
}
return parentResult;
}
-
+
static long /*int*/ atkTable_get_column_description (long /*int*/ atkObject, long /*int*/ column) {
if (DEBUG) print ("-->atkTable_get_column_description");
AccessibleObject object = getAccessibleObject (atkObject);
@@ -1670,7 +1670,7 @@ class AccessibleObject {
}
return parentResult;
}
-
+
static long /*int*/ atkTable_get_column_header (long /*int*/ atkObject, long /*int*/ column) {
if (DEBUG) print ("-->atkTable_get_column_header");
AccessibleObject object = getAccessibleObject (atkObject);
@@ -1699,7 +1699,7 @@ class AccessibleObject {
}
return parentResult;
}
-
+
static long /*int*/ atkTable_get_row_description (long /*int*/ atkObject, long /*int*/ row) {
if (DEBUG) print ("-->atkTable_get_row_description");
AccessibleObject object = getAccessibleObject (atkObject);
@@ -2012,7 +2012,7 @@ class AccessibleObject {
}
return null;
}
-
+
static long /*int*/ atkText_get_character_extents (long /*int*/ atkObject, long /*int*/ offset, long /*int*/ x, long /*int*/ y, long /*int*/ width, long /*int*/ height, long /*int*/ coords) {
if (DEBUG) print ("-->atkText_get_character_extents");
AccessibleObject object = getAccessibleObject (atkObject);
@@ -2037,7 +2037,7 @@ class AccessibleObject {
OS.memmove (x, new int[]{event.x}, 4);
OS.memmove (y, new int[]{event.y}, 4);
OS.memmove (width, new int[]{event.width}, 4);
- OS.memmove (height, new int[]{event.height}, 4);
+ OS.memmove (height, new int[]{event.height}, 4);
return 0;
}
}
@@ -2047,21 +2047,21 @@ class AccessibleObject {
}
return 0;
}
-
+
static String getString (long /*int*/ strPtr) {
int length = OS.strlen (strPtr);
byte [] buffer = new byte [length];
OS.memmove (buffer, strPtr, length);
return new String (Converter.mbcsToWcs (null, buffer));
}
-
+
static long /*int*/ getStringPtr (String str) {
- byte [] buffer = Converter.wcsToMbcs(null, str != null ? str : "", true);
+ byte [] buffer = Converter.wcsToMbcs(null, str != null ? str : "", true);
long /*int*/ ptr = OS.g_malloc(buffer.length);
OS.memmove(ptr, buffer, buffer.length);
return ptr;
}
-
+
static long /*int*/ atkText_get_range_extents (long /*int*/ atkObject, long /*int*/ start_offset, long /*int*/ end_offset, long /*int*/ coord_type, long /*int*/ rect) {
if (DEBUG) print ("-->atkText_get_range_extents");
AccessibleObject object = getAccessibleObject (atkObject);
@@ -2098,7 +2098,7 @@ class AccessibleObject {
}
return 0;
}
-
+
static long /*int*/ atkText_get_run_attributes (long /*int*/ atkObject, long /*int*/ offset, long /*int*/ start_offset, long /*int*/ end_offset) {
if (DEBUG) print ("-->atkText_get_run_attributes");
AccessibleObject object = getAccessibleObject (atkObject);
@@ -2156,31 +2156,31 @@ class AccessibleObject {
attr.value = ATK.g_strdup (OS.pango_font_description_get_family (font.handle));
ATK.memmove(attrPtr, attr, AtkAttribute.sizeof);
result = OS.g_slist_append(result, attrPtr);
-
+
attrPtr = OS.g_malloc(AtkAttribute.sizeof);
attr.name = ATK.g_strdup (ATK.atk_text_attribute_get_name(ATK.ATK_TEXT_ATTR_SIZE));
attr.value = getStringPtr (String.valueOf (OS.pango_font_description_get_size(font.handle) / OS.PANGO_SCALE));
ATK.memmove(attrPtr, attr, AtkAttribute.sizeof);
result = OS.g_slist_append(result, attrPtr);
-
+
attrPtr = OS.g_malloc(AtkAttribute.sizeof);
attr.name = ATK.g_strdup (ATK.atk_text_attribute_get_name(ATK.ATK_TEXT_ATTR_STYLE));
attr.value = ATK.g_strdup (ATK.atk_text_attribute_get_value(ATK.ATK_TEXT_ATTR_STYLE, OS.pango_font_description_get_style(font.handle)));
ATK.memmove(attrPtr, attr, AtkAttribute.sizeof);
result = OS.g_slist_append(result, attrPtr);
-
+
attrPtr = OS.g_malloc(AtkAttribute.sizeof);
attr.name = ATK.g_strdup (ATK.atk_text_attribute_get_name(ATK.ATK_TEXT_ATTR_VARIANT));
attr.value = ATK.g_strdup (ATK.atk_text_attribute_get_value(ATK.ATK_TEXT_ATTR_VARIANT, OS.pango_font_description_get_variant(font.handle)));
ATK.memmove(attrPtr, attr, AtkAttribute.sizeof);
result = OS.g_slist_append(result, attrPtr);
-
+
attrPtr = OS.g_malloc(AtkAttribute.sizeof);
attr.name = ATK.g_strdup (ATK.atk_text_attribute_get_name(ATK.ATK_TEXT_ATTR_STRETCH));
attr.value = ATK.g_strdup (ATK.atk_text_attribute_get_value(ATK.ATK_TEXT_ATTR_STRETCH, OS.pango_font_description_get_stretch(font.handle)));
ATK.memmove(attrPtr, attr, AtkAttribute.sizeof);
result = OS.g_slist_append(result, attrPtr);
-
+
attrPtr = OS.g_malloc(AtkAttribute.sizeof);
attr.name = ATK.g_strdup (ATK.atk_text_attribute_get_name(ATK.ATK_TEXT_ATTR_WEIGHT));
attr.value = getStringPtr (String.valueOf (OS.pango_font_description_get_weight(font.handle)));
@@ -2240,7 +2240,7 @@ class AccessibleObject {
if (coords == ATK.ATK_XY_WINDOW) {
windowPoint (object, topWindowX, topWindowY);
event.x += topWindowX [0];
- event.y += topWindowY [0];
+ event.y += topWindowY [0];
}
for (int i = 0; i < length; i++) {
AccessibleTextExtendedListener listener = listeners.get(i);
@@ -2307,7 +2307,7 @@ class AccessibleObject {
}
return parentResult;
}
-
+
static long /*int*/ atkText_set_caret_offset (long /*int*/ atkObject, long /*int*/ offset) {
if (DEBUG) print ("-->atkText_set_caret_offset");
AccessibleObject object = getAccessibleObject (atkObject);
@@ -2387,14 +2387,14 @@ class AccessibleObject {
event.offset = (int)/*64*/parentResult;
for (int i = 0; i < length; i++) {
AccessibleTextListener listener = listeners2.get(i);
- listener.getCaretOffset (event);
+ listener.getCaretOffset (event);
}
return event.offset;
}
}
- return parentResult;
+ return parentResult;
}
-
+
static long /*int*/ atkText_get_bounded_ranges (long /*int*/ atkObject, long /*int*/ rect, long /*int*/ coord_type, long /*int*/ x_clip_type, long /*int*/ y_clip_type) {
if (DEBUG) print ("-->atkText_get_bounded_ranges");
AccessibleObject object = getAccessibleObject (atkObject);
@@ -2455,7 +2455,7 @@ class AccessibleObject {
}
return parentResult;
}
-
+
static long /*int*/ atkText_get_character_at_offset (long /*int*/ atkObject, long /*int*/ offset) {
if (DEBUG) print ("-->atkText_get_character_at_offset");
AccessibleObject object = getAccessibleObject (atkObject);
@@ -2637,7 +2637,7 @@ class AccessibleObject {
if (end_offset == -1) {
end_offset = text.length ();
} else {
- end_offset = Math.min (end_offset, text.length ());
+ end_offset = Math.min (end_offset, text.length ());
}
start_offset = Math.min (start_offset, end_offset);
text = text.substring ((int)/*64*/start_offset, (int)/*64*/end_offset);
@@ -2664,13 +2664,13 @@ class AccessibleObject {
event.start = event.end = (int)/*64*/offset_value;
event.count = 1;
switch ((int)/*64*/boundary_type) {
- case ATK.ATK_TEXT_BOUNDARY_CHAR: event.type = ACC.TEXT_BOUNDARY_CHAR; break;
- case ATK.ATK_TEXT_BOUNDARY_WORD_START: event.type = ACC.TEXT_BOUNDARY_WORD; break;
- case ATK.ATK_TEXT_BOUNDARY_WORD_END: event.type = ACC.TEXT_BOUNDARY_WORD; break;
- case ATK.ATK_TEXT_BOUNDARY_SENTENCE_START: event.type = ACC.TEXT_BOUNDARY_SENTENCE; break;
- case ATK.ATK_TEXT_BOUNDARY_SENTENCE_END: event.type = ACC.TEXT_BOUNDARY_SENTENCE; break;
- case ATK.ATK_TEXT_BOUNDARY_LINE_START: event.type = ACC.TEXT_BOUNDARY_LINE; break;
- case ATK.ATK_TEXT_BOUNDARY_LINE_END: event.type = ACC.TEXT_BOUNDARY_LINE; break;
+ case ATK.ATK_TEXT_BOUNDARY_CHAR: event.type = ACC.TEXT_BOUNDARY_CHAR; break;
+ case ATK.ATK_TEXT_BOUNDARY_WORD_START: event.type = ACC.TEXT_BOUNDARY_WORD; break;
+ case ATK.ATK_TEXT_BOUNDARY_WORD_END: event.type = ACC.TEXT_BOUNDARY_WORD; break;
+ case ATK.ATK_TEXT_BOUNDARY_SENTENCE_START: event.type = ACC.TEXT_BOUNDARY_SENTENCE; break;
+ case ATK.ATK_TEXT_BOUNDARY_SENTENCE_END: event.type = ACC.TEXT_BOUNDARY_SENTENCE; break;
+ case ATK.ATK_TEXT_BOUNDARY_LINE_START: event.type = ACC.TEXT_BOUNDARY_LINE; break;
+ case ATK.ATK_TEXT_BOUNDARY_LINE_END: event.type = ACC.TEXT_BOUNDARY_LINE; break;
}
int eventStart = event.start;
int eventEnd = event.end;
@@ -2679,8 +2679,8 @@ class AccessibleObject {
listener.getText(event);
}
switch ((int)/*64*/boundary_type) {
- case ATK.ATK_TEXT_BOUNDARY_WORD_START:
- case ATK.ATK_TEXT_BOUNDARY_SENTENCE_START:
+ case ATK.ATK_TEXT_BOUNDARY_WORD_START:
+ case ATK.ATK_TEXT_BOUNDARY_SENTENCE_START:
case ATK.ATK_TEXT_BOUNDARY_LINE_START:
if (event.end < charCount) {
int start = event.start;
@@ -2701,8 +2701,8 @@ class AccessibleObject {
}
}
break;
- case ATK.ATK_TEXT_BOUNDARY_WORD_END:
- case ATK.ATK_TEXT_BOUNDARY_SENTENCE_END:
+ case ATK.ATK_TEXT_BOUNDARY_WORD_END:
+ case ATK.ATK_TEXT_BOUNDARY_SENTENCE_END:
case ATK.ATK_TEXT_BOUNDARY_LINE_END:
if (0 < event.start) {
int end = event.end;
@@ -2761,7 +2761,7 @@ class AccessibleObject {
break;
}
case ATK.ATK_TEXT_BOUNDARY_WORD_END: {
- int previousWordEnd = previousIndexOfNotChar (text, " \n", offset);
+ int previousWordEnd = previousIndexOfNotChar (text, " \n", offset);
if (previousWordEnd == -1 || previousWordEnd != offset - 1) {
offset = nextIndexOfNotChar (text, " \n", offset);
}
@@ -2890,7 +2890,7 @@ class AccessibleObject {
OS.memmove (end_offset, new int[] {endBounds}, 4);
text = text.substring (startBounds, endBounds);
return getStringPtr (text);
- }
+ }
}
AtkTextIface iface = getTextIface (atkObject);
if (iface != null && iface.get_text_after_offset != 0) {
@@ -2912,13 +2912,13 @@ class AccessibleObject {
event.start = event.end = (int)/*64*/offset_value;
event.count = 0;
switch ((int)/*64*/boundary_type) {
- case ATK.ATK_TEXT_BOUNDARY_CHAR: event.type = ACC.TEXT_BOUNDARY_CHAR; break;
- case ATK.ATK_TEXT_BOUNDARY_WORD_START: event.type = ACC.TEXT_BOUNDARY_WORD; break;
- case ATK.ATK_TEXT_BOUNDARY_WORD_END: event.type = ACC.TEXT_BOUNDARY_WORD; break;
- case ATK.ATK_TEXT_BOUNDARY_SENTENCE_START: event.type = ACC.TEXT_BOUNDARY_SENTENCE; break;
- case ATK.ATK_TEXT_BOUNDARY_SENTENCE_END: event.type = ACC.TEXT_BOUNDARY_SENTENCE; break;
- case ATK.ATK_TEXT_BOUNDARY_LINE_START: event.type = ACC.TEXT_BOUNDARY_LINE; break;
- case ATK.ATK_TEXT_BOUNDARY_LINE_END: event.type = ACC.TEXT_BOUNDARY_LINE; break;
+ case ATK.ATK_TEXT_BOUNDARY_CHAR: event.type = ACC.TEXT_BOUNDARY_CHAR; break;
+ case ATK.ATK_TEXT_BOUNDARY_WORD_START: event.type = ACC.TEXT_BOUNDARY_WORD; break;
+ case ATK.ATK_TEXT_BOUNDARY_WORD_END: event.type = ACC.TEXT_BOUNDARY_WORD; break;
+ case ATK.ATK_TEXT_BOUNDARY_SENTENCE_START: event.type = ACC.TEXT_BOUNDARY_SENTENCE; break;
+ case ATK.ATK_TEXT_BOUNDARY_SENTENCE_END: event.type = ACC.TEXT_BOUNDARY_SENTENCE; break;
+ case ATK.ATK_TEXT_BOUNDARY_LINE_START: event.type = ACC.TEXT_BOUNDARY_LINE; break;
+ case ATK.ATK_TEXT_BOUNDARY_LINE_END: event.type = ACC.TEXT_BOUNDARY_LINE; break;
}
int eventStart = event.start;
int eventEnd = event.end;
@@ -2927,8 +2927,8 @@ class AccessibleObject {
listener.getText(event);
}
switch ((int)/*64*/boundary_type) {
- case ATK.ATK_TEXT_BOUNDARY_WORD_START:
- case ATK.ATK_TEXT_BOUNDARY_SENTENCE_START:
+ case ATK.ATK_TEXT_BOUNDARY_WORD_START:
+ case ATK.ATK_TEXT_BOUNDARY_SENTENCE_START:
case ATK.ATK_TEXT_BOUNDARY_LINE_START:
if (event.end < charCount) {
int start = event.start;
@@ -2949,8 +2949,8 @@ class AccessibleObject {
}
}
break;
- case ATK.ATK_TEXT_BOUNDARY_WORD_END:
- case ATK.ATK_TEXT_BOUNDARY_SENTENCE_END:
+ case ATK.ATK_TEXT_BOUNDARY_WORD_END:
+ case ATK.ATK_TEXT_BOUNDARY_SENTENCE_END:
case ATK.ATK_TEXT_BOUNDARY_LINE_END:
if (0 < event.start) {
int end = event.end;
@@ -3081,7 +3081,7 @@ class AccessibleObject {
OS.memmove (end_offset, new int[] {endBounds}, 4);
text = text.substring (startBounds, endBounds);
return getStringPtr (text);
- }
+ }
}
AtkTextIface iface = getTextIface (atkObject);
if (iface != null && iface.get_text_at_offset != 0) {
@@ -3103,13 +3103,13 @@ class AccessibleObject {
event.start = event.end = (int)/*64*/offset_value;
event.count = -1;
switch ((int)/*64*/boundary_type) {
- case ATK.ATK_TEXT_BOUNDARY_CHAR: event.type = ACC.TEXT_BOUNDARY_CHAR; break;
- case ATK.ATK_TEXT_BOUNDARY_WORD_START: event.type = ACC.TEXT_BOUNDARY_WORD; break;
- case ATK.ATK_TEXT_BOUNDARY_WORD_END: event.type = ACC.TEXT_BOUNDARY_WORD; break;
- case ATK.ATK_TEXT_BOUNDARY_SENTENCE_START: event.type = ACC.TEXT_BOUNDARY_SENTENCE; break;
- case ATK.ATK_TEXT_BOUNDARY_SENTENCE_END: event.type = ACC.TEXT_BOUNDARY_SENTENCE; break;
- case ATK.ATK_TEXT_BOUNDARY_LINE_START: event.type = ACC.TEXT_BOUNDARY_LINE; break;
- case ATK.ATK_TEXT_BOUNDARY_LINE_END: event.type = ACC.TEXT_BOUNDARY_LINE; break;
+ case ATK.ATK_TEXT_BOUNDARY_CHAR: event.type = ACC.TEXT_BOUNDARY_CHAR; break;
+ case ATK.ATK_TEXT_BOUNDARY_WORD_START: event.type = ACC.TEXT_BOUNDARY_WORD; break;
+ case ATK.ATK_TEXT_BOUNDARY_WORD_END: event.type = ACC.TEXT_BOUNDARY_WORD; break;
+ case ATK.ATK_TEXT_BOUNDARY_SENTENCE_START: event.type = ACC.TEXT_BOUNDARY_SENTENCE; break;
+ case ATK.ATK_TEXT_BOUNDARY_SENTENCE_END: event.type = ACC.TEXT_BOUNDARY_SENTENCE; break;
+ case ATK.ATK_TEXT_BOUNDARY_LINE_START: event.type = ACC.TEXT_BOUNDARY_LINE; break;
+ case ATK.ATK_TEXT_BOUNDARY_LINE_END: event.type = ACC.TEXT_BOUNDARY_LINE; break;
}
int eventStart = event.start;
int eventEnd = event.end;
@@ -3120,8 +3120,8 @@ class AccessibleObject {
OS.memmove (start_offset, new int[] {event.start}, 4);
OS.memmove (end_offset, new int[] {event.end}, 4);
switch ((int)/*64*/boundary_type) {
- case ATK.ATK_TEXT_BOUNDARY_WORD_START:
- case ATK.ATK_TEXT_BOUNDARY_SENTENCE_START:
+ case ATK.ATK_TEXT_BOUNDARY_WORD_START:
+ case ATK.ATK_TEXT_BOUNDARY_SENTENCE_START:
case ATK.ATK_TEXT_BOUNDARY_LINE_START:
if (event.end < charCount) {
int start = event.start;
@@ -3142,8 +3142,8 @@ class AccessibleObject {
}
}
break;
- case ATK.ATK_TEXT_BOUNDARY_WORD_END:
- case ATK.ATK_TEXT_BOUNDARY_SENTENCE_END:
+ case ATK.ATK_TEXT_BOUNDARY_WORD_END:
+ case ATK.ATK_TEXT_BOUNDARY_SENTENCE_END:
case ATK.ATK_TEXT_BOUNDARY_LINE_END:
if (0 < event.start) {
int end = event.end;
@@ -3285,7 +3285,7 @@ class AccessibleObject {
}
return 0;
}
-
+
static void setGValue (long /*int*/ value, Number number) {
if (number == null) return;
if (OS.G_VALUE_TYPE(value) != 0) OS.g_value_unset(value);
@@ -3312,7 +3312,7 @@ class AccessibleObject {
if (type == OS.G_TYPE_INT64()) return new Long(OS.g_value_get_int64(value));
return new Integer(OS.g_value_get_int(value));
}
-
+
static AtkValueIface getValueIface (long /*int*/ atkObject) {
if (ATK.g_type_is_a (OS.g_type_parent (OS.G_OBJECT_TYPE (atkObject)), ATK.ATK_TYPE_VALUE())) {
AtkValueIface iface = new AtkValueIface ();
@@ -3426,7 +3426,7 @@ class AccessibleObject {
if (control == null || control.isDisposed()) return null;
return object;
}
-
+
AccessibleObject getChildByID (int childId) {
if (childId == ACC.CHILDID_SELF) return this;
if (childId == ACC.CHILDID_NONE || childId == ACC.CHILDID_MULTIPLE) return null;
@@ -3438,12 +3438,12 @@ class AccessibleObject {
}
return null;
}
-
+
AccessibleObject getChildByIndex (int childIndex) {
if (children != null && childIndex < children.length) return children [childIndex];
return null;
}
-
+
String getText () {
List<AccessibleControlListener> listeners = accessible.accessibleControlListeners;
int length = size(listeners);
@@ -3465,7 +3465,7 @@ class AccessibleObject {
event.result = parentText;
for (int i = 0; i < length; i++) {
AccessibleControlListener listener = listeners.get (i);
- listener.getValue (event);
+ listener.getValue (event);
}
return event.result;
}
@@ -3506,7 +3506,7 @@ class AccessibleObject {
}
return 0;
}
-
+
static void windowPoint (AccessibleObject object, int [] x, int [] y) {
long /*int*/ widget;
if (OS.GTK_VERSION >= OS.VERSION(2, 22, 0)) {
@@ -3531,7 +3531,7 @@ class AccessibleObject {
long /*int*/ window = OS.gtk_widget_get_window (topLevel);
OS.gdk_window_get_origin (window, x, y);
}
-
+
static int nextIndexOfChar (String string, String searchChars, int startIndex) {
int result = string.length ();
for (int i = 0; i < searchChars.length (); i++) {
@@ -3544,10 +3544,10 @@ class AccessibleObject {
static int nextIndexOfNotChar (String string, String searchChars, int startIndex) {
int length = string.length ();
- int index = startIndex;
+ int index = startIndex;
while (index < length) {
char current = string.charAt (index);
- if (searchChars.indexOf (current) == -1) break;
+ if (searchChars.indexOf (current) == -1) break;
index++;
}
return index;
@@ -3567,15 +3567,15 @@ class AccessibleObject {
static int previousIndexOfNotChar (String string, String searchChars, int startIndex) {
if (startIndex < 0) return -1;
- int index = startIndex - 1;
+ int index = startIndex - 1;
while (index >= 0) {
char current = string.charAt (index);
- if (searchChars.indexOf (current) == -1) break;
+ if (searchChars.indexOf (current) == -1) break;
index--;
}
return index;
}
-
+
void addRelation (int type, Accessible target) {
OS.atk_object_add_relationship(handle, toATKRelation(type), target.getAccessibleObject().handle);
}
@@ -3595,15 +3595,15 @@ class AccessibleObject {
OS.g_object_unref(handle);
}
}
-
+
void removeRelation (int type, Accessible target) {
OS.atk_object_remove_relationship (handle, toATKRelation(type), target.getAccessibleObject().handle);
}
-
+
void selectionChanged () {
OS.g_signal_emit_by_name (handle, ATK.selection_changed);
}
-
+
void sendEvent(int event, Object eventData) {
switch (event) {
case ACC.EVENT_SELECTION_CHANGED:
@@ -3775,7 +3775,7 @@ class AccessibleObject {
e.childID = id;
for (int i = 0; i < length; i++) {
AccessibleTextListener listener = listeners2.get(i);
- listener.getCaretOffset (e);
+ listener.getCaretOffset (e);
}
}
}
@@ -3801,7 +3801,7 @@ class AccessibleObject {
}
}
}
-
+
void sendEvent(int event, Object eventData, int childID) {
updateChildren ();
AccessibleObject accObject = getChildByID (childID);
@@ -3809,7 +3809,7 @@ class AccessibleObject {
accObject.sendEvent(event, eventData);
}
}
-
+
void setFocus (int childID) {
updateChildren ();
AccessibleObject accObject = getChildByID (childID);
@@ -3818,7 +3818,7 @@ class AccessibleObject {
ATK.atk_object_notify_state_change(accObject.handle, ATK.ATK_STATE_FOCUSED, true);
}
}
-
+
void textCaretMoved(int index) {
OS.g_signal_emit_by_name (handle, ATK.text_caret_moved, index);
}
@@ -3834,7 +3834,7 @@ class AccessibleObject {
void textSelectionChanged() {
OS.g_signal_emit_by_name (handle, ATK.text_selection_changed);
}
-
+
void updateChildren () {
List<AccessibleControlListener> listeners = accessible.accessibleControlListeners;
int length = size(listeners);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java
index 3ff2dbcc9a..426c621808 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/Clipboard.java
@@ -624,7 +624,7 @@ private int[] getAvailableClipboardTypes () {
OS.gdk_threads_leave();
if (selection_data != 0) {
try {
- int length = OS.gtk_selection_data_get_length(selection_data);
+ int length = OS.gtk_selection_data_get_length(selection_data);
int format = OS.gtk_selection_data_get_format(selection_data);
long /*int*/ data = OS.gtk_selection_data_get_data(selection_data);
if (length != 0) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java
index cf10c86ea1..16ec698799 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/gtk/org/eclipse/swt/browser/MozillaDelegate.java
@@ -77,7 +77,7 @@ static Browser findBrowser (long /*int*/ handle) {
*/
long /*int*/ parent = OS.gtk_widget_get_parent (handle);
Display display = Display.getCurrent ();
- return (Browser)display.findWidget (parent);
+ return (Browser)display.findWidget (parent);
}
static String getCacheParentPath () {
@@ -111,7 +111,7 @@ static String getLibraryName (String mozillaPath) {
static String getProfilePath () {
String baseDir = System.getProperty ("user.home"); //$NON-NLS-1$
-
+
/*
* Bug in Sun JRE. Under some circumstances the value of java property "user.home" is
* "?", even when the HOME environment variable has a valid value. If this happens
@@ -126,7 +126,7 @@ static String getProfilePath () {
baseDir = new String (mbcsToWcs (null, bytes));
}
}
-
+
return baseDir + Mozilla.SEPARATOR_OS + ".mozilla" + Mozilla.SEPARATOR_OS + "eclipse"; //$NON-NLS-1$ //$NON-NLS-2$
}
@@ -253,7 +253,7 @@ long /*int*/ gtk_event (long /*int*/ handle, long /*int*/ gdkEvent, long /*int*/
if (!hasFocus) browser.setFocus ();
}
- /*
+ /*
* Stop the propagation of events that are not consumed by Mozilla, before
* they reach the parent embedder. These event have already been received.
*/
@@ -285,7 +285,7 @@ void handleFocus () {
}
void handleMouseDown () {
- int shellStyle = browser.getShell ().getStyle ();
+ int shellStyle = browser.getShell ().getStyle ();
if ((shellStyle & SWT.ON_TOP) != 0 && (((shellStyle & SWT.NO_FOCUS) == 0) || ((browser.getStyle () & SWT.NO_FOCUS) == 0))) {
browser.getDisplay ().asyncExec (new Runnable () {
public void run () {
@@ -322,15 +322,15 @@ void init () {
if (list != 0) {
mozillaHandle = OS.g_list_data (list);
OS.g_list_free (list);
-
- if (mozillaHandle != 0) {
+
+ if (mozillaHandle != 0) {
/* Note. Callback to get events before Mozilla receives and consumes them. */
OS.g_signal_connect (mozillaHandle, OS.event, eventProc, 0);
-
- /*
- * Note. Callback to get the events not consumed by Mozilla - and to block
- * them so that they don't get propagated to the parent handle twice.
- * This hook is set after Mozilla and is therefore called after Mozilla's
+
+ /*
+ * Note. Callback to get the events not consumed by Mozilla - and to block
+ * them so that they don't get propagated to the parent handle twice.
+ * This hook is set after Mozilla and is therefore called after Mozilla's
* handler because GTK dispatches events in their order of registration.
*/
OS.g_signal_connect (mozillaHandle, OS.key_press_event, eventProc, STOP_PROPOGATE);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/glx/org/eclipse/swt/internal/opengl/glx/GLX.java b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/glx/org/eclipse/swt/internal/opengl/glx/GLX.java
index 9be7a73ac2..5a868f9984 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/glx/org/eclipse/swt/internal/opengl/glx/GLX.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/glx/org/eclipse/swt/internal/opengl/glx/GLX.java
@@ -56,7 +56,7 @@ public class GLX extends Platform {
public static final int GLX_MAX_PBUFFER_HEIGHT = 0x8017;
public static final int GLX_MAX_PBUFFER_PIXELS = 0x8018;
public static final int GLX_VISUAL_ID = 0x800B;
-
+
/*
** Error return values from glXGetConfig. Success is indicated by
** a value of 0.
@@ -68,29 +68,29 @@ public class GLX extends Platform {
public static final int GLX_BAD_CONTEXT = 5; /* returned only by import_context EXT? */
public static final int GLX_BAD_VALUE = 6; /* returned only by glXSwapIntervalSGI? */
public static final int GLX_BAD_ENUM = 7; /* unused? */
-
+
/* FBConfig attribute values */
-
+
/*
** Generic "don't care" value for glX ChooseFBConfig attributes (except
** GLX_LEVEL)
*/
public static final int GLX_DONT_CARE = 0xFFFFFFFF;
-
+
/* GLX_RENDER_TYPE bits */
public static final int GLX_RGBA_BIT = 0x00000001;
public static final int GLX_COLOR_INDEX_BIT = 0x00000002;
-
+
/* GLX_DRAWABLE_TYPE bits */
public static final int GLX_WINDOW_BIT = 0x00000001;
public static final int GLX_PIXMAP_BIT = 0x00000002;
public static final int GLX_PBUFFER_BIT = 0x00000004;
-
+
/* GLX_CONFIG_CAVEAT attribute values */
public static final int GLX_NONE = 0x8000;
public static final int GLX_SLOW_CONFIG = 0x8001;
public static final int GLX_NON_CONFORMANT_CONFIG = 0x800D;
-
+
/* GLX_X_VISUAL_TYPE attribute values */
public static final int GLX_TRUE_COLOR = 0x8002;
public static final int GLX_DIRECT_COLOR = 0x8003;
@@ -98,43 +98,43 @@ public class GLX extends Platform {
public static final int GLX_STATIC_COLOR = 0x8005;
public static final int GLX_GRAY_SCALE = 0x8006;
public static final int GLX_STATIC_GRAY = 0x8007;
-
+
/* GLX_TRANSPARENT_TYPE attribute values */
/* public static final int GLX_NONE 0x8000 */
public static final int GLX_TRANSPARENT_RGB = 0x8008;
public static final int GLX_TRANSPARENT_INDEX = 0x8009;
-
+
/* glXCreateGLXPbuffer attributes */
public static final int GLX_PRESERVED_CONTENTS = 0x801B;
public static final int GLX_LARGEST_PBUFFER = 0x801C;
public static final int GLX_PBUFFER_HEIGHT = 0x8040; /* New for GLX 1.3 */
public static final int GLX_PBUFFER_WIDTH = 0x8041; /* New for GLX 1.3 */
-
+
/* glXQueryGLXPBuffer attributes */
public static final int GLX_WIDTH = 0x801D;
public static final int GLX_HEIGHT = 0x801E;
public static final int GLX_EVENT_MASK = 0x801F;
-
+
/* glXCreateNewContext render_type attribute values */
public static final int GLX_RGBA_TYPE = 0x8014;
public static final int GLX_COLOR_INDEX_TYPE = 0x8015;
-
+
/* glXQueryContext attributes */
/* public static final int GLX_FBCONFIG_ID 0x8013 */
/* public static final int GLX_RENDER_TYPE 0x8011 */
public static final int GLX_SCREEN = 0x800C;
-
+
/* glXSelectEvent event mask bits */
public static final int GLX_PBUFFER_CLOBBER_MASK = 0x08000000;
-
+
/* GLXPbufferClobberEvent event_type values */
public static final int GLX_DAMAGED = 0x8020;
public static final int GLX_SAVED = 0x8021;
-
+
/* GLXPbufferClobberEvent draw_type values */
public static final int GLX_WINDOW = 0x8022;
public static final int GLX_PBUFFER = 0x8023;
-
+
/* GLXPbufferClobberEvent buffer_mask bits */
public static final int GLX_FRONT_LEFT_BUFFER_BIT = 0x00000001;
public static final int GLX_FRONT_RIGHT_BUFFER_BIT = 0x00000002;
@@ -144,12 +144,12 @@ public class GLX extends Platform {
public static final int GLX_DEPTH_BUFFER_BIT = 0x00000020;
public static final int GLX_STENCIL_BUFFER_BIT = 0x00000040;
public static final int GLX_ACCUM_BUFFER_BIT = 0x00000080;
-
+
/*
** Extension return values from glXGetConfig. These are also
** accepted as parameter values for glXChooseVisual.
*/
-
+
public static final int GLX_X_VISUAL_TYPE_EXT = 0x22; /* visual_info extension type */
public static final int GLX_TRANSPARENT_TYPE_EXT = 0x23; /* visual_info extension */
public static final int GLX_TRANSPARENT_INDEX_VALUE_EXT = 0x24; /* visual_info extension */
@@ -157,7 +157,7 @@ public class GLX extends Platform {
public static final int GLX_TRANSPARENT_GREEN_VALUE_EXT = 0x26; /* visual_info extension */
public static final int GLX_TRANSPARENT_BLUE_VALUE_EXT = 0x27; /* visual_info extension */
public static final int GLX_TRANSPARENT_ALPHA_VALUE_EXT = 0x28; /* visual_info extension */
-
+
/* Property values for visual_type */
public static final int GLX_TRUE_COLOR_EXT = 0x8002;
public static final int GLX_DIRECT_COLOR_EXT = 0x8003;
@@ -165,42 +165,42 @@ public class GLX extends Platform {
public static final int GLX_STATIC_COLOR_EXT = 0x8005;
public static final int GLX_GRAY_SCALE_EXT = 0x8006;
public static final int GLX_STATIC_GRAY_EXT = 0x8007;
-
+
/* Property values for transparent pixel */
public static final int GLX_NONE_EXT = 0x8000;
public static final int GLX_TRANSPARENT_RGB_EXT = 0x8008;
public static final int GLX_TRANSPARENT_INDEX_EXT = 0x8009;
-
+
/* Property values for visual_rating */
public static final int GLX_VISUAL_CAVEAT_EXT = 0x20; /* visual_rating extension type */
public static final int GLX_SLOW_VISUAL_EXT = 0x8001;
public static final int GLX_NON_CONFORMANT_VISUAL_EXT = 0x800D;
-
+
/*
** Names for attributes to glXGetClientString.
*/
public static final int GLX_VENDOR = 0x1;
public static final int GLX_VERSION = 0x2;
public static final int GLX_EXTENSIONS = 0x3;
-
+
/*
** Names for attributes to glXQueryContextInfoEXT.
*/
public static final int GLX_SHARE_CONTEXT_EXT = 0x800A; /* id of share context */
public static final int GLX_VISUAL_ID_EXT = 0x800B; /* id of context's visual */
public static final int GLX_SCREEN_EXT = 0x800C; /* screen number */
-
+
/*
- * GLX 1.4
+ * GLX 1.4
*/
public static final int GLX_SAMPLE_BUFFERS = 100000;
public static final int GLX_SAMPLES = 100001;
/*
- * GL bits
+ * GL bits
*/
public static final int GL_VIEWPORT = 0x0BA2;
-
+
public static final native int XVisualInfo_sizeof();
/**
* @param pname cast=(GLenum)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/gtk/org/eclipse/swt/opengl/GLCanvas.java b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/gtk/org/eclipse/swt/opengl/GLCanvas.java
index d21c24a095..73041f5bfa 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT OpenGL/gtk/org/eclipse/swt/opengl/GLCanvas.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT OpenGL/gtk/org/eclipse/swt/opengl/GLCanvas.java
@@ -18,7 +18,7 @@ import org.eclipse.swt.widgets.*;
/**
* GLCanvas is a widget capable of displaying OpenGL content.
- *
+ *
* @see GLData
* @see <a href="http://www.eclipse.org/swt/snippets/#opengl">OpenGL snippets</a>
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
@@ -43,11 +43,11 @@ public class GLCanvas extends Canvas {
*
* @exception IllegalArgumentException
* <ul><li>ERROR_NULL_ARGUMENT when the data is null
- * <li>ERROR_UNSUPPORTED_DEPTH when the requested attributes cannot be provided</ul>
+ * <li>ERROR_UNSUPPORTED_DEPTH when the requested attributes cannot be provided</ul>
* </ul>
*/
public GLCanvas (Composite parent, int style, GLData data) {
- super (parent, style);
+ super (parent, style);
if (data == null) SWT.error (SWT.ERROR_NULL_ARGUMENT);
int glxAttrib [] = new int [MAX_ATTRIBUTES];
int pos = 0;
@@ -105,7 +105,7 @@ public GLCanvas (Composite parent, int style, GLData data) {
glxAttrib [pos++] = 0;
OS.gtk_widget_realize (handle);
long /*int*/ window = OS.gtk_widget_get_window (handle);
-
+
long /*int*/ xDisplay;
if (OS.GTK_VERSION >= OS.VERSION(2, 24, 0)) {
xDisplay = OS.gdk_x11_display_get_xdisplay(OS.gdk_window_get_display(window));
@@ -189,7 +189,7 @@ public GLCanvas (Composite parent, int style, GLData data) {
/**
* Returns a GLData object describing the created context.
- *
+ *
* @return GLData description of the OpenGL context attributes
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
@@ -236,7 +236,7 @@ public GLData getGLData () {
/**
* Returns a boolean indicating whether the receiver's OpenGL context
* is the current context.
- *
+ *
* @return true if the receiver holds the current OpenGL context,
* false otherwise
* @exception SWTException <ul>
@@ -252,7 +252,7 @@ public boolean isCurrent () {
/**
* Sets the OpenGL context associated with this GLCanvas to be the
* current GL context.
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
@@ -268,7 +268,7 @@ public void setCurrent () {
/**
* Swaps the front and back color buffers.
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/Cairo.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/Cairo.java
index e5a840dc07..3680398a7e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/Cairo.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/Cairo.java
@@ -31,7 +31,7 @@ public class Cairo extends Platform {
public static final int CAIRO_ANTIALIAS_DEFAULT = 0;
public static final int CAIRO_ANTIALIAS_NONE = 1;
public static final int CAIRO_ANTIALIAS_GRAY = 2;
- public static final int CAIRO_ANTIALIAS_SUBPIXEL = 3;
+ public static final int CAIRO_ANTIALIAS_SUBPIXEL = 3;
public static final int CAIRO_CONTENT_COLOR = 0x1000;
public static final int CAIRO_CONTENT_ALPHA = 0x2000;
public static final int CAIRO_CONTENT_COLOR_ALPHA = 0x3000;
@@ -88,11 +88,11 @@ public class Cairo extends Platform {
public static final int CAIRO_PATH_LINE_TO = 1;
public static final int CAIRO_PATH_CURVE_TO = 2;
public static final int CAIRO_PATH_CLOSE_PATH = 3;
-
+
/** 64*/
public static final native int cairo_path_data_t_sizeof ();
public static final native int cairo_path_t_sizeof ();
-
+
/** Natives */
public static final native int CAIRO_VERSION_ENCODE(int major, int minor, int micro);
/**
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/Lock.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/Lock.java
index a1858daac5..53b3238819 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/Lock.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/Lock.java
@@ -21,7 +21,7 @@ public class Lock {
* Locks the monitor and returns the lock count. If
* the lock is owned by another thread, wait until
* the lock is released.
- *
+ *
* @return the lock count
*/
public int lock() {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/Platform.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/Platform.java
index 40b3ab87c2..37f4d3a111 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/Platform.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/Platform.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -20,7 +20,7 @@ public class Platform {
public static final Lock lock = new Lock ();
public static boolean isLoadable () {
- return Library.isLoadable ();
+ return Library.isLoadable ();
}
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java
index 0f936a65c4..a745b49e9c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/ATK.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -36,7 +36,7 @@ public class ATK extends OS {
public static final int ATK_RELATION_SUBWINDOW_OF = 9;
public static final int ATK_RELATION_EMBEDS = 10;
public static final int ATK_RELATION_EMBEDDED_BY = 11;
- public static final int ATK_RELATION_POPUP_FOR = 12;
+ public static final int ATK_RELATION_POPUP_FOR = 12;
public static final int ATK_RELATION_PARENT_WINDOW_OF = 13;
public static final int ATK_RELATION_DESCRIBED_BY = 14;
public static final int ATK_RELATION_DESCRIPTION_FOR = 15;
@@ -150,7 +150,7 @@ public class ATK extends OS {
public static final int ATK_TEXT_ATTR_VARIANT = 26;
public static final int ATK_TEXT_ATTR_STYLE = 27;
public static final int ATK_XY_WINDOW = 1;
-
+
/** Signals */
public static final byte[] selection_changed = OS.ascii ("selection_changed");
public static final byte[] active_descendant_changed = OS.ascii ("active_descendant_changed");
@@ -172,7 +172,7 @@ public class ATK extends OS {
public static final byte[] row_deleted = OS.ascii ("row-deleted");
public static final byte[] row_inserted = OS.ascii ("row-inserted");
public static final byte[] focus_event = OS.ascii ("focus-event");
-
+
/** Properties */
public static final byte[] accessible_name = OS.ascii ("accessible-name");
public static final byte[] accessible_description = OS.ascii ("accessible-description");
@@ -188,14 +188,14 @@ public class ATK extends OS {
public static final byte[] accessible_table_row_description = OS.ascii ("accessible-table-row-description");
public static final byte[] accessible_table_row_header = OS.ascii ("accessible-table-row-header");
public static final byte[] accessible_table_summary = OS.ascii ("accessible-table-summary");
-
+
/** 64 bit */
public static final native int AtkObjectFactory_sizeof ();
public static final native int AtkObjectFactoryClass_sizeof ();
public static final native int AtkAttribute_sizeof ();
public static final native int AtkTextRange_sizeof ();
public static final native int AtkTextRectangle_sizeof ();
-
+
/** Natives */
/** @method flags=const */
@@ -447,7 +447,7 @@ public static final native void memmove (AtkEditableTextIface dest, long /*int*/
public static final native void memmove (AtkHypertextIface dest, long /*int*/ src);
public static final native void memmove (AtkObjectClass dest, long /*int*/ src);
public static final native void memmove (AtkObjectFactoryClass dest, long /*int*/ src);
-public static final native void memmove (AtkSelectionIface dest, long /*int*/ src);
+public static final native void memmove (AtkSelectionIface dest, long /*int*/ src);
public static final native void memmove (AtkTableIface dest, long /*int*/ src);
public static final native void memmove (AtkTextIface dest, long /*int*/ src);
public static final native void memmove (AtkValueIface dest, long /*int*/ src);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkActionIface.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkActionIface.java
index 7c554a3349..31d97a9547 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkActionIface.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkActionIface.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -28,7 +28,7 @@ public class AtkActionIface {
/** @field cast=(const gchar *(*)()) */
public long /*int*/ get_keybinding;
/** @field cast=(gboolean (*)()) */
- public long /*int*/ set_description;
+ public long /*int*/ set_description;
// AtkFunction pad1;
// AtkFunction pad2;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkAttribute.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkAttribute.java
index 2a4e93b5cf..c26ceef13b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkAttribute.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkAttribute.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkComponentIface.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkComponentIface.java
index cede8575c0..1c3ab2276e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkComponentIface.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkComponentIface.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkEditableTextIface.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkEditableTextIface.java
index a51c354505..75750df4e9 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkEditableTextIface.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkEditableTextIface.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkHypertextIface.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkHypertextIface.java
index c379faf918..48a73e40ec 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkHypertextIface.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkHypertextIface.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkObjectClass.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkObjectClass.java
index dface5134a..726d1c0f59 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkObjectClass.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkObjectClass.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkObjectFactoryClass.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkObjectFactoryClass.java
index 062051b4f0..2395abaf79 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkObjectFactoryClass.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkObjectFactoryClass.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkSelectionIface.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkSelectionIface.java
index e2b2b7a4ce..0b6f9f805e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkSelectionIface.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkSelectionIface.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTableIface.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTableIface.java
index ced58e4d49..e68246fbf9 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTableIface.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTableIface.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTextIface.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTextIface.java
index ec5074425e..84c6359acd 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTextIface.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTextIface.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTextRange.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTextRange.java
index bbd4a4d4a9..dace732335 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTextRange.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTextRange.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTextRectangle.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTextRectangle.java
index deb0586dd2..692d108d74 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTextRectangle.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkTextRectangle.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkValueIface.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkValueIface.java
index dde4f01b7e..65ee768979 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkValueIface.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/AtkValueIface.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/GtkAccessible.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/GtkAccessible.java
index e5d5ee3ae8..d1c1674b63 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/GtkAccessible.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/accessibility/gtk/GtkAccessible.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GInterfaceInfo.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GInterfaceInfo.java
index 7bc2e7ab49..5a9152a16c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GInterfaceInfo.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GInterfaceInfo.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GObjectClass.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GObjectClass.java
index eb85a6e02c..bb344018af 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GObjectClass.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GObjectClass.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTypeInfo.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTypeInfo.java
index a3254c6a4d..000a295916 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTypeInfo.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTypeInfo.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -36,5 +36,5 @@ public class GTypeInfo {
public long /*int*/ instance_init;
/** @field cast=(GTypeValueTable *) */
public long /*int*/ value_table;
- public static final int sizeof = OS.GTypeInfo_sizeof();
+ public static final int sizeof = OS.GTypeInfo_sizeof();
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTypeQuery.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTypeQuery.java
index 2b89e3e44f..06a8568afb 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTypeQuery.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GTypeQuery.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkColor.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkColor.java
index 8bed11a500..a61c0b6901 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkColor.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkColor.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -19,7 +19,7 @@ public class GdkColor {
/** @field cast=(guint32) */
public int pixel;
/** @field cast=(guint16) */
- public short red;
+ public short red;
/** @field cast=(guint16) */
public short green;
/** @field cast=(guint16) */
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkDragContext.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkDragContext.java
index c4984f6f08..414a01614a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkDragContext.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkDragContext.java
@@ -8,14 +8,14 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.swt.internal.gtk;
-public class GdkDragContext {
+public class GdkDragContext {
/** @field cast=(GdkDragProtocol) */
public int protocol;
/** @field cast=(gboolean) */
@@ -31,7 +31,7 @@ public class GdkDragContext {
/** @field cast=(GdkDragAction) */
public int suggested_action;
/** @field cast=(GdkDragAction) */
- public int action;
+ public int action;
/** @field cast=(guint32) */
public int start_time;
public static final int sizeof = OS.GdkDragContext_sizeof();
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEvent.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEvent.java
index ca105e7589..deafd22241 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEvent.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEvent.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventAny.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventAny.java
index cc119878ae..92611a568f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventAny.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventAny.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventButton.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventButton.java
index d14e82bd9c..76e0bdfc0b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventButton.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventButton.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventCrossing.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventCrossing.java
index decb96d177..2436eb1997 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventCrossing.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventCrossing.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventExpose.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventExpose.java
index e821a9859f..bc0f0599fd 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventExpose.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventExpose.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventFocus.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventFocus.java
index 13bfe418ef..583d778d0b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventFocus.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventFocus.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventKey.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventKey.java
index 3f775d0862..a9a78d87d0 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventKey.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventKey.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventMotion.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventMotion.java
index 3abd85751e..8e49758d0b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventMotion.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventMotion.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventProperty.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventProperty.java
index 36192bf478..768f3641e0 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventProperty.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventProperty.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventScroll.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventScroll.java
index 461ef11cb2..53dc45b840 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventScroll.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventScroll.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventWindowState.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventWindowState.java
index 9ec54749f2..c5546beba7 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventWindowState.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkEventWindowState.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -18,7 +18,7 @@ package org.eclipse.swt.internal.gtk;
public class GdkEventWindowState extends GdkEvent {
/** @field cast=(GdkWindow *) */
public long /*int*/ window;
- public byte send_event;
+ public byte send_event;
public int changed_mask;
public int new_window_state;
public static final int sizeof = OS.GdkEventWindowState_sizeof();
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkGCValues.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkGCValues.java
index 91758a0e9f..d884715e5d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkGCValues.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkGCValues.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkGeometry.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkGeometry.java
index 82697800a9..da59bbbcdb 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkGeometry.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkGeometry.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkImage.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkImage.java
index 298108c352..f8a8ac1967 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkImage.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkImage.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkRGBA.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkRGBA.java
index cf35e2da24..3e1bc4c9dd 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkRGBA.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkRGBA.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -16,7 +16,7 @@ package org.eclipse.swt.internal.gtk;
public class GdkRGBA {
- public double red;
+ public double red;
public double green;
public double blue;
public double alpha;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkRectangle.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkRectangle.java
index 8224eb73c6..9fc5c9faa4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkRectangle.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkRectangle.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkVisual.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkVisual.java
index 7cf0b4b540..ccbe9a6feb 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkVisual.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkVisual.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkWindowAttr.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkWindowAttr.java
index 170cf12f56..ffe306bbca 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkWindowAttr.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GdkWindowAttr.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkAdjustment.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkAdjustment.java
index abc22d80d1..c42f7fd3c6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkAdjustment.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkAdjustment.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkAllocation.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkAllocation.java
index 00bc5fdb44..ca499d47d3 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkAllocation.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkAllocation.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkBorder.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkBorder.java
index 6a404e0c2a..d08d960c7c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkBorder.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkBorder.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkCellRendererClass.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkCellRendererClass.java
index 0f67606458..70458cfcdd 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkCellRendererClass.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkCellRendererClass.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkFixed.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkFixed.java
index a1510f661b..4bc5b8ed87 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkFixed.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkFixed.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkRequisition.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkRequisition.java
index b9340302da..56ffcf2f9f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkRequisition.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkRequisition.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkTargetEntry.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkTargetEntry.java
index b5835ebee5..0326844472 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkTargetEntry.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkTargetEntry.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkWidgetClass.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkWidgetClass.java
index b5fe2259d1..51e04b41f0 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkWidgetClass.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/GtkWidgetClass.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoAttrColor.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoAttrColor.java
index 8b96802507..cddfde8952 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoAttrColor.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoAttrColor.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoAttrInt.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoAttrInt.java
index 0a71c1ce73..2a80eb3d29 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoAttrInt.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoAttrInt.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoAttribute.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoAttribute.java
index 369735f760..bb4e48817d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoAttribute.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoAttribute.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoItem.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoItem.java
index c59f5ca967..25a77ab3c7 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoItem.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoLayoutLine.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoLayoutLine.java
index c89ad809ea..e21b08d9b0 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoLayoutLine.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoLayoutLine.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoLayoutRun.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoLayoutRun.java
index 01bdb0435f..a9838e86f6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoLayoutRun.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoLayoutRun.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoLogAttr.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoLogAttr.java
index f4506a6165..ee59b5005c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoLogAttr.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoLogAttr.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoRectangle.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoRectangle.java
index 74fccb9b55..be7a02b2f4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoRectangle.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/PangoRectangle.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XAnyEvent.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XAnyEvent.java
index c2ad5ccdb5..5de0b1ea21 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XAnyEvent.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XAnyEvent.java
@@ -10,7 +10,7 @@
*******************************************************************************/
package org.eclipse.swt.internal.gtk;
-
+
public abstract class XAnyEvent extends XEvent {
public long /*int*/ serial;
public int send_event;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XEvent.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XEvent.java
index 28f12f7cc5..613c9e7ff6 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XEvent.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XEvent.java
@@ -10,7 +10,7 @@
*******************************************************************************/
package org.eclipse.swt.internal.gtk;
-
+
public class XEvent {
public int type;
public static final int sizeof = OS.XEvent_sizeof();
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XExposeEvent.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XExposeEvent.java
index 5d9af2d632..c8d1cc0a87 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XExposeEvent.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XExposeEvent.java
@@ -10,7 +10,7 @@
*******************************************************************************/
package org.eclipse.swt.internal.gtk;
-
+
public class XExposeEvent extends XAnyEvent {
public int x;
public int y;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XFocusChangeEvent.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XFocusChangeEvent.java
index 9e27fa02c2..a96c105fe2 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XFocusChangeEvent.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XFocusChangeEvent.java
@@ -10,7 +10,7 @@
*******************************************************************************/
package org.eclipse.swt.internal.gtk;
-
+
public class XFocusChangeEvent extends XAnyEvent {
public int mode;
public int detail;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XRenderPictureAttributes.java b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XRenderPictureAttributes.java
index 5738c7675f..2541b1498b 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XRenderPictureAttributes.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/gtk/org/eclipse/swt/internal/gtk/XRenderPictureAttributes.java
@@ -10,7 +10,7 @@
*******************************************************************************/
package org.eclipse.swt.internal.gtk;
-
+
public class XRenderPictureAttributes {
public boolean repeat;
public long /*int*/ alpha_map;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/cde/org/eclipse/swt/internal/cde/CDE.java b/bundles/org.eclipse.swt/Eclipse SWT Program/cde/org/eclipse/swt/internal/cde/CDE.java
index 57794dd0f7..84f052c386 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Program/cde/org/eclipse/swt/internal/cde/CDE.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Program/cde/org/eclipse/swt/internal/cde/CDE.java
@@ -20,7 +20,7 @@ public class CDE extends Platform {
public static final String DtDTS_DA_ICON = "ICON";
public static final String DtDTS_DA_MIME_TYPE = "MIME_TYPE";
public static final String DtDTS_DA_NAME_TEMPLATE = "NAME_TEMPLATE";
-
+
/** 64 bit */
public static final native int DtActionArg_sizeof();
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/gnome/org/eclipse/swt/internal/gnome/GNOME.java b/bundles/org.eclipse.swt/Eclipse SWT Program/gnome/org/eclipse/swt/internal/gnome/GNOME.java
index e64748cbfa..6692716568 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Program/gnome/org/eclipse/swt/internal/gnome/GNOME.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Program/gnome/org/eclipse/swt/internal/gnome/GNOME.java
@@ -8,7 +8,7 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
@@ -150,7 +150,7 @@ public static final boolean gnome_vfs_is_executable_command_string(byte[] comman
* @param uris cast=(GList *)
*/
public static final native int _gnome_vfs_mime_application_launch(long /*int*/ application, long /*int*/ uris);
-public static final int gnome_vfs_mime_application_launch(long /*int*/ application, long /*int*/ uris) {
+public static final int gnome_vfs_mime_application_launch(long /*int*/ application, long /*int*/ uris) {
lock.lock();
try {
return _gnome_vfs_mime_application_launch(application, uris);
@@ -180,9 +180,9 @@ public static final long /*int*/ gnome_vfs_mime_type_from_name(byte[] file) {
lock.unlock();
}
}
-/**
+/**
* @param mime_type cast=(const char *)
- * @param base_mime_type cast=(const char *)
+ * @param base_mime_type cast=(const char *)
*/
public static final native long /*int*/ _gnome_vfs_mime_type_get_equivalence(long /*int*/ mime_type, byte [] base_mime_type);
public static final long /*int*/ gnome_vfs_mime_type_get_equivalence(long /*int*/ mime_type, byte [] base_mime_type) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Program/gnome/org/eclipse/swt/internal/gnome/GnomeVFSMimeApplication.java b/bundles/org.eclipse.swt/Eclipse SWT Program/gnome/org/eclipse/swt/internal/gnome/GnomeVFSMimeApplication.java
index 98e039d024..df9385a82f 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Program/gnome/org/eclipse/swt/internal/gnome/GnomeVFSMimeApplication.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Program/gnome/org/eclipse/swt/internal/gnome/GnomeVFSMimeApplication.java
@@ -8,13 +8,13 @@
* the LGPL accompanying this distribution and there is any conflict
* between the two license versions, the terms of the LGPL accompanying
* this distribution shall govern.
- *
+ *
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.swt.internal.gnome;
-
+
public class GnomeVFSMimeApplication {
/** @field cast=(char *) */
public long /*int*/ id;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ButtonDrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ButtonDrawData.java
index 7af96d9bb5..95b3d1ae0a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ButtonDrawData.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ButtonDrawData.java
@@ -17,7 +17,7 @@ import org.eclipse.swt.internal.cairo.Cairo;
import org.eclipse.swt.internal.gtk.*;
public class ButtonDrawData extends DrawData {
-
+
public ButtonDrawData() {
state = new int[1];
}
@@ -38,14 +38,14 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
int focus_line_width = theme.getWidgetProperty(radioButtonHandle, "focus-line-width");
int focus_padding = theme.getWidgetProperty(radioButtonHandle, "focus-padding");
int border_width = OS.gtk_container_get_border_width(radioButtonHandle);
-
+
int x = bounds.x + indicator_spacing + border_width;
int y = bounds.y + (bounds.height - indicator_size) / 2;
-
+
if (interior_focus == 0) {
x += focus_line_width + focus_padding;
}
-
+
int shadow_type;
if ((state & DrawData.GRAYED) != 0) {
shadow_type = OS.GTK_SHADOW_ETCHED_IN;
@@ -54,7 +54,7 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
} else {
shadow_type = OS.GTK_SHADOW_OUT;
}
-
+
byte[] detail = Converter.wcsToMbcs(null, "radiobutton", true);
if ((state & DrawData.HOT) != 0) {
int prelight_x, prelight_y, prelight_width, prelight_height;
@@ -74,7 +74,7 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
}
return;
}
-
+
if ((style & SWT.CHECK) != 0) {
long /*int*/ checkButtonHandle = theme.checkButtonHandle;
long /*int*/ gtkStyle = OS.gtk_widget_get_style (checkButtonHandle);
@@ -85,14 +85,14 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
int focus_line_width = theme.getWidgetProperty(checkButtonHandle, "focus-line-width");
int focus_padding = theme.getWidgetProperty(checkButtonHandle, "focus-padding");
int border_width = OS.gtk_container_get_border_width(checkButtonHandle);
-
+
int x = bounds.x + indicator_spacing + border_width;
int y = bounds.y + (bounds.height - indicator_size) / 2;
-
+
if (interior_focus == 0) {
x += focus_line_width + focus_padding;
}
-
+
int shadow_type;
if ((state & DrawData.GRAYED) != 0) {
shadow_type = OS.GTK_SHADOW_ETCHED_IN;
@@ -101,7 +101,7 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
} else {
shadow_type = OS.GTK_SHADOW_OUT;
}
-
+
byte[] detail = Converter.wcsToMbcs(null, "checkbutton", true);
if ((state & DrawData.HOT) != 0) {
int prelight_x, prelight_y, prelight_width, prelight_height;
@@ -121,16 +121,16 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
}
return;
}
-
+
if ((style & SWT.PUSH) != 0) {
long /*int*/ buttonHandle = theme.buttonHandle;
long /*int*/ gtkStyle = OS.gtk_widget_get_style (buttonHandle);
- theme.transferClipping (gc, gtkStyle);
+ theme.transferClipping (gc, gtkStyle);
int focus_line_width = theme.getWidgetProperty(buttonHandle, "focus-line-width");
int focus_padding = theme.getWidgetProperty(buttonHandle, "focus-padding");
int border_width = OS.gtk_container_get_border_width(buttonHandle);
-
+
GtkBorder default_border = new GtkBorder();
long /*int*/ default_border_ptr = theme.getBorderProperty(buttonHandle, "default-border");
if (default_border_ptr != 0) {
@@ -148,7 +148,7 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
} else {
default_outside_border.left = default_outside_border.right = default_outside_border.top = default_outside_border.bottom = 0;
}
-
+
int x = bounds.x + border_width;
int y = bounds.y + border_width;
int width = bounds.width - border_width * 2;
@@ -176,13 +176,13 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
if (relief != OS.GTK_RELIEF_NONE || ((state & (DrawData.PRESSED | DrawData.HOT)) != 0)) {
gtk_render_box (gtkStyle, drawable, state_type, shadow_type, null, buttonHandle, detail, x, y, width, height);
}
-
+
if ((state & DrawData.FOCUSED) != 0) {
int child_displacement_y = theme.getWidgetProperty(buttonHandle, "child-displacement-y");
int child_displacement_x = theme.getWidgetProperty(buttonHandle, "child-displacement-x");
- int displace_focus = theme.getWidgetProperty(buttonHandle, "displace-focus");
+ int displace_focus = theme.getWidgetProperty(buttonHandle, "displace-focus");
int interior_focus = theme.getWidgetProperty(buttonHandle, "interior-focus");
-
+
if (interior_focus != 0) {
int xthickness = OS.gtk_style_get_xthickness(gtkStyle);
int ythickness = OS.gtk_style_get_ythickness(gtkStyle);
@@ -196,12 +196,12 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
width += 2 * (focus_line_width + focus_padding);
height += 2 * (focus_line_width + focus_padding);
}
-
+
if ((state & DrawData.PRESSED) != 0 && displace_focus != 0) {
x += child_displacement_x;
y += child_displacement_y;
}
-
+
gtk_render_focus (gtkStyle, drawable, state_type, null, buttonHandle, detail, x, y, width, height);
}
if (clientArea != null) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ComboDrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ComboDrawData.java
index 20f9905199..d791280d5c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ComboDrawData.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ComboDrawData.java
@@ -30,7 +30,7 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
long /*int*/ gtkStyle = OS.gtk_widget_get_style(buttonHandle);
long /*int*/ drawable = gc.getGCData().drawable;
theme.transferClipping(gc, gtkStyle);
-
+
int x = bounds.x;
int y = bounds.y ;
int width = bounds.width;
@@ -39,7 +39,7 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
int shadow_type = OS.GTK_SHADOW_OUT;
if ((state[DrawData.COMBO_ARROW] & DrawData.PRESSED) != 0) shadow_type = OS.GTK_SHADOW_IN;
int state_type = getStateType(DrawData.COMBO_ARROW);
-
+
int relief = OS.gtk_button_get_relief(buttonHandle);
int interior_focus = theme.getWidgetProperty(buttonHandle, "interior-focus");
int focus_line_width = theme.getWidgetProperty(buttonHandle, "focus-line-width");
@@ -54,18 +54,18 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
x_border += focus_line_width;
//y_border += focus_line_width;
}
- int arrow_button_width = arrow_width + x_border * 2;
+ int arrow_button_width = arrow_width + x_border * 2;
int arrow_button_x = x + width - arrow_button_width;
int arrow_x = arrow_button_x + (arrow_button_width - arrow_width) / 2;
int arrow_y = y + (height - arrow_height) / 2 + 1;
if (relief != OS.GTK_RELIEF_NONE || ((state[DrawData.COMBO_ARROW] & (DrawData.PRESSED | DrawData.HOT)) != 0)) {
byte[] detail = Converter.wcsToMbcs(null, "button", true);
gtk_render_box (gtkStyle, drawable, state_type, shadow_type, null, buttonHandle, detail, arrow_button_x, y, arrow_button_width, height);
- }
+ }
byte[] arrow_detail = Converter.wcsToMbcs(null, "arrow", true);
long /*int*/ arrowHandle = theme.arrowHandle;
gtk_render_arrow (gtkStyle, drawable, state_type, OS.GTK_SHADOW_OUT, null, arrowHandle, arrow_detail, OS.GTK_ARROW_DOWN, true, arrow_x, arrow_y, arrow_width, arrow_height);
-
+
long /*int*/ entryHandle = theme.entryHandle;
gtkStyle = OS.gtk_widget_get_style(entryHandle);
theme.transferClipping(gc, gtkStyle);
@@ -80,13 +80,13 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
height -= 2 * ythickness;
detail = Converter.wcsToMbcs(null, "entry_bg", true);
gtk_render_frame (gtkStyle, drawable, state_type, OS.GTK_SHADOW_NONE, null, entryHandle, detail, x, y, width - arrow_button_width, height);
-
+
if (clientArea != null) {
clientArea.x = x;
clientArea.y = y;
clientArea.width = width - arrow_button_width;
clientArea.height = height;
- }
+ }
}
@Override
@@ -118,7 +118,7 @@ int hit(Theme theme, Point position, Rectangle bounds) {
x_border += focus_line_width;
//y_border += focus_line_width;
}
- int arrow_button_width = arrow_width + x_border * 2;
+ int arrow_button_width = arrow_width + x_border * 2;
int arrow_button_x = bounds.x + bounds.width - arrow_button_width;
Rectangle arrowRect = new Rectangle(arrow_button_x, bounds.y, arrow_button_width, bounds.height);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/DrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/DrawData.java
index de082870e0..8cfa3dd084 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/DrawData.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/DrawData.java
@@ -29,7 +29,7 @@ public class DrawData {
public static final int HOT = 1 << 6;
public static final int DEFAULTED = 1 << 7;
public static final int GRAYED = 1 << 8;
-
+
/** Text and Image drawing flags */
public static final int DRAW_LEFT = 1 << 4;
public static final int DRAW_TOP = 1 << 5;
@@ -52,20 +52,20 @@ public class DrawData {
public static final int SCROLLBAR_LEFT_TRACK = SCROLLBAR_UP_TRACK;
public static final int SCROLLBAR_RIGHT_TRACK = SCROLLBAR_DOWN_TRACK;
public static final int SCROLLBAR_THUMB = 5;
-
+
/** Scale parts */
public static final int SCALE_UP_TRACK = 1;
public static final int SCALE_LEFT_TRACK = SCALE_UP_TRACK;
public static final int SCALE_DOWN_TRACK = 2;
public static final int SCALE_RIGHT_TRACK = SCALE_DOWN_TRACK;
public static final int SCALE_THUMB = 3;
-
+
/** ToolItem parts */
public static final int TOOLITEM_ARROW = 1;
-
+
/** Combo parts */
public static final int COMBO_ARROW = 1;
-
+
public DrawData() {
state = new int[1];
@@ -76,7 +76,7 @@ Rectangle computeTrim(Theme theme, GC gc) {
}
void draw(Theme theme, GC gc, Rectangle bounds) {
-
+
}
void drawImage(Theme theme, Image image, GC gc, Rectangle bounds) {
@@ -159,7 +159,7 @@ int getStateType(int part) {
} else {
if ((state & DrawData.SELECTED) != 0) state_type = OS.GTK_STATE_ACTIVE;
if ((state & DrawData.HOT) != 0) {
- if ((state & DrawData.PRESSED) != 0) {
+ if ((state & DrawData.PRESSED) != 0) {
state_type = OS.GTK_STATE_ACTIVE;
} else {
state_type = OS.GTK_STATE_PRELIGHT;
@@ -243,7 +243,7 @@ void gtk_render_focus (long /*int*/ style, long /*int*/ window, int state_type,
Cairo.cairo_restore (cairo);
OS.gtk_style_context_restore (context);
Cairo.cairo_destroy (cairo);
-
+
} else {
OS.gtk_paint_focus (style, window, state_type, area, widget, detail, x, y, width, height);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ExpanderDrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ExpanderDrawData.java
index 825f60cd9e..6f24acd3bd 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ExpanderDrawData.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ExpanderDrawData.java
@@ -17,7 +17,7 @@ import org.eclipse.swt.internal.cairo.Cairo;
import org.eclipse.swt.internal.gtk.*;
public class ExpanderDrawData extends DrawData {
-
+
public ExpanderDrawData() {
state = new int[1];
}
@@ -41,7 +41,7 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
OS.gtk_render_expander (context, cairo, bounds.x, bounds.y, expander_size, expander_size);
Cairo.cairo_destroy (cairo);
} else {
- OS.gtk_paint_expander(gtkStyle, drawable, state_type, null, treeHandle, detail, x, y, expander_style);
+ OS.gtk_paint_expander(gtkStyle, drawable, state_type, null, treeHandle, detail, x, y, expander_style);
}
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/GroupDrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/GroupDrawData.java
index d46428d78e..835ba27a0d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/GroupDrawData.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/GroupDrawData.java
@@ -19,10 +19,10 @@ public class GroupDrawData extends DrawData {
public int headerWidth;
public int headerHeight;
public Rectangle headerArea;
-
+
static final int GROUP_X = 2;
static final int GROUP_PAD = 1;
-
+
public GroupDrawData() {
state = new int[1];
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ScaleDrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ScaleDrawData.java
index daeef72612..232794fc4a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ScaleDrawData.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ScaleDrawData.java
@@ -15,14 +15,14 @@ import org.eclipse.swt.graphics.*;
public class ScaleDrawData extends RangeDrawData {
public int increment;
public int pageIncrement;
-
+
public ScaleDrawData() {
state = new int[4];
}
@Override
void draw(Theme theme, GC gc, Rectangle bounds) {
-
+
}
@Override
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ScrollBarDrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ScrollBarDrawData.java
index ff1d4ed882..8f91a094b8 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ScrollBarDrawData.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ScrollBarDrawData.java
@@ -16,7 +16,7 @@ public class ScrollBarDrawData extends RangeDrawData {
public int thumb;
public int increment;
public int pageIncrement;
-
+
public ScrollBarDrawData() {
state = new int[6];
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/TabFolderDrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/TabFolderDrawData.java
index b21178090b..476a596d4c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/TabFolderDrawData.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/TabFolderDrawData.java
@@ -23,7 +23,7 @@ public class TabFolderDrawData extends DrawData {
public int selectedX;
public int selectedWidth;
public int spacing;
-
+
public TabFolderDrawData() {
state = new int[1];
if (SWT.getPlatform().equals("gtk")) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/TabItemDrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/TabItemDrawData.java
index d0f423cbda..bc1e32789d 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/TabItemDrawData.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/TabItemDrawData.java
@@ -17,7 +17,7 @@ import org.eclipse.swt.internal.cairo.Cairo;
import org.eclipse.swt.internal.gtk.*;
public class TabItemDrawData extends DrawData {
-
+
public TabFolderDrawData parent;
public int position;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolBarDrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolBarDrawData.java
index c57c40c02b..553d93b0dc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolBarDrawData.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolBarDrawData.java
@@ -15,7 +15,7 @@ import org.eclipse.swt.internal.*;
import org.eclipse.swt.internal.gtk.*;
public class ToolBarDrawData extends DrawData {
-
+
public ToolBarDrawData() {
state = new int[1];
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolItemDrawData.java b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolItemDrawData.java
index cc34aaec9f..dc1e53dc8c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolItemDrawData.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Theme/gtk/org/eclipse/swt/internal/theme/ToolItemDrawData.java
@@ -66,7 +66,7 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
Cairo.cairo_destroy(cairo);
} else {
OS.gtk_paint_hline(gtkStyle, drawable, state_type, null, separatorHandle, detail, bounds.x, bounds.x + bounds.width, bounds.y + bounds.height / 2);
- }
+ }
} else {
if (OS.GTK3) {
long /*int*/ cairo = OS.gdk_cairo_create (drawable);
@@ -98,7 +98,7 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
} else if ((style & (SWT.CHECK | SWT.RADIO)) != 0) {
detail = Converter.wcsToMbcs(null, "togglebutton", true);
}
-
+
int[] relief = new int[1];
long /*int*/ toolbarHandle = theme.toolbarHandle;
OS.gtk_widget_style_get(toolbarHandle, OS.button_relief, relief, 0);
@@ -106,7 +106,7 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
int shadow_type = OS.GTK_SHADOW_OUT;
if ((state & (DrawData.SELECTED | DrawData.PRESSED)) != 0) shadow_type = OS.GTK_SHADOW_IN;
int state_type = getStateType(DrawData.WIDGET_WHOLE);
-
+
if (relief[0] != OS.GTK_RELIEF_NONE || ((state & (DrawData.PRESSED | DrawData.HOT | DrawData.SELECTED)) != 0)) {
gtk_render_box(gtkStyle, drawable, state_type, shadow_type, null, buttonHandle, detail, x, y, width, height);
}
@@ -137,7 +137,7 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
int child_displacement_y = theme.getWidgetProperty(buttonHandle, "child-displacement-y");
int child_displacement_x = theme.getWidgetProperty(buttonHandle, "child-displacement-x");
int displace_focus = theme.getWidgetProperty(buttonHandle, "displace-focus");
-
+
if (interior_focus != 0) {
int ythickness = OS.gtk_style_get_ythickness(gtkStyle);
x += xthickness + focus_padding;
@@ -150,12 +150,12 @@ void draw(Theme theme, GC gc, Rectangle bounds) {
width += 2 * (focus_line_width + focus_padding);
height += 2 * (focus_line_width + focus_padding);
}
-
+
if ((state & (DrawData.PRESSED | DrawData.SELECTED)) != 0 && displace_focus != 0) {
x += child_displacement_x;
y += child_displacement_y;
}
-
+
gtk_render_focus (gtkStyle, drawable, state_type, null, buttonHandle, detail, x, y, width, height);
}
}
@@ -175,7 +175,7 @@ int hit(Theme theme, Point position, Rectangle bounds) {
if (interior_focus == 0) arrow_x -= focus_line_width;
if (arrow_x <= position.x) return DrawData.TOOLITEM_ARROW;
}
- return DrawData.WIDGET_WHOLE;
+ return DrawData.WIDGET_WHOLE;
}
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java
index f4932364c9..895389fc37 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/browser/WebKit.java
@@ -386,7 +386,7 @@ static long /*int*/ Proc (long /*int*/ handle, long /*int*/ arg0, long /*int*/ u
return 0;
}
- Browser browser = FindBrowser (webView);
+ Browser browser = FindBrowser (webView);
if (browser == null) return 0;
WebKit webkit = (WebKit)browser.webBrowser;
if (webView == handle) {
@@ -656,9 +656,9 @@ public void create (Composite parent, int style) {
OS.g_signal_connect (webView, OS.motion_notify_event, JSDOMEventProc.getAddress (), 0);
/*
- * Callbacks to get the events not consumed by WebKit, and to block
- * them so that they don't get propagated to the parent handle twice.
- * This hook is set after WebKit and is therefore called after WebKit's
+ * Callbacks to get the events not consumed by WebKit, and to block
+ * them so that they don't get propagated to the parent handle twice.
+ * This hook is set after WebKit and is therefore called after WebKit's
* handler because GTK dispatches events in their order of registration.
*/
if (!WEBKIT2){
diff --git a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/JSClassDefinition.java b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/JSClassDefinition.java
index 4edd984b95..72f18a4681 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/JSClassDefinition.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT WebKit/gtk/org/eclipse/swt/internal/webkit/JSClassDefinition.java
@@ -48,6 +48,6 @@ public class JSClassDefinition {
public long /*int*/ hasInstance;
/** @field cast=(void*) */
public long /*int*/ convertToType;
-
+
public static final int sizeof = WebKitGTK.JSClassDefinition_sizeof();
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Path.java b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Path.java
index daf6fcd459..63ee440475 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Path.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Path.java
@@ -19,7 +19,7 @@ import org.eclipse.swt.internal.cairo.*;
* described using lines, rectangles, arcs, cubic or quadratic bezier curves,
* glyphs, or other paths.
* <p>
- * Application code must explicitly invoke the <code>Path.dispose()</code>
+ * Application code must explicitly invoke the <code>Path.dispose()</code>
* method to release the operating system resources managed by each instance
* when those instances are no longer required.
* </p>
@@ -31,11 +31,11 @@ import org.eclipse.swt.internal.cairo.*;
* @see <a href="http://www.eclipse.org/swt/snippets/#path">Path, Pattern snippets</a>
* @see <a href="http://www.eclipse.org/swt/examples.php">SWT Example: GraphicsExample</a>
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
- *
+ *
* @since 3.1
*/
public class Path extends Resource {
-
+
/**
* the OS resource for the Path
* (Warning: This field is platform dependent)
@@ -45,11 +45,11 @@ public class Path extends Resource {
* within the packages provided by SWT. It is not available on all
* platforms and should never be accessed from application code.
* </p>
- *
+ *
* @noreference This field is not intended to be referenced by clients.
*/
public long /*int*/ handle;
-
+
boolean moved, closed = true;
/**
@@ -62,9 +62,9 @@ public class Path extends Resource {
* <p>
* You must dispose the path when it is no longer required.
* </p>
- *
+ *
* @param device the device on which to allocate the path
- *
+ *
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the device is null and there is no current device</li>
* </ul>
@@ -74,7 +74,7 @@ public class Path extends Resource {
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES if a handle for the path could not be obtained</li>
* </ul>
- *
+ *
* @see #dispose()
*/
public Path (Device device) {
@@ -102,11 +102,11 @@ public Path (Device device) {
* <p>
* You must dispose the path when it is no longer required.
* </p>
- *
+ *
* @param device the device on which to allocate the path
* @param path the path to make a copy
* @param flatness the flatness value
- *
+ *
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the device is null and there is no current device</li>
* <li>ERROR_NULL_ARGUMENT - if the path is null</li>
@@ -118,7 +118,7 @@ public Path (Device device) {
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES if a handle for the path could not be obtained</li>
* </ul>
- *
+ *
* @see #dispose()
* @since 3.4
*/
@@ -134,7 +134,7 @@ public Path (Device device, Path path, float flatness) {
long /*int*/ copy;
flatness = Math.max(0, flatness);
if (flatness == 0) {
- copy = Cairo.cairo_copy_path(path.handle);
+ copy = Cairo.cairo_copy_path(path.handle);
} else {
double tolerance = Cairo.cairo_get_tolerance(path.handle);
Cairo.cairo_set_tolerance(path.handle, flatness);
@@ -160,10 +160,10 @@ public Path (Device device, Path path, float flatness) {
* <p>
* You must dispose the path when it is no longer required.
* </p>
- *
+ *
* @param device the device on which to allocate the path
* @param data the data for the path
- *
+ *
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the device is null and there is no current device</li>
* <li>ERROR_NULL_ARGUMENT - if the data is null</li>
@@ -174,7 +174,7 @@ public Path (Device device, Path path, float flatness) {
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES if a handle for the path could not be obtained</li>
* </ul>
- *
+ *
* @see #dispose()
* @since 3.4
*/
@@ -188,15 +188,15 @@ public Path (Device device, PathData data) {
* Adds to the receiver a circular or elliptical arc that lies within
* the specified rectangular area.
* <p>
- * The resulting arc begins at <code>startAngle</code> and extends
+ * The resulting arc begins at <code>startAngle</code> and extends
* for <code>arcAngle</code> degrees.
* Angles are interpreted such that 0 degrees is at the 3 o'clock
* position. A positive value indicates a counter-clockwise rotation
* while a negative value indicates a clockwise rotation.
* </p><p>
- * The center of the arc is the center of the rectangle whose origin
- * is (<code>x</code>, <code>y</code>) and whose size is specified by the
- * <code>width</code> and <code>height</code> arguments.
+ * The center of the arc is the center of the rectangle whose origin
+ * is (<code>x</code>, <code>y</code>) and whose size is specified by the
+ * <code>width</code> and <code>height</code> arguments.
* </p><p>
* The resulting arc covers an area <code>width + 1</code> pixels wide
* by <code>height + 1</code> pixels tall.
@@ -364,7 +364,7 @@ public boolean contains(float x, float y, GC gc, boolean outline) {
Cairo.cairo_append_path(cairo, copy);
Cairo.cairo_path_destroy(copy);
if (outline) {
- result = Cairo.cairo_in_stroke(cairo, x, y) != 0;
+ result = Cairo.cairo_in_stroke(cairo, x, y) != 0;
} else {
result = Cairo.cairo_in_fill(cairo, x, y) != 0;
}
@@ -404,7 +404,7 @@ public void cubicTo(float cx1, float cy1, float cx2, float cy2, float x, float y
* receiver (i.e. the bounding box).
*
* @param bounds the array to hold the result
- *
+ *
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the parameter is null</li>
* <li>ERROR_INVALID_ARGUMENT - if the parameter is too small to hold the bounding box</li>
@@ -426,7 +426,7 @@ public void getBounds(float[] bounds) {
minX = minY = Double.POSITIVE_INFINITY;
maxX = maxY = Double.NEGATIVE_INFINITY;
int i = 0;
- double[] points = new double[6];
+ double[] points = new double[6];
cairo_path_data_t data = new cairo_path_data_t();
while (i < path.num_data) {
long /*int*/ offset = path.data + i * cairo_path_data_t.sizeof;
@@ -478,7 +478,7 @@ public void getBounds(float[] bounds) {
* describe the current point of the path.
*
* @param point the array to hold the result
- *
+ *
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the parameter is null</li>
* <li>ERROR_INVALID_ARGUMENT - if the parameter is too small to hold the end point</li>
@@ -499,13 +499,13 @@ public void getCurrentPoint(float[] point) {
/**
* Returns a device independent representation of the receiver.
- *
+ *
* @return the PathData for the receiver
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
* </ul>
- *
+ *
* @see PathData
*/
public PathData getPathData() {
@@ -519,7 +519,7 @@ public PathData getPathData() {
int typeIndex = 0, ptsIndex = 0;
if (path.num_data > 0) {
int i = 0;
- double[] points = new double[6];
+ double[] points = new double[6];
cairo_path_data_t data = new cairo_path_data_t();
while (i < path.num_data) {
long /*int*/ offset = path.data + i * cairo_path_data_t.sizeof;
@@ -613,7 +613,7 @@ public void moveTo(float x, float y) {
* begining of a subpath, the first cairo_line_to() or
* cairo_curve_to() segment do not output anything. The fix
* is to detect that the app did not call cairo_move_to()
- * before those calls and call it explicitly.
+ * before those calls and call it explicitly.
*/
moved = true;
Cairo.cairo_move_to(handle, x, y);
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Pattern.java b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Pattern.java
index d3f7052c71..17918869c8 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Pattern.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Pattern.java
@@ -17,7 +17,7 @@ import org.eclipse.swt.internal.cairo.*;
* Instances of this class represent patterns to use while drawing. Patterns
* can be specified either as bitmaps or gradients.
* <p>
- * Application code must explicitly invoke the <code>Pattern.dispose()</code>
+ * Application code must explicitly invoke the <code>Pattern.dispose()</code>
* method to release the operating system resources managed by each instance
* when those instances are no longer required.
* </p>
@@ -25,7 +25,7 @@ import org.eclipse.swt.internal.cairo.*;
* This class requires the operating system's advanced graphics subsystem
* which may not be available on some platforms.
* </p>
- *
+ *
* @see <a href="http://www.eclipse.org/swt/snippets/#path">Path, Pattern snippets</a>
* @see <a href="http://www.eclipse.org/swt/examples.php">SWT Example: GraphicsExample</a>
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
@@ -43,11 +43,11 @@ public class Pattern extends Resource {
* within the packages provided by SWT. It is not available on all
* platforms and should never be accessed from application code.
* </p>
- *
+ *
* @noreference This field is not intended to be referenced by clients.
*/
public long /*int*/ handle;
-
+
long /*int*/ surface;
/**
@@ -61,10 +61,10 @@ public class Pattern extends Resource {
* <p>
* You must dispose the pattern when it is no longer required.
* </p>
- *
+ *
* @param device the device on which to allocate the pattern
* @param image the image that the pattern will draw
- *
+ *
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the device is null and there is no current device, or the image is null</li>
* <li>ERROR_INVALID_ARGUMENT - if the image has been disposed</li>
@@ -75,7 +75,7 @@ public class Pattern extends Resource {
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES if a handle for the pattern could not be obtained</li>
* </ul>
- *
+ *
* @see #dispose()
*/
public Pattern(Device device, Image image) {
@@ -103,7 +103,7 @@ public Pattern(Device device, Image image) {
* <p>
* You must dispose the pattern when it is no longer required.
* </p>
- *
+ *
* @param device the device on which to allocate the pattern
* @param x1 the x coordinate of the starting corner of the gradient
* @param y1 the y coordinate of the starting corner of the gradient
@@ -111,9 +111,9 @@ public Pattern(Device device, Image image) {
* @param y2 the y coordinate of the ending corner of the gradient
* @param color1 the starting color of the gradient
* @param color2 the ending color of the gradient
- *
+ *
* @exception IllegalArgumentException <ul>
- * <li>ERROR_NULL_ARGUMENT - if the device is null and there is no current device,
+ * <li>ERROR_NULL_ARGUMENT - if the device is null and there is no current device,
* or if either color1 or color2 is null</li>
* <li>ERROR_INVALID_ARGUMENT - if either color1 or color2 has been disposed</li>
* </ul>
@@ -123,7 +123,7 @@ public Pattern(Device device, Image image) {
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES if a handle for the pattern could not be obtained</li>
* </ul>
- *
+ *
* @see #dispose()
*/
public Pattern(Device device, float x1, float y1, float x2, float y2, Color color1, Color color2) {
@@ -141,7 +141,7 @@ public Pattern(Device device, float x1, float y1, float x2, float y2, Color colo
* <p>
* You must dispose the pattern when it is no longer required.
* </p>
- *
+ *
* @param device the device on which to allocate the pattern
* @param x1 the x coordinate of the starting corner of the gradient
* @param y1 the y coordinate of the starting corner of the gradient
@@ -151,9 +151,9 @@ public Pattern(Device device, float x1, float y1, float x2, float y2, Color colo
* @param alpha1 the starting alpha value of the gradient
* @param color2 the ending color of the gradient
* @param alpha2 the ending alpha value of the gradient
- *
+ *
* @exception IllegalArgumentException <ul>
- * <li>ERROR_NULL_ARGUMENT - if the device is null and there is no current device,
+ * <li>ERROR_NULL_ARGUMENT - if the device is null and there is no current device,
* or if either color1 or color2 is null</li>
* <li>ERROR_INVALID_ARGUMENT - if either color1 or color2 has been disposed</li>
* </ul>
@@ -163,9 +163,9 @@ public Pattern(Device device, float x1, float y1, float x2, float y2, Color colo
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES if a handle for the pattern could not be obtained</li>
* </ul>
- *
+ *
* @see #dispose()
- *
+ *
* @since 3.2
*/
public Pattern(Device device, float x1, float y1, float x2, float y2, Color color1, int alpha1, Color color2, int alpha2) {
@@ -182,7 +182,7 @@ public Pattern(Device device, float x1, float y1, float x2, float y2, Color colo
Cairo.cairo_pattern_set_extend(handle, Cairo.CAIRO_EXTEND_REPEAT);
init();
}
-
+
@Override
void destroy() {
Cairo.cairo_pattern_destroy(handle);
@@ -215,5 +215,5 @@ public String toString() {
if (isDisposed()) return "Pattern {*DISPOSED*}";
return "Pattern {" + handle + "}";
}
-
+
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Transform.java b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Transform.java
index db687030e7..fc9f40d4ed 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Transform.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cairo/org/eclipse/swt/graphics/Transform.java
@@ -14,10 +14,10 @@ import org.eclipse.swt.*;
import org.eclipse.swt.internal.cairo.*;
/**
- * Instances of this class represent transformation matrices for
+ * Instances of this class represent transformation matrices for
* points expressed as (x, y) pairs of floating point numbers.
* <p>
- * Application code must explicitly invoke the <code>Transform.dispose()</code>
+ * Application code must explicitly invoke the <code>Transform.dispose()</code>
* method to release the operating system resources managed by each instance
* when those instances are no longer required.
* </p>
@@ -25,10 +25,10 @@ import org.eclipse.swt.internal.cairo.*;
* This class requires the operating system's advanced graphics subsystem
* which may not be available on some platforms.
* </p>
- *
+ *
* @see <a href="http://www.eclipse.org/swt/examples.php">SWT Example: GraphicsExample</a>
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
- *
+ *
* @since 3.1
*/
public class Transform extends Resource {
@@ -41,11 +41,11 @@ public class Transform extends Resource {
* within the packages provided by SWT. It is not available on all
* platforms and should never be accessed from application code.
* </p>
- *
+ *
* @noreference This field is not intended to be referenced by clients.
*/
public double[] handle;
-
+
/**
* Constructs a new identity Transform.
* <p>
@@ -54,11 +54,11 @@ public class Transform extends Resource {
* platforms.
* </p>
* <p>
- * You must dispose the transform when it is no longer required.
+ * You must dispose the transform when it is no longer required.
* </p>
- *
+ *
* @param device the device on which to allocate the Transform
- *
+ *
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li>
* </ul>
@@ -68,7 +68,7 @@ public class Transform extends Resource {
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES if a handle for the Transform could not be obtained</li>
* </ul>
- *
+ *
* @see #dispose()
*/
public Transform (Device device) {
@@ -76,7 +76,7 @@ public Transform (Device device) {
}
/**
- * Constructs a new Transform given an array of elements that represent the
+ * Constructs a new Transform given an array of elements that represent the
* matrix that describes the transformation.
* <p>
* This operation requires the operating system's advanced
@@ -84,12 +84,12 @@ public Transform (Device device) {
* platforms.
* </p>
* <p>
- * You must dispose the transform when it is no longer required.
+ * You must dispose the transform when it is no longer required.
* </p>
- *
+ *
* @param device the device on which to allocate the Transform
* @param elements an array of floats that describe the transformation matrix
- *
+ *
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device, or the elements array is null</li>
* <li>ERROR_INVALID_ARGUMENT - if the elements array is too small to hold the matrix values</li>
@@ -100,7 +100,7 @@ public Transform (Device device) {
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES if a handle for the Transform could not be obtained</li>
* </ul>
- *
+ *
* @see #dispose()
*/
public Transform(Device device, float[] elements) {
@@ -108,7 +108,7 @@ public Transform(Device device, float[] elements) {
}
/**
- * Constructs a new Transform given all of the elements that represent the
+ * Constructs a new Transform given all of the elements that represent the
* matrix that describes the transformation.
* <p>
* This operation requires the operating system's advanced
@@ -116,9 +116,9 @@ public Transform(Device device, float[] elements) {
* platforms.
* </p>
* <p>
- * You must dispose the transform when it is no longer required.
+ * You must dispose the transform when it is no longer required.
* </p>
- *
+ *
* @param device the device on which to allocate the Transform
* @param m11 the first element of the first row of the matrix
* @param m12 the second element of the first row of the matrix
@@ -126,7 +126,7 @@ public Transform(Device device, float[] elements) {
* @param m22 the second element of the second row of the matrix
* @param dx the third element of the first row of the matrix
* @param dy the third element of the second row of the matrix
- *
+ *
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li>
* </ul>
@@ -136,7 +136,7 @@ public Transform(Device device, float[] elements) {
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES if a handle for the Transform could not be obtained</li>
* </ul>
- *
+ *
* @see #dispose()
*/
public Transform (Device device, float m11, float m12, float m21, float m22, float dx, float dy) {
@@ -187,12 +187,12 @@ public void getElements(float[] elements) {
/**
* Modifies the receiver such that the matrix it represents becomes the
- * identity matrix.
+ * identity matrix.
*
* @exception SWTException <ul>
* <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
* </ul>
- *
+ *
* @since 3.4
*/
public void identity() {
@@ -202,7 +202,7 @@ public void identity() {
/**
* Modifies the receiver such that the matrix it represents becomes
- * the mathematical inverse of the matrix it previously represented.
+ * the mathematical inverse of the matrix it previously represented.
*
* @exception SWTException <ul>
* <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
@@ -247,10 +247,10 @@ public boolean isIdentity() {
/**
* Modifies the receiver such that the matrix it represents becomes the
* the result of multiplying the matrix it previously represented by the
- * argument.
+ * argument.
*
* @param matrix the matrix to multiply the receiver by
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
* </ul>
@@ -274,7 +274,7 @@ public void multiply(Transform matrix) {
* while a negative value indicates a counter-clockwise rotation.
*
* @param angle the angle to rotate the transformation by
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
* </ul>
@@ -287,10 +287,10 @@ public void rotate(float angle) {
/**
* Modifies the receiver so that it represents a transformation that is
* equivalent to its previous transformation scaled by (scaleX, scaleY).
- *
+ *
* @param scaleX the amount to scale in the X direction
* @param scaleY the amount to scale in the Y direction
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
* </ul>
@@ -303,14 +303,14 @@ public void scale(float scaleX, float scaleY) {
/**
* Modifies the receiver to represent a new transformation given all of
* the elements that represent the matrix that describes that transformation.
- *
+ *
* @param m11 the first element of the first row of the matrix
* @param m12 the second element of the first row of the matrix
* @param m21 the first element of the second row of the matrix
* @param m22 the second element of the second row of the matrix
* @param dx the third element of the first row of the matrix
* @param dy the third element of the second row of the matrix
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
* </ul>
@@ -323,14 +323,14 @@ public void setElements(float m11, float m12, float m21, float m22, float dx, fl
/**
* Modifies the receiver so that it represents a transformation that is
* equivalent to its previous transformation sheared by (shearX, shearY).
- *
+ *
* @param shearX the shear factor in the X direction
* @param shearY the shear factor in the Y direction
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
* </ul>
- *
+ *
* @since 3.4
*/
public void shear(float shearX, float shearY) {
@@ -339,7 +339,7 @@ public void shear(float shearX, float shearY) {
Cairo.cairo_matrix_multiply(handle, matrix, handle);
}
-/**
+/**
* Given an array containing points described by alternating x and y values,
* modify that array such that each point has been replaced with the result of
* applying the transformation represented by the receiver to that point.
@@ -348,7 +348,7 @@ public void shear(float shearX, float shearY) {
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the point array is null</li>
- * </ul>
+ * </ul>
* @exception SWTException <ul>
* <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
* </ul>
@@ -370,10 +370,10 @@ public void transform(float[] pointArray) {
/**
* Modifies the receiver so that it represents a transformation that is
* equivalent to its previous transformation translated by (offsetX, offsetY).
- *
+ *
* @param offsetX the distance to translate in the X direction
* @param offsetY the distance to translate in the Y direction
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li>
* </ul>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Color.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Color.java
index fcebe632dd..0d56a3b98e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Color.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Color.java
@@ -18,7 +18,7 @@ import org.eclipse.swt.*;
* Instances of this class manage the operating system resources that
* implement SWT's RGB color model. To create a color you can either
* specify the individual color components as integers in the range
- * 0 to 255 or provide an instance of an <code>RGB</code> or <code>RGBA</code>.
+ * 0 to 255 or provide an instance of an <code>RGB</code> or <code>RGBA</code>.
* <p>
* Application code must explicitly invoke the <code>Color.dispose()</code>
* method to release the operating system resources managed by each instance
@@ -82,16 +82,16 @@ public Color(Device device, int red, int green, int blue) {
init();
}
-/**
+/**
* Constructs a new instance of this class given a device and the
* desired red, green, blue & alpha values expressed as ints in the range
* 0 to 255 (where 0 is black and 255 is full brightness). On limited
* color devices, the color instance created by this call may not have
* the same RGB values as the ones specified by the arguments. The
- * RGB values on the returned instance will be the color values of
+ * RGB values on the returned instance will be the color values of
* the operating system color.
* <p>
- * You must dispose the color when it is no longer required.
+ * You must dispose the color when it is no longer required.
* </p>
*
* @param device the device on which to allocate the color
@@ -143,7 +143,7 @@ public Color(Device device, RGB rgb) {
init();
}
-/**
+/**
* Constructs a new instance of this class given a device and an
* <code>RGBA</code> describing the desired red, green, blue & alpha values.
* On limited color devices, the color instance created by this call
@@ -151,7 +151,7 @@ public Color(Device device, RGB rgb) {
* argument. The RGBA values on the returned instance will be the color
* values of the operating system color + alpha.
* <p>
- * You must dispose the color when it is no longer required.
+ * You must dispose the color when it is no longer required.
* </p>
*
* @param device the device on which to allocate the color
@@ -173,16 +173,16 @@ public Color(Device device, RGBA rgba) {
init();
}
-/**
+/**
* Constructs a new instance of this class given a device, an
* <code>RGB</code> describing the desired red, green and blue values,
- * alpha specifying the level of transparency.
+ * alpha specifying the level of transparency.
* On limited color devices, the color instance created by this call
* may not have the same RGB values as the ones specified by the
* argument. The RGB values on the returned instance will be the color
* values of the operating system color.
* <p>
- * You must dispose the color when it is no longer required.
+ * You must dispose the color when it is no longer required.
* </p>
*
* @param device the device on which to allocate the color
@@ -364,7 +364,7 @@ public static Color gtk_new(Device device, GdkColor gdkColor) {
return gtk_new(device, gdkColor, 255);
}
-/**
+/**
* Invokes platform specific functionality to allocate a new color.
* <p>
* <b>IMPORTANT:</b> This method is <em>not</em> part of the public
@@ -377,7 +377,7 @@ public static Color gtk_new(Device device, GdkColor gdkColor) {
* @param device the device on which to allocate the color
* @param gdkColor the handle for the color
* @param alpha the int for the alpha content in the color(Currently SWT honors extreme values for alpha ie. 0 or 255)
- *
+ *
* @noreference This method is not intended to be referenced by clients.
*/
public static Color gtk_new(Device device, GdkColor gdkColor, int alpha) {
@@ -388,7 +388,7 @@ public static Color gtk_new(Device device, GdkColor gdkColor, int alpha) {
}
/**
- * Allocates the operating system resources associated
+ * Allocates the operating system resources associated
* with the receiver.
*
* @param device the device on which to allocate the color
@@ -415,7 +415,7 @@ void init(int red, int green, int blue, int alpha) {
gdkColor.green = (short)((green & 0xFF) | ((green & 0xFF) << 8));
gdkColor.blue = (short)((blue & 0xFF) | ((blue & 0xFF) << 8));
this.alpha = alpha;
-
+
if (!OS.GTK3) {
long /*int*/ colormap = OS.gdk_colormap_get_system();
if (!OS.gdk_colormap_alloc_color(colormap, gdkColor, true, true)) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Font.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Font.java
index e0c044977c..319354c761 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Font.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Font.java
@@ -67,7 +67,7 @@ Font(Device device) {
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES - if a font could not be created from the given font data</li>
* </ul>
- *
+ *
* @see #dispose()
*/
public Font(Device device, FontData fd) {
@@ -97,9 +97,9 @@ public Font(Device device, FontData fd) {
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES - if a font could not be created from the given font data</li>
* </ul>
- *
+ *
* @see #dispose()
- *
+ *
* @since 2.1
*/
public Font(Device device, FontData[] fds) {
@@ -135,7 +135,7 @@ public Font(Device device, FontData[] fds) {
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES - if a font could not be created from the given arguments</li>
* </ul>
- *
+ *
* @see #dispose()
*/
public Font(Device device, String name, int height, int style) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java
index 217b1adc55..12101d2568 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Image.java
@@ -212,7 +212,7 @@ Image(Device device) {
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES if a handle could not be obtained for image creation</li>
* </ul>
- *
+ *
* @see #dispose()
*/
public Image(Device device, int width, int height) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java
index 52a582beb9..096cd33812 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/graphics/Region.java
@@ -48,7 +48,7 @@ public final class Region extends Resource {
* <p>
* You must dispose the region when it is no longer required.
* </p>
- *
+ *
* @exception SWTError <ul>
* <li>ERROR_NO_HANDLES if a handle could not be obtained for region creation</li>
* </ul>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
index d7d772c855..ff51e888e7 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java
@@ -4147,7 +4147,7 @@ String gtk_rgba_to_css_string (GdkRGBA rgba) {
toConvert = rgba;
} else {
// If we have a null RGBA, set it to the default COLOR_WIDGET_BACKGROUND.
- GdkColor defaultGdkColor = display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND).handle;
+ GdkColor defaultGdkColor = display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND).handle;
toConvert = new GdkRGBA ();
toConvert.alpha = 1.0;
toConvert.red = (defaultGdkColor.red & 0xFFFF) / (float)0xFFFF;
@@ -4930,17 +4930,17 @@ boolean setTabItemFocus (boolean next) {
* </p>
*
* @param textDirection the base text direction style
- *
+ *
* @exception SWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- *
+ *
* @see SWT#LEFT_TO_RIGHT
* @see SWT#RIGHT_TO_LEFT
* @see SWT#AUTO_TEXT_DIRECTION
* @see SWT#FLIP_TEXT_DIRECTION
- *
+ *
* @since 3.102
*/
public void setTextDirection(int textDirection) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
index d7e670c82d..5dd2b2fe50 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Display.java
@@ -4675,7 +4675,7 @@ public void update () {
checkDevice ();
flushExposes (0, true);
/*
- * Do not send expose events on GTK 3.16.0+
+ * Do not send expose events on GTK 3.16.0+
* It's worth checking whether can be removed on all GTK 3 versions.
*/
if (OS.GTK_VERSION < OS.VERSION(3, 16, 0)) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java
index 58db9b84a8..7344bf70dc 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TabFolder.java
@@ -50,7 +50,7 @@ import org.eclipse.swt.internal.gtk.*;
public class TabFolder extends Composite {
/*
* Implementation note (see bug 454936, bug 480794):
- *
+ *
* Architecture Change on GTK3:
* In TabItem#setControl(Control), we reparent the child to be a child of the 'tab'
* rather than tabfolder's parent swtFixed container.
@@ -94,7 +94,7 @@ public class TabFolder extends Composite {
* <p>
* The style value is either one of the style constants defined in
* class <code>SWT</code> which is applicable to instances of this
- * class, or must be built by <em>bitwise OR</em>'ing together
+ * class, or must be built by <em>bitwise OR</em>'ing together
* (that is, using the <code>int</code> "|" operator) two or more
* of those <code>SWT</code> style constants. The class description
* lists the style constants that are applicable to the class.
@@ -357,7 +357,7 @@ void destroyItem (TabItem item) {
}
Event event = new Event ();
event.item = items [newIndex];
- sendSelectionEvent (SWT.Selection, event, true);
+ sendSelectionEvent (SWT.Selection, event, true);
// the widget could be destroyed at this point
}
}
@@ -367,7 +367,7 @@ void destroyItem (TabItem item) {
long /*int*/ eventHandle () {
return handle;
}
-
+
@Override
Control[] _getChildren() {
Control [] directChildren = super._getChildren ();
@@ -405,7 +405,7 @@ Control[] _getChildren() {
}
System.arraycopy (directChildren, 0, newChildren, i, directCount);
return newChildren;
-
+
} else {
return directChildren;
}
@@ -428,7 +428,7 @@ Control[] _getChildren() {
*/
public TabItem getItem (int index) {
checkWidget();
- if (!(0 <= index && index < getItemCount())) error (SWT.ERROR_INVALID_RANGE);
+ if (!(0 <= index && index < getItemCount())) error (SWT.ERROR_INVALID_RANGE);
long /*int*/ list = OS.gtk_container_get_children (handle);
if (list == 0) error (SWT.ERROR_CANNOT_GET_ITEM);
int itemCount = OS.g_list_length (list);
@@ -452,7 +452,7 @@ public TabItem getItem (int index) {
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- *
+ *
* @since 3.4
*/
public TabItem getItem(Point point) {
@@ -491,11 +491,11 @@ public int getItemCount () {
/**
* Returns an array of <code>TabItem</code>s which are the items
- * in the receiver.
+ * in the receiver.
* <p>
* Note: This is not the actual structure used by the receiver
* to maintain its list of items, so modifying the array will
- * not affect the receiver.
+ * not affect the receiver.
* </p>
*
* @return the items in the receiver
@@ -520,7 +520,7 @@ public TabItem [] getItems () {
* <p>
* Note: This is not the actual structure used by the receiver
* to maintain its selection, so modifying the array will
- * not affect the receiver.
+ * not affect the receiver.
* </p>
* @return an array representing the selection
*
@@ -586,7 +586,7 @@ void hookEvents () {
/**
* Searches the receiver's list starting at the first item
- * (index 0) until an item is found that is equal to the
+ * (index 0) until an item is found that is equal to the
* argument, and returns the index of that item. If no item
* is found, returns -1.
*
@@ -717,7 +717,7 @@ public void removeSelectionListener (SelectionListener listener) {
if (listener == null) error (SWT.ERROR_NULL_ARGUMENT);
if (eventTable == null) return;
eventTable.unhook (SWT.Selection, listener);
- eventTable.unhook (SWT.DefaultSelection,listener);
+ eventTable.unhook (SWT.DefaultSelection,listener);
}
@Override
@@ -785,7 +785,7 @@ void setOrientation (boolean create) {
}
/**
- * Selects the item at the given zero-relative index in the receiver.
+ * Selects the item at the given zero-relative index in the receiver.
* If the item at the index was already selected, it remains selected.
* The current selection is first cleared, then the new items are
* selected. Indices that are out of range are ignored.
@@ -847,7 +847,7 @@ void setSelection (int index, boolean notify) {
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
- *
+ *
* @since 3.2
*/
public void setSelection (TabItem item) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
index 12a2e812dc..cb47fc6ce5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Text.java
@@ -2162,7 +2162,7 @@ GdkColor getContextBackground () {
return display.COLOR_WIDGET_BACKGROUND;
}
} else {
- return super.getContextBackground ();
+ return super.getContextBackground ();
}
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java
index 50c964b47b..8ad085a5e9 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/ToolTip.java
@@ -604,7 +604,7 @@ long /*int*/ gtk_size_allocate (long /*int*/ widget, long /*int*/ allocation) {
@Override
void hookEvents () {
if ((style & SWT.BALLOON) != 0) {
- OS.g_signal_connect_closure_by_id (handle, display.signalIds [EXPOSE_EVENT], 0, display.getClosure (EXPOSE_EVENT), true);
+ OS.g_signal_connect_closure_by_id (handle, display.signalIds [EXPOSE_EVENT], 0, display.getClosure (EXPOSE_EVENT), true);
if (OS.GTK_VERSION >= OS.VERSION (3, 9, 0)) {
OS.g_signal_connect_closure_by_id (handle, display.signalIds [EXPOSE_EVENT_INVERSE], 0, display.getClosure (EXPOSE_EVENT_INVERSE), true);
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java
index 03151a2888..8269fb7cf3 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/TreeItem.java
@@ -716,7 +716,7 @@ public Rectangle getImageBounds (int index) {
OS.gtk_tree_view_get_cell_area (parentHandle, path, column, rect);
if ((parent.getStyle () & SWT.MIRRORED) != 0) rect.x = parent.getClientWidth () - rect.width - rect.x;
OS.gtk_tree_path_free (path);
-
+
// Feature in GTK. When a pixbufRenderer has size of 0x0, gtk_tree_view_column_cell_get_position
// returns a position of 0 as well. This causes offset issues meaning that images/widgets/etc.
// can be placed over the text. We need to account for the base case of a pixbufRenderer that has
@@ -1477,7 +1477,7 @@ public void setImage (int index, Image image) {
* We only do this if the size of the pixbufRenderer has not yet been set.
* Otherwise, the pixbufRenderer retains the same size as the first image added.
* See comment #4, Bug 478560. Note that all columns need to have their
- * pixbufRenderer set to this size after the initial image is set.
+ * pixbufRenderer set to this size after the initial image is set.
*/
if (OS.GTK3) {
long /*int*/parentHandle = parent.handle;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
index 6b2935dd62..801445c904 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Widget.java
@@ -104,7 +104,7 @@ public abstract class Widget {
/* Bidi "auto" text direction */
static final int HAS_AUTO_DIRECTION = 0;
-
+
/* Bidi flag and for auto text direction */
static final int AUTO_TEXT_DIRECTION = SWT.LEFT_TO_RIGHT | SWT.RIGHT_TO_LEFT;
@@ -1007,9 +1007,9 @@ boolean isActive () {
* and <code>false</code> otherwise.
*
* @return <code>true</code> when the widget has auto direction and <code>false</code> otherwise
- *
+ *
* @see #HAS_AUTO_DIRECTION
- *
+ *
* @since 3.105
*/
public boolean isAutoDirection () {

Back to the top