KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > internal > cde > CDE


1 /*******************************************************************************
2  * Copyright (c) 2000, 2004 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.swt.internal.cde;
12
13 import org.eclipse.swt.internal.*;
14
15 public class CDE extends Platform {
16
17     /** Constants */
18     public static final int DtACTION_FILE = 1;
19     public static final String JavaDoc DtDTS_DA_ACTION_LIST = "ACTIONS";
20     public static final String JavaDoc DtDTS_DA_ICON = "ICON";
21     public static final String JavaDoc DtDTS_DA_MIME_TYPE = "MIME_TYPE";
22     public static final String JavaDoc DtDTS_DA_NAME_TEMPLATE = "NAME_TEMPLATE";
23     
24     /** 64 bit */
25     public static final native int DtActionArg_sizeof();
26
27 /** Natives */
28 public static final native boolean _DtAppInitialize(int /*long*/ appContext, int /*long*/ display, int /*long*/ topWiget, byte[] appName, byte[] appClass);
29 public static final boolean DtAppInitialize(int /*long*/ appContext, int /*long*/ display, int /*long*/ topWiget, byte[] appName, byte[] appClass) {
30     lock.lock();
31     try {
32         return _DtAppInitialize(appContext, display, topWiget, appName, appClass);
33     } finally {
34         lock.unlock();
35     }
36 }
37 public static final native void _DtDbLoad();
38 public static final void DtDbLoad() {
39     lock.lock();
40     try {
41         _DtDbLoad();
42     } finally {
43         lock.unlock();
44     }
45 }
46 public static final native int /*long*/ _DtDtsDataTypeNames();
47 public static final int /*long*/ DtDtsDataTypeNames() {
48     lock.lock();
49     try {
50         return _DtDtsDataTypeNames();
51     } finally {
52         lock.unlock();
53     }
54 }
55 public static final native int /*long*/ _DtDtsFileToDataType(byte[] fileName);
56 public static final int /*long*/ DtDtsFileToDataType(byte[] fileName) {
57     lock.lock();
58     try {
59         return _DtDtsFileToDataType(fileName);
60     } finally {
61         lock.unlock();
62     }
63 }
64 public static final native boolean _DtDtsDataTypeIsAction(byte[] dataType);
65 public static final boolean DtDtsDataTypeIsAction(byte[] dataType) {
66     lock.lock();
67     try {
68         return _DtDtsDataTypeIsAction(dataType);
69     } finally {
70         lock.unlock();
71     }
72 }
73 public static final native int /*long*/ _DtDtsDataTypeToAttributeValue(byte[] dataType, byte[] attrName, byte[] optName);
74 public static final int /*long*/ DtDtsDataTypeToAttributeValue(byte[] dataType, byte[] attrName, byte[] optName) {
75     lock.lock();
76     try {
77         return _DtDtsDataTypeToAttributeValue(dataType, attrName, optName);
78     } finally {
79         lock.unlock();
80     }
81 }
82 public static final native void _DtDtsFreeDataType(int /*long*/ dataType);
83 public static final void DtDtsFreeDataType(int /*long*/ dataType) {
84     lock.lock();
85     try {
86         _DtDtsFreeDataType(dataType);
87     } finally {
88         lock.unlock();
89     }
90 }
91 public static final native void _DtDtsFreeDataTypeNames(int /*long*/ dataTypeList);
92 public static final void DtDtsFreeDataTypeNames(int /*long*/ dataTypeList) {
93     lock.lock();
94     try {
95         _DtDtsFreeDataTypeNames(dataTypeList);
96     } finally {
97         lock.unlock();
98     }
99 }
100 public static final native void _DtDtsFreeAttributeValue(int /*long*/ attrValue);
101 public static final void DtDtsFreeAttributeValue(int /*long*/ attrValue) {
102     lock.lock();
103     try {
104         _DtDtsFreeAttributeValue(attrValue);
105     } finally {
106         lock.unlock();
107     }
108 }
109 public static final native long _DtActionInvoke(int /*long*/ topWidget, byte[] action, DtActionArg args, int argCount, byte[] termOpts, byte[] execHost, byte[] contextDir, int useIndicator, int /*long*/ callback, int /*long*/ clientData);
110 public static final long DtActionInvoke(int /*long*/ topWidget, byte[] action, DtActionArg args, int argCount, byte[] termOpts, byte[] execHost, byte[] contextDir, int useIndicator, int /*long*/ callback, int /*long*/ clientData) {
111     lock.lock();
112     try {
113         return _DtActionInvoke(topWidget, action, args, argCount, termOpts, execHost, contextDir, useIndicator, callback, clientData);
114     } finally {
115         lock.unlock();
116     }
117 }
118 public static final native int /*long*/ _topLevelShellWidgetClass();
119 public static final int /*long*/ topLevelShellWidgetClass() {
120     lock.lock();
121     try {
122         return _topLevelShellWidgetClass();
123     } finally {
124         lock.unlock();
125     }
126 }
127 public static final native int /*long*/ _XtAppCreateShell(byte[] appName, byte[] appClass, int /*long*/ widgetClass, int /*long*/ display, int /*long*/ [] argList, int argCount);
128 public static final int /*long*/ XtAppCreateShell(byte[] appName, byte[] appClass, int /*long*/ widgetClass, int /*long*/ display, int /*long*/ [] argList, int argCount) {
129     lock.lock();
130     try {
131         return _XtAppCreateShell(appName, appClass, widgetClass, display, argList, argCount);
132     } finally {
133         lock.unlock();
134     }
135 }
136 public static final native int /*long*/ _XtCreateApplicationContext();
137 public static final int /*long*/ XtCreateApplicationContext() {
138     lock.lock();
139     try {
140         return _XtCreateApplicationContext();
141     } finally {
142         lock.unlock();
143     }
144 }
145 public static final native void _XtDisplayInitialize(int /*long*/ app_context, int /*long*/ display, byte[] appName, byte[] appClass, int /*long*/ options, int num_options, int /*long*/ [] argc, int argv);
146 public static final void XtDisplayInitialize(int /*long*/ appContext, int /*long*/ display, byte[] appName, byte[] appClass, int /*long*/ options, int num_options, int /*long*/ [] argc, int argv) {
147     lock.lock();
148     try {
149         _XtDisplayInitialize(appContext, display, appName, appClass, options, num_options, argc, argv);
150     } finally {
151         lock.unlock();
152     }
153 }
154 public static final native void _XtRealizeWidget(int /*long*/ widget);
155 public static final void XtRealizeWidget(int /*long*/ widget) {
156     lock.lock();
157     try {
158         _XtRealizeWidget(widget);
159     } finally {
160         lock.unlock();
161     }
162 }
163 public static final native void _XtResizeWidget(int /*long*/ widget, int width, int height, int borderWidth);
164 public static final void XtResizeWidget(int /*long*/ widget, int width, int height, int borderWidth) {
165     lock.lock();
166     try {
167         _XtResizeWidget(widget, width, height, borderWidth);
168     } finally {
169         lock.unlock();
170     }
171 }
172 public static final native void _XtSetMappedWhenManaged(int /*long*/ widget, boolean flag);
173 public static final void XtSetMappedWhenManaged(int /*long*/ widget, boolean flag) {
174     lock.lock();
175     try {
176         _XtSetMappedWhenManaged(widget, flag);
177     } finally {
178         lock.unlock();
179     }
180 }
181 public static final native void _XtToolkitInitialize();
182 public static final void XtToolkitInitialize() {
183     lock.lock();
184     try {
185         _XtToolkitInitialize();
186     } finally {
187         lock.unlock();
188     }
189 }
190 }
191
Popular Tags