File associations for zip and jar [message #64404] |
Thu, 05 June 2003 15:10  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03400 seconds