Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Approaching release 3.6.0

Hi Alex,

> Curious as to what the internal EGit classes are that you are using - is there something that you think needs to be exposed as public API?

Snipmatch offers a "Share snippet" context menu where we open EGit's
commit dialog, give the user the option to edit the commit message and
add a Change-Id (if the snippet repository is backed by Gerrit), and
then push the snippets.

See [1] for the code that implements this. Just committing through JGit
would work with public APIs only, of course, but then we would have to
implement our own UI.

The imported internal classes are

  org.eclipse.egit.ui.internal.commit.CommitHelper
  org.eclipse.egit.ui.internal.commit.CommitJob
  org.eclipse.egit.ui.internal.credentials.EGitCredentialsProvider
  org.eclipse.egit.ui.internal.dialogs.CommitDialog
  org.eclipse.egit.ui.internal.push.SimpleConfigurePushDialog

There's also this bug [2] that touches upon some things surrounding
CommitDialog.

Best wishes,

Andreas

[1]
<https://git.eclipse.org/c/recommenders/org.eclipse.recommenders.git/tree/plugins/org.eclipse.recommenders.snipmatch.rcp/src/org/eclipse/recommenders/internal/snipmatch/rcp/EclipseGitSnippetRepository.java#n434>
[2] <https://bugs.eclipse.org/bugs/show_bug.cgi?id=447236>

-- 
Codetrails GmbH
The knowledge transfer company

Robert-Bosch-Str. 7, 64293 Darmstadt
Phone: +49-6151-276-7092
Mobile: +49-170-811-3791
http://www.codetrails.com/

Managing Director: Dr. Marcel Bruch
Handelsregister: Darmstadt HRB 91940


Back to the top