Package java.awt

Examples of java.awt.Desktop.edit()


         if (resource instanceof FileResource<?>)
         {
            Desktop dt = Desktop.getDesktop();
            try
            {
               dt.edit((File) resource.getUnderlyingResourceObject());
            }
            catch (UnsupportedOperationException e)
            {
               if (OSUtils.isLinux())
               {
View Full Code Here


   {
      Desktop dt = Desktop.getDesktop();
      FileResource<?> fileResource = resource.reify(FileResource.class);
      if (fileResource != null && !fileResource.isDirectory())
      {
         dt.edit(fileResource.getUnderlyingResourceObject());
      }
      else
      {
         UIOutput output = context.getUIContext().getProvider().getOutput();
         output.warn(output.err(), "Cannot edit [" + resource.getFullyQualifiedName() + "].");
View Full Code Here

               }
            }
            if (Desktop.isDesktopSupported()) {
               try {
                  Desktop d = Desktop.getDesktop();
                  d.edit(macro);
               } catch (Exception e) {
                  sendError(ERRMSG_OSNOTSUPPORTED);
               }
            } else {
               sendError(ERRMSG_OSNOTSUPPORTED);
View Full Code Here

         if (resource instanceof FileResource<?>)
         {
            Desktop dt = Desktop.getDesktop();
            try
            {
               dt.edit((File) resource.getUnderlyingResourceObject());
            }
            catch (UnsupportedOperationException e)
            {
               if (OSUtils.isLinux())
               {
View Full Code Here

   {
      Desktop dt = Desktop.getDesktop();
      FileResource<?> fileResource = resource.reify(FileResource.class);
      if (fileResource != null)
      {
         dt.edit(fileResource.getUnderlyingResourceObject());
      }
   }

}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.