]> source.dussan.org Git - jgit.git/commit
Maintain list of archive formats in one place 07/13307/3
authorJonathan Nieder <jrn@google.com>
Tue, 28 May 2013 23:51:32 +0000 (16:51 -0700)
committerJonathan Nieder <jrn@google.com>
Tue, 28 May 2013 23:51:32 +0000 (16:51 -0700)
commit68d92182e6ce177c4ee97bab470ae867997a5530
treefa651f097a677c0f5a3bfaa18c91e35883c7f511
parentf99fa9d23e93fdd34124e2100d629680894477d7
Maintain list of archive formats in one place

Add a static start() method to FormatActivator to allow outside
classes such as the Archive subcommand of the jgit program to use it
without a BundleContext.  This way, the list of formats only has to be
maintained in one place.

While at it, build a list of registered formats at start() time, so
stop() doesn't have to repeat the same list of formats.

Suggested-by: Shawn Pearce <spearce@spearce.org>
Change-Id: I55cb3095043568740880cc9e4f7cde05f49c363c
org.eclipse.jgit.archive/src/org/eclipse/jgit/archive/FormatActivator.java
org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/Archive.java