aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2017-12-17 21:46:10 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2017-12-18 01:08:06 +0100
commit6ac27ee2151930244aa696299ac66dceb451e25b (patch)
tree8dd781d7cab4ee899a9e6beee1c06647e0c05a51
parentf677ee4893ae5e72f717bc949a9b82599309a7d7 (diff)
downloadjgit-6ac27ee2151930244aa696299ac66dceb451e25b.tar.gz
jgit-6ac27ee2151930244aa696299ac66dceb451e25b.zip
Fix javadoc in org.eclipse.jgit.ui
Change-Id: Iec68c73fc0d8d26fdb26850354059ea521ac7fe5 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
-rw-r--r--org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AWTPlotRenderer.java6
-rw-r--r--org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AwtAuthenticator.java9
-rw-r--r--org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AwtCredentialsProvider.java11
-rw-r--r--org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java6
-rw-r--r--org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/SwingCommitList.java2
-rw-r--r--org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/UIText.java2
6 files changed, 31 insertions, 5 deletions
diff --git a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AWTPlotRenderer.java b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AWTPlotRenderer.java
index 632114faac..bccf0c02fe 100644
--- a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AWTPlotRenderer.java
+++ b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AWTPlotRenderer.java
@@ -84,6 +84,7 @@ final class AWTPlotRenderer extends AbstractPlotRenderer<SwingLane, Color>
}
}
+ /** {@inheritDoc} */
@Override
protected void drawLine(final Color color, int x1, int y1, int x2,
int y2, int width) {
@@ -100,6 +101,7 @@ final class AWTPlotRenderer extends AbstractPlotRenderer<SwingLane, Color>
g.drawLine(x1, y1, x2, y2);
}
+ /** {@inheritDoc} */
@Override
protected void drawCommitDot(final int x, final int y, final int w,
final int h) {
@@ -110,6 +112,7 @@ final class AWTPlotRenderer extends AbstractPlotRenderer<SwingLane, Color>
g.drawOval(x, y, w, h);
}
+ /** {@inheritDoc} */
@Override
protected void drawBoundaryDot(final int x, final int y, final int w,
final int h) {
@@ -120,6 +123,7 @@ final class AWTPlotRenderer extends AbstractPlotRenderer<SwingLane, Color>
g.drawOval(x, y, w, h);
}
+ /** {@inheritDoc} */
@Override
protected void drawText(final String msg, final int x, final int y) {
final int texth = g.getFontMetrics().getHeight();
@@ -128,6 +132,7 @@ final class AWTPlotRenderer extends AbstractPlotRenderer<SwingLane, Color>
g.drawString(msg, x, y0 + texth - g.getFontMetrics().getDescent());
}
+ /** {@inheritDoc} */
@Override
protected Color laneColor(final SwingLane myLane) {
return myLane != null ? myLane.color : Color.black;
@@ -147,6 +152,7 @@ final class AWTPlotRenderer extends AbstractPlotRenderer<SwingLane, Color>
g.drawPolygon(triangle);
}
+ /** {@inheritDoc} */
@Override
protected int drawLabel(int x, int y, Ref ref) {
String txt;
diff --git a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AwtAuthenticator.java b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AwtAuthenticator.java
index 486bbf6ab6..dfa6e2ba48 100644
--- a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AwtAuthenticator.java
+++ b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AwtAuthenticator.java
@@ -58,13 +58,18 @@ import javax.swing.JTextField;
import org.eclipse.jgit.util.CachedAuthenticator;
-/** Basic network prompt for username/password when using AWT. */
+/**
+ * Basic network prompt for username/password when using AWT.
+ */
public class AwtAuthenticator extends CachedAuthenticator {
- /** Install this authenticator implementation into the JVM. */
+ /**
+ * Install this authenticator implementation into the JVM.
+ */
public static void install() {
setDefault(new AwtAuthenticator());
}
+ /** {@inheritDoc} */
@Override
protected PasswordAuthentication promptPasswordAuthentication() {
final GridBagConstraints gbc = new GridBagConstraints(0, 0, 1, 1, 1, 1,
diff --git a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AwtCredentialsProvider.java b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AwtCredentialsProvider.java
index a9967ae49e..edf94cff44 100644
--- a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AwtCredentialsProvider.java
+++ b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/AwtCredentialsProvider.java
@@ -62,9 +62,13 @@ import org.eclipse.jgit.transport.CredentialsProvider;
import org.eclipse.jgit.transport.NetRCCredentialsProvider;
import org.eclipse.jgit.transport.URIish;
-/** Interacts with the user during authentication by using AWT/Swing dialogs. */
+/**
+ * Interacts with the user during authentication by using AWT/Swing dialogs.
+ */
public class AwtCredentialsProvider extends CredentialsProvider {
- /** Install this implementation as the default. */
+ /**
+ * Install this implementation as the default.
+ */
public static void install() {
final AwtCredentialsProvider c = new AwtCredentialsProvider();
CredentialsProvider cp = new ChainingCredentialsProvider(
@@ -72,11 +76,13 @@ public class AwtCredentialsProvider extends CredentialsProvider {
CredentialsProvider.setDefault(cp);
}
+ /** {@inheritDoc} */
@Override
public boolean isInteractive() {
return true;
}
+ /** {@inheritDoc} */
@Override
public boolean supports(CredentialItem... items) {
for (CredentialItem i : items) {
@@ -98,6 +104,7 @@ public class AwtCredentialsProvider extends CredentialsProvider {
return true;
}
+ /** {@inheritDoc} */
@Override
public boolean get(URIish uri, CredentialItem... items)
throws UnsupportedCredentialItem {
diff --git a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java
index 4c8cf53ee9..d122a7728b 100644
--- a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java
+++ b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/CommitGraphPane.java
@@ -81,7 +81,9 @@ public class CommitGraphPane extends JTable {
private final SwingCommitList allCommits;
- /** Create a new empty panel. */
+ /**
+ * Create a new empty panel.
+ */
public CommitGraphPane() {
allCommits = new SwingCommitList();
configureHeader();
@@ -110,6 +112,7 @@ public class CommitGraphPane extends JTable {
return allCommits;
}
+ /** {@inheritDoc} */
@Override
public void setModel(final TableModel dataModel) {
if (dataModel != null && !(dataModel instanceof CommitTableModel))
@@ -117,6 +120,7 @@ public class CommitGraphPane extends JTable {
super.setModel(dataModel);
}
+ /** {@inheritDoc} */
@Override
protected TableModel createDefaultDataModel() {
return new CommitTableModel();
diff --git a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/SwingCommitList.java b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/SwingCommitList.java
index fe0c486ae6..743eb7839b 100644
--- a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/SwingCommitList.java
+++ b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/SwingCommitList.java
@@ -67,6 +67,7 @@ class SwingCommitList extends PlotCommitList<SwingCommitList.SwingLane> {
colors.add(Color.orange);
}
+ /** {@inheritDoc} */
@Override
protected SwingLane createLane() {
final SwingLane lane = new SwingLane();
@@ -76,6 +77,7 @@ class SwingCommitList extends PlotCommitList<SwingCommitList.SwingLane> {
return lane;
}
+ /** {@inheritDoc} */
@Override
protected void recycleLane(final SwingLane lane) {
colors.add(lane.color);
diff --git a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/UIText.java b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/UIText.java
index d9b6d9c1b2..b2b19ad371 100644
--- a/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/UIText.java
+++ b/org.eclipse.jgit.ui/src/org/eclipse/jgit/awtui/UIText.java
@@ -52,6 +52,8 @@ import org.eclipse.jgit.nls.TranslationBundle;
public class UIText extends TranslationBundle {
/**
+ * Get an instance of this translation bundle.
+ *
* @return an instance of this translation bundle
*/
public static UIText get() {