facebook

[Closed] Problem adding file type to IDE

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #262753 Reply

    blaplante
    Member

    Hi folks,

    I searched for a while and did not see anyone with a simular problem. The problem occures after I have opened preferences and added a new file associasion to the General/Editor/File Associations menu and then right click on the new file. The “Open with” menu does not contain the editor type that I chose when I added the file type.

    OS: WinXP Home SP2

    *** Date: Wed Nov 29 01:39:10 EST 2006

    *** Platform Details:
    REMOVED, in the future please use MyEclipse > Installation Summary > Installation Details for a summarized view of system info

    #262820 Reply

    Scott Anderson
    Participant

    blaplante,

    Instead of adding the file type to the File Types, try adding to to Content Types at Window > Preferences > General > Content Types > Text …

    #262823 Reply

    blaplante
    Member

    Thanks for the quick reply.

    Instead of adding the file type to the File Types, try adding to to Content Types at Window > Preferences > General > Content Types > Text …

    I did that just now and it still does not show up on the “Open with” context menu when editing a file.

    #262837 Reply

    Scott Anderson
    Participant

    Can you give some details on what you’re trying to add, exactly, and what editor you’re trying to associate it with? Some
    editors simply won’t like some content types or extensions.

    #262838 Reply

    blaplante
    Member

    Yes the file extension is *.kon as in widgets.yahoo.com and the editor is an xml editor. The .kon file is in fact a well formed xml file.

    #262860 Reply

    Scott Anderson
    Participant

    I donwnloaded an example kon file that looks like:

    
    <?xml version="1.0" encoding="UTF-8"?>
    <widget debug="off" minimumVersion="3.1">
        <window>
    ....elided....
            </window>
    </widget>
    

    I navigated to Window > Preferences > General > Content Types > Text > XML
    and clicked ‘Add’. I added *.kon and hit OK

    In the Package Explorer view, the .kon file’s icon became the XML file icon and right-clicking to select Open With… shows the XML Editor not
    only listed, but the default for the file type. Note: I did *nothing* with File Assocations.

    Hope that helps.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: [Closed] Problem adding file type to IDE

You must be logged in to post in the forum log in