Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » File associations for zip and jar
File associations for zip and jar [message #64404] Thu, 05 June 2003 15:10 Go to next message
Eclipse UserFriend
Originally posted by: mghdev.pobox.netmails.net

Is there a way to make Eclipse recognize another extension as being type
ZIP?

From the Resource perspective Navigator, I'm able to do a compare on two
ZIP or JAR files, and see the differences of the contained files (Compare
With > Each Other). However, if I do a comparison on an unknown extension
(.cpd, a "project" file for my app, which is a zip of XML files) the
compare tool treats them as binary. In the Preferences for File
Associations, there is nothing for .zip or .jar. My workaround is to
rename the .cpd files to .zip.

Thanks,
Mike
Re: File associations for zip and jar [message #64836 is a reply to message #64404] Thu, 05 June 2003 19:14 Go to previous message
Eclipse UserFriend
Originally posted by: Andre_Weinand.oti.com

On 5.6.2003 21:10 Uhr, in article bbo4js$j37$1@rogue.oti.com, "Mike Hinchey"
<mghdev@pobox.netmails.net> wrote:

> Is there a way to make Eclipse recognize another extension as being type
> ZIP?
>
> From the Resource perspective Navigator, I'm able to do a compare on two
> ZIP or JAR files, and see the differences of the contained files (Compare
> With > Each Other). However, if I do a comparison on an unknown extension
> (.cpd, a "project" file for my app, which is a zip of XML files) the
> compare tool treats them as binary. In the Preferences for File
> Associations, there is nothing for .zip or .jar. My workaround is to
> rename the .cpd files to .zip.
>
> Thanks,
> Mike
>
>

There is no preference UI for adding more file extensions.
(Please file a feature request)

However, you can add these extensions to the Compare plugin's
plugin.xml file:

<extension point="org.eclipse.compare.structureCreators">
<structureCreator
id="org.eclipse.compare.ZipFileStructureCreator"
extensions="zip,cpd"
class="org.eclipse.compare.ZipFileStructureCreator">
</structureCreator>
</extension>

or create your own plugin that only contains a single plugin.xml file
with the definition from above.

--andre
Previous Topic:can not access help contents
Next Topic:[SWT]: Hiding of tabs.
Goto Forum:
  


Current Time: Thu May 08 09:02:28 EDT 2025

Powered by FUDForum. Page generated in 0.04718 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top