Skip to main content
aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-07-14Change singletons to enumeration literalsThomas Wolf1-21/+18
Use enumeration literals for the RepositoryCache, IndexDiffCache, RepositoryUtil, and RepositoryGroups singletons to ensure their initialization is thread-safe. Bug: 574806 Change-Id: I54def946ec3b708366c1f4b73f5aead531f0142b Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
2021-03-11[osgi] Disperse the EGit core Activator into OSGi dynamic servicesThomas Wolf1-4/+2
Use OSGi DS to perform most of the setup formerly done in the Activator. Because of interdependencies it's not possible to do this step-by-step. The Activator did a number of unrelated things: * setting up the internal EGit caches (RepositoryCache, IndexDiffCache, RepositoryUtil). * setting up a number of IResourceChangeListeners for auto-sharing projects, auto-ignoring derived resources, and similar things. * setting up HTTP and SSH, and proxy support. * handling debug tracing options. * migrating preferences. * tracking merge strategies contributed via an extension point. Each of these have now become an OSGi DS component: * RepositoryInitializer: EGit caches * WorkspaceConnector: IResourceChangeListeners * TransportConfigurator: HTTP, SSH, and proxies * DebugOptionsHandler: debug tracing options * PreferencesMigrator: preferences migrations; runs as a Job * MergeStrategies: merge strategy tracking; runs a Job to initialize The activator is no longer the central hub from which other classes can obtain the RepositoryCache, IndexDiffCache, or RepositoryUtil. This change was necessary because otherwise an early component activation causes the Activator to run, which then might cause trying to activate org.eclipse.core.resources before the instance location is set, which breaks Eclipse start-up. These central singletons are newly managed in these three classes directly, and are accessible via getInstance() static methods. Likewise, the EGitSecureStore is now such a singleton that will be created on first access to the EGitSecureStore class. The RepositoryInitializer publishes the RepositoryCache as a service, which is consumed by the WorkspaceConnector OSGi component. This ensures correct initialization order. The changes outside the Activator and the six new OSGi components are all simple replacements for using the new instance getters instead of the Activator. Bug: 560412 Change-Id: Id5c7440213ae25a573e84720db7dfcc83a8f5d0a Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
2018-05-29Update license to EPL-2.0Matthias Sohn1-2/+4
Bug: 530393 Change-Id: Iea3b247253a97c28043187df0e35daecf518011e Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2015-08-01Avoid NPE's on dereferencing IndexDiffCache.getIndexDiffCacheEntry() Andrey Loskutov1-2/+8
Change-Id: Idc1612e60990381b6617a537710df9b4e798ea69 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
2013-03-07Move UIText and UIIcons to the internal packageRobin Rosenberg1-1/+1
These are not part of the API and should therefore not be in a public package and also not checked for API compatibility. Change-Id: I8439adce61515177d36227c844d6284de700964f Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2012-04-18Create Patch on staged file brokenTomasz Zarna1-13/+36
The patch wizard should open if the selection contains a modified, untracked or missing file. Otherwise, the "No changes" dialog should be shown. The fix utilizes IndexDiffCache to achieve that. Bug: 376187 Change-Id: I7dd7358dfc1b2a05fcbd6dec24bc819d96d31c4f Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2012-03-22Add support for "workspace patches"Tomasz Zarna1-0/+4
Workspace-aware patches include comments to tell the Apply Patch wizard about the target projects for individual diffs. They contain enough information to allow the wizard to decide which resources need to be patched. Bug: 367735 CQ: 6349 Change-Id: Ie9036845e7bce43a2fe227294e99222e59a26f9f Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
2012-02-20Team > Create Patch... doesn't observe selectionTomasz Zarna1-5/+18
Bug: 370332 Change-Id: Ibb6a729a82b72464cc6fd9999f2ac07bfeae3157
2011-12-31Team > Create patch is missing Tomasz Zarna1-0/+114
The change adds the missing action. The action opens the Create Patch wizard allowing to save changes from your working tree in a file or clipboard. It makes the second param for CreatePatchOperation i.e. commit optional. Bug: 341036 Change-Id: Ib32830d732d31c1057ed7c969399f21223908b06 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>

    Back to the top