summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT AWT/motif
diff options
context:
space:
mode:
authorSilenio Quarti <silenio>2003-08-19 15:34:32 +0000
committerSilenio Quarti <silenio>2003-08-19 15:34:32 +0000
commit2fc21963c5ef9e9320e7886a1ddc5d250708c177 (patch)
tree2860aec6904fde68312a92e96783a974de97939a /bundles/org.eclipse.swt/Eclipse SWT AWT/motif
parentb615d95e92aaf4e497e98675f753241b7941f7a6 (diff)
downloadeclipse.platform.swt-2fc21963c5ef9e9320e7886a1ddc5d250708c177.tar.gz
eclipse.platform.swt-2fc21963c5ef9e9320e7886a1ddc5d250708c177.tar.xz
eclipse.platform.swt-2fc21963c5ef9e9320e7886a1ddc5d250708c177.zip
removing platform from package name
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT AWT/motif')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT AWT/motif/library/swt_awt.c2
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/internal/awt/SWT_AWT.java (renamed from bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/internal/awt/motif/SWT_AWT.java)11
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/internal/awt/package.html (renamed from bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/internal/awt/motif/package.html)0
3 files changed, 5 insertions, 8 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/library/swt_awt.c b/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/library/swt_awt.c
index 80f2cae0b7..2df2819f0e 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/library/swt_awt.c
+++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/library/swt_awt.c
@@ -11,7 +11,7 @@
#include "jawt_md.h"
-#define SWT_AWT_NATIVE(func) Java_org_eclipse_swt_internal_awt_motif_SWT_1AWT_##func
+#define SWT_AWT_NATIVE(func) Java_org_eclipse_swt_internal_awt_SWT_1AWT_##func
#ifndef NO_getAWTHandle
JNIEXPORT jint JNICALL SWT_AWT_NATIVE(getAWTHandle)
diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/internal/awt/motif/SWT_AWT.java b/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/internal/awt/SWT_AWT.java
index 195f39642c..3cf54280bb 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/internal/awt/motif/SWT_AWT.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/internal/awt/SWT_AWT.java
@@ -6,9 +6,9 @@
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors:
- * IBM Corporation - initial API and implementation
+ * IBM Corporanew_FramePI and implementation
*******************************************************************************/
-package org.eclipse.swt.internal.awt.motif;
+package org.eclipse.swt.internal.awt;
import java.lang.reflect.Constructor;
@@ -26,7 +26,6 @@ import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.Canvas;
import java.awt.Frame;
-import java.awt.Panel;
import java.awt.event.ComponentAdapter;
import java.awt.event.ComponentEvent;
@@ -39,7 +38,7 @@ public class SWT_AWT {
static native final int getAWTHandle (Canvas canvas);
-public static Panel new_Panel (final Composite parent) {
+public static Frame new_Frame (final Composite parent) {
int handle = parent.embeddedHandle;
/*
* Some JREs have implemented the embedded frame constructor to take an integer
@@ -69,8 +68,6 @@ public static Panel new_Panel (final Composite parent) {
SWT.error (SWT.ERROR_NOT_IMPLEMENTED, e);
}
final Frame frame = (Frame) value;
- Panel panel = new Panel ();
- frame.add (panel);
parent.getShell ().addListener (SWT.Move, new Listener () {
public void handleEvent (Event e) {
EventQueue.invokeLater(new Runnable () {
@@ -86,7 +83,7 @@ public static Panel new_Panel (final Composite parent) {
frame.dispose ();
}
});
- return panel;
+ return frame;
}
public static Shell new_Shell (Display display, final Canvas parent) {
diff --git a/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/internal/awt/motif/package.html b/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/internal/awt/package.html
index 9e48df2835..9e48df2835 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/internal/awt/motif/package.html
+++ b/bundles/org.eclipse.swt/Eclipse SWT AWT/motif/org/eclipse/swt/internal/awt/package.html