/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
private boolean insideTarget = true;
return new CDropTargetContextPeer();
}
private CDropTargetContextPeer() {
super();
}
// We block, waiting for an empty event to get posted (CToolkit.invokeAndWait)
// This is so we finish dispatching DropTarget events before we dispatch the dragDropFinished event (which is a higher priority).
try {
public synchronized void run() {
}
}, c);
}
catch(Exception e) {
e.printStackTrace();
}
}
long nativeDropTarget = this.getNativeDragContext();
synchronized (awtLockAccess) {
fNativeDataAvailable = 0;
if (fNativeDropTransfer == 0) {
} else {
}
while (format != fNativeDataAvailable) {
try {
} catch (Throwable e) {
e.printStackTrace();
}
}
}
return fNativeData;
}
// We need to take care of dragExit message because for some reason it is not being
// generated for lightweight components
if(insideTarget) {
insideTarget = false;
return;
}
} else {
insideTarget = true;
} else {
return;
}
}
}
super.processDropMessage(event);
}
}
boolean dispatchType) {
// On MacOS X all the DnD events should be synchronous
}
// Signal drop complete:
long nativeDropTarget = this.getNativeDragContext();
}
// Notify transfer complete - this is an upcall from getNativeData's native calls:
fNativeData = data;
}
// Notify transfer failed - this is an upcall from getNativeData's native calls:
fNativeData = null;
}
// Schedule a native dnd transfer:
// Schedule a native dnd data transfer:
// Notify drop completed:
private native void dropDone(long nativeDropTarget, long nativeDropTransfer, boolean isLocal, boolean success, int dropAction);
}