Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 467103
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:32:50+00:00 2026-05-12T23:32:50+00:00

I need to be able to double click on a file on the desktop

  • 0

I need to be able to double click on a file on the desktop and have Eclipse (or more specifically Lotus Notes) kick off my custom action, to process and display it. I’ve found

http://www.developer.com/java/other/article.php/3648736/Eclipse-Tip-Define-Custom-Content-Types-to-Identify-Your-Data-Files.htm

which describes how to setup a content type in eclipse and bind it to an editor. This is not quite what I need. We have emails stored as DXL (Domino XML), and while I can open them internally (through my custom functions), I can’t find information on how to accomplish launching them externally. I’m hoping someone has done this before.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:32:50+00:00Added an answer on May 12, 2026 at 11:32 pm

    I havn’t done it before but … with the help of

    EclipseEnvironmentInfo.getDefault().getCommandLineArgs()
    

    you can get at the command line arguments eclipse is started with (“org.eclipse.core.runtime.internal.adaptor.EclipseEnvironmentInfo” is an internal class but you can access it anyhow … at your own risk 😉 ). A quick test shows that if you start a file with eclipse, the last argument is the path to that file.

    Normal startup:

    -os, win32, -ws, win32, -arch, x86, -product, org.eclipse.epp.package.rcp.product

    With file:

    -os, win32, -ws, win32, -arch, x86, -product, org.eclipse.epp.package.rcp.product, D:\Programme\Eclipse3.5-RCP\readme\readme_eclipse.html

    You can extend the extension point “org.eclipse.ui.startup” and implement “org.eclipse.ui.IStartup” to check the command line Arguments and invoke your own command.

    Heres my test class:

    import java.util.Arrays;
    
    import org.eclipse.core.runtime.IStatus;
    import org.eclipse.core.runtime.Status;
    import org.eclipse.core.runtime.internal.adaptor.EclipseEnvironmentInfo;
    import org.eclipse.ui.IStartup;
    
    import test.Activator;
    
    public class Test implements IStartup {
    
     @Override
     public void earlyStartup() {
      String message = "Arguments: " + Arrays.toString(EclipseEnvironmentInfo.getDefault().getCommandLineArgs());
      Activator.getDefault().getLog().log(new Status(IStatus.INFO, "Test", message));
     }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a binary file of unknown format that I need to be able
I need to be able to handle the double click and single click event
I need to be able to convert from a Delphi Real48 to C# double.
I need to be able to load the entire contents of a text file
I need to be able to GZip compress a file in an Excel VBA
I need to avoid the double click submitting behavior. I'm using the client validation
I need to be able to read a file format that mixes binary and
I need to be able to have the objects within the array be valid
I have an array with types String, double, and float, and I need to
I need to be able to read a file, break it into packets of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.