summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2002-05-27 14:12:47 +0000
committerGrant Gayed <ggayed>2002-05-27 14:12:47 +0000
commita7ab4775a0dd1ecf25babb8566d45be8e41ff574 (patch)
treed82df9124df420c1baff7e5985dabc1ea35c8ca7 /bundles/org.eclipse.swt/Eclipse SWT
parentfe815a679ace276be32085884dd8032a390300ee (diff)
downloadeclipse.platform.swt-a7ab4775a0dd1ecf25babb8566d45be8e41ff574.tar.gz
eclipse.platform.swt-a7ab4775a0dd1ecf25babb8566d45be8e41ff574.tar.xz
eclipse.platform.swt-a7ab4775a0dd1ecf25babb8566d45be8e41ff574.zip
remove smalltalk comments
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java14
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/internal/Converter.java15
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Caret.java1
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java16
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/DirectoryDialog.java4
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/FileDialog.java30
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/List.java7
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MessageBox.java8
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Text.java5
9 files changed, 0 insertions, 100 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java
index 86ea069239..02cfc8e9a5 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Control.java
@@ -2110,20 +2110,6 @@ void setForegroundPixel (int pixel) {
redrawHandle(0, 0, 0, 0, handle, false);
}
void setGrabCursor (int cursor) {
- /* | window attributes eventMask grabMask |
- handle xtIsWidget ifFalse: [^self].
- (window := handle xtWindow) isNull ifTrue: [^self].
- attributes := OSXWindowAttributesPtr new.
- XDisplay
- xGetWindowAttributes: window
- windowAttributesReturn: attributes.
- grabMask := ((((((((((ButtonPressMask bitOr: ButtonReleaseMask) bitOr:
- EnterWindowMask) bitOr: LeaveWindowMask) bitOr: PointerMotionMask) bitOr:
- PointerMotionHintMask) bitOr: Button1MotionMask) bitOr: Button2MotionMask) bitOr:
- Button3MotionMask) bitOr: Button4MotionMask) bitOr: Button5MotionMask) bitOr: ButtonMotionMask.
- eventMask := attributes yourEventMask bitAnd: grabMask.
- XDisplay xChangeActivePointerGrab: eventMask cursor: aCursor time: CurrentTime.
- */
System.out.println("Control.setGrabCursor: nyi");
}
/**
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/internal/Converter.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/internal/Converter.java
index 66d9149da7..6bf639b27c 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/internal/Converter.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/internal/Converter.java
@@ -25,21 +25,6 @@ public final class Converter {
* @return the default code page
*/
public static String defaultCodePage () {
- /*
- | ptr cp |
- DefaultCodePage == nil ifFalse: [^DefaultCodePage].
- cp := ''. "$NON-NLS$"
- (ptr := OSStringZ address: (NlLanginfo callWith: 49)) isNull
- ifFalse: [cp := String copyFromOSMemory: ptr].
- cp isEmpty ifFalse: [
- IsSunOS ifTrue: [
- (cp size > 3 and: [(cp copyFrom: 1 to: 3) = 'ISO'])
- ifTrue: [cp := cp copyFrom: 4 to: cp size]].
- ^DefaultCodePage := cp].
- IsAIX ifTrue: [^DefaultCodePage := 'ISO8859-1'].
- IsSunOS ifTrue: [^DefaultCodePage := '8859-1'].
- ^DefaultCodePage := 'iso8859_1'
- */
return null;
}
static boolean is7BitAscii (byte [] buffer) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Caret.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Caret.java
index 85c62c27b7..3f947e7d18 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Caret.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk1x/org/eclipse/swt/widgets/Caret.java
@@ -272,7 +272,6 @@ void resize () {
// OS.CreateCaret (hwnd, 0, width, height);
// OS.SetCaretPos (x, y);
// OS.ShowCaret (hwnd);
-// self move.
// showCaret();
resized = false;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java
index 7cc5ec67c9..e0c5eba7aa 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Control.java
@@ -2149,22 +2149,6 @@ void setForegroundPixel (int pixel) {
if (xWindow == 0) return;
OS.XClearArea (xDisplay, xWindow, 0, 0, 0, 0, true);
}
-void setGrabCursor (int cursor) {
- /* | window attributes eventMask grabMask |
- handle xtIsWidget ifFalse: [^self].
- (window := handle xtWindow) isNull ifTrue: [^self].
- attributes := OSXWindowAttributesPtr new.
- XDisplay
- xGetWindowAttributes: window
- windowAttributesReturn: attributes.
- grabMask := ((((((((((ButtonPressMask bitOr: ButtonReleaseMask) bitOr:
- EnterWindowMask) bitOr: LeaveWindowMask) bitOr: PointerMotionMask) bitOr:
- PointerMotionHintMask) bitOr: Button1MotionMask) bitOr: Button2MotionMask) bitOr:
- Button3MotionMask) bitOr: Button4MotionMask) bitOr: Button5MotionMask) bitOr: ButtonMotionMask.
- eventMask := attributes yourEventMask bitAnd: grabMask.
- XDisplay xChangeActivePointerGrab: eventMask cursor: aCursor time: CurrentTime.
- */
-}
/**
* Sets the layout data associated with the receiver to the argument.
*
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/DirectoryDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/DirectoryDialog.java
index 85520a7c47..d9e8d4f01f 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/DirectoryDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/DirectoryDialog.java
@@ -288,10 +288,6 @@ public String open () {
if (destroyContext) appContext.dispose ();
callback.dispose ();
-// (shell == nil or: [shell isDestroyed not]) ifTrue: [dialog xtDestroyWidget].
-// OSWidget updateDisplay.
-// entryPoint unbind.
-
if (cancel) return null;
return directoryPath;
}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/FileDialog.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/FileDialog.java
index 88592b3c27..5acd69377b 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/FileDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/FileDialog.java
@@ -322,28 +322,6 @@ public String open () {
OS.XmStringFree (xmStringPtr1);
OS.XmStringFree (xmStringPtr2);
OS.XmStringFree (xmStringPtr3);
-/*
- string := OSWidget xmStringAt: XmNdirectory handle: dialog.
- OSWidget xmStringAt: XmNdirSpec put: string, fileName handle: dialog.
-
- "Select the matching file in the list and scroll to show it."
- child := dialog xmFileSelectionBoxGetChild: XmDIALOGLIST.
- child isNull ifFalse: [
- string := OSWidget xmStringAt: XmNdirSpec handle: dialog.
- string := PlatformConverter wcsToMbcs: 0 buffer: string.
- xmString := OSXmString xmStringCreateLocalized: string asPSZ.
- child
- xmListSelectItem: xmString notify: false;
- xmListSetItem: xmString.
- xmString xmStringFree.
-
- "Bug in Solaris. For some reason, the horizontal scroll bar in the dialog
- list refuses to be displayed. This stops the dialog list from scrolling
- horizontally and displaying the file names. This does not happen on other
- Motif platforms. The fix is to force the horizontal scroll bar to be displayed
- by explicitly setting the scroll bar display policy."
- OSWidget resourceAt: XmNscrollBarDisplayPolicy put: XmSTATIC handle: child].
-*/
/* Hook the callbacks. */
Callback cancelCallback = new Callback (this, "cancelPressed", 3);
@@ -353,10 +331,6 @@ public String open () {
int okAddress = okCallback.getAddress ();
OS.XtAddCallback (dialog, OS.XmNokCallback, okAddress, 0);
-/*
- shell == nil ifFalse: [
- shell minimized ifTrue: [shell minimized: false]].
-*/
OS.XtManageChild (dialog);
//BOGUS - should be a pure OS message loop (no SWT AppContext)
@@ -368,10 +342,6 @@ public String open () {
if (destroyContext) appContext.dispose ();
okCallback.dispose ();
cancelCallback.dispose ();
-
-// (shell == nil or: [shell isDestroyed not]) ifTrue: [dialog xtDestroyWidget].
-// OSWidget updateDisplay.
-// entryPoint unbind.
if (cancel) return null;
return fullPath;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/List.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/List.java
index cbbde1a9d9..22664a6a52 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/List.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/List.java
@@ -1194,13 +1194,6 @@ boolean setBounds (int x, int y, int width, int height, boolean move, boolean re
* out properly by growing and then shrinking the scrolled
* window.
*/
-// fixHScroll := hScroll ~~ nil and: [
-// hScroll isVisible not and: [
-// height ~~ (self dimensionAt: XmNheight)]].
-// fixVScroll := vScroll ~~ nil and: [
-// vScroll isVisible not and: [
-// width ~~ (self dimensionAt: XmNwidth)]].
-// (fixHScroll or: [fixVScroll]) ifFalse: [^self].
/* Grow and shrink the scrolled window by one pixel */
if (changed && scrolledHandle != 0) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MessageBox.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MessageBox.java
index 26c488f602..c4c8d36afa 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MessageBox.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/MessageBox.java
@@ -202,10 +202,6 @@ public int open () {
OS.XtAddCallback (dialog, OS.XmNhelpCallback, address, OS.XmDIALOG_HELP_BUTTON);
/* Open the dialog and dispatch events. */
-/*
- shell == nil ifFalse: [
- shell minimized ifTrue: [shell minimized: false]].
-*/
OS.XtManageChild (dialog);
//BOGUS - should be a pure OS message loop (no SWT AppContext)
@@ -216,10 +212,6 @@ public int open () {
if (OS.XtIsRealized (dialog)) OS.XtDestroyWidget (dialog);
if (destroyContext) appContext.dispose ();
callback.dispose ();
-
-// (shell == nil or: [shell isDestroyed not]) ifTrue: [dialog xtDestroyWidget].
-// OSWidget updateDisplay.
-// entryPoint unbind.
if ((style & (SWT.YES | SWT.NO | SWT.CANCEL)) == (SWT.YES | SWT.NO | SWT.CANCEL)) {
if (button == OS.XmDIALOG_OK_BUTTON) return SWT.YES;
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Text.java
index 5ab2130379..844a79c080 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Text.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/motif/org/eclipse/swt/widgets/Text.java
@@ -1132,11 +1132,6 @@ boolean setBounds (int x, int y, int width, int height, boolean move, boolean re
* back. The fix is to detect this case and scroll the
* text back.
*/
-// inset := self inset.
-// nWidth := self dimensionAt: XmNwidth.
-// self noWarnings: [super resizeWidget].
-// nWidth > inset x ifTrue: [^self].
-// self showPosition: self topCharacter
return changed;
}
/**