Project

General

Profile

« Previous | Next » 

Revision adb769b4

Added by Andreas Müller over 3 years ago

cleanup

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/handler/update/P2Util.java
21 21
 * This class is a utility class for updating the editor from a p2 update site,
22 22
 * greatly inspired by the links given below.
23 23
 *
24
 *
25 24
 * To Do :
26 25
 * - Allow configurable update sites
27 26
 *
28 27
 * Notes :
29 28
 *
30
 *
31 29
 * @see http://wiki.eclipse.org/Equinox/p2/Adding_Self-Update_to_an_RCP_Application
32 30
 * @see http://bugs.eclipse.org/281226
33 31
 * @see http://www.vogella.com/tutorials/EclipseP2Update/article.html
......
60 58
    }
61 59

  
62 60
    public static String getP2UpdateRepositoryName(){
63
        return ApplicationUtil.isStable()?EDIT_STABLE_UPDATE_SITE_NAME:EDIT_NIGHTLY_UPDATE_SITE_NAME;
61
        return ApplicationUtil.isStable()? EDIT_STABLE_UPDATE_SITE_NAME : EDIT_NIGHTLY_UPDATE_SITE_NAME;
64 62
    }
65 63

  
66 64
    public static URI getP2UpdateRepository(){
67 65
        try {
68
            return ApplicationUtil.isStable()?new URI(EDIT_STABLE_UPDATE_SITE):new URI(EDIT_NIGHTLY_UPDATE_SITE);
66
            return ApplicationUtil.isStable()? new URI(EDIT_STABLE_UPDATE_SITE) : new URI(EDIT_NIGHTLY_UPDATE_SITE);
69 67
        } catch (URISyntaxException e) {
70 68
            MessagingUtils.error(P2Util.class, e);
71 69
        }

Also available in: Unified diff