Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6686832

Support for "Open With" in java.awt.Desktop

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P5
    • Resolution: Unresolved
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_vista

      Description

      A DESCRIPTION OF THE REQUEST :
      java.awt.Desktop has a number of actions which are useful, however one action which it doesn't have is the "Open With" action, which unfortunately means that in our case we're stuck with our native code for doing this (and thus we've opted with relying on that native code for the other actions still.)


      JUSTIFICATION :
      It adds an action to the Desktop API, the existence of which makes an application more useful to the user as not everyone wants to open a file in the default application every time.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      It should be possible to do the following:

              Desktop.getDesktop().openWith(new File("d:\\data.txt"));


      CUSTOMER SUBMITTED WORKAROUND :
      The workaround is writing a JNI method to do it, but it isn't as trivial as executing a different "verb". Under Windows you need to execute the normal "open" via a specific object class "Unknown" to get this behaviour.

        Attachments

          Activity

            People

            • Assignee:
              denis Denis Fokin (Inactive)
              Reporter:
              ndcosta Nelson Dcosta (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Imported:
                Indexed: