< prev index next >

src/java.desktop/macosx/classes/sun/lwawt/macosx/CFileDialog.java

Print this page




   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.lwawt.macosx;
  27 
  28 import java.awt.*;

  29 import java.awt.peer.*;
  30 import java.awt.BufferCapabilities.FlipContents;
  31 import java.awt.event.*;
  32 import java.awt.image.*;
  33 import java.security.AccessController;
  34 import java.util.List;
  35 import java.io.*;
  36 
  37 import sun.awt.CausedFocusEvent.Cause;
  38 import sun.awt.AWTAccessor;
  39 import sun.java2d.pipe.Region;
  40 import sun.misc.ManagedLocalsThread;
  41 import sun.security.action.GetBooleanAction;
  42 
  43 class CFileDialog implements FileDialogPeer {
  44 
  45     private class Task implements Runnable {
  46 
  47         @Override
  48         public void run() {
  49             try {
  50                 boolean navigateApps = !AccessController.doPrivileged(
  51                         new GetBooleanAction("apple.awt.use-file-dialog-packages"));
  52                 boolean chooseDirectories = AccessController.doPrivileged(
  53                         new GetBooleanAction("apple.awt.fileDialogForDirectories"));
  54 
  55                 int dialogMode = target.getMode();
  56                 String title = target.getTitle();
  57                 if (title == null) {




   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.lwawt.macosx;
  27 
  28 import java.awt.*;
  29 import java.awt.event.FocusEvent.Cause;
  30 import java.awt.peer.*;
  31 import java.awt.BufferCapabilities.FlipContents;
  32 import java.awt.event.*;
  33 import java.awt.image.*;
  34 import java.security.AccessController;
  35 import java.util.List;
  36 import java.io.*;
  37 

  38 import sun.awt.AWTAccessor;
  39 import sun.java2d.pipe.Region;
  40 import sun.misc.ManagedLocalsThread;
  41 import sun.security.action.GetBooleanAction;
  42 
  43 class CFileDialog implements FileDialogPeer {
  44 
  45     private class Task implements Runnable {
  46 
  47         @Override
  48         public void run() {
  49             try {
  50                 boolean navigateApps = !AccessController.doPrivileged(
  51                         new GetBooleanAction("apple.awt.use-file-dialog-packages"));
  52                 boolean chooseDirectories = AccessController.doPrivileged(
  53                         new GetBooleanAction("apple.awt.fileDialogForDirectories"));
  54 
  55                 int dialogMode = target.getMode();
  56                 String title = target.getTitle();
  57                 if (title == null) {


< prev index next >