Skip to content

Commit ac5eadf

Browse files
eclipse-mylyn-botruspl-afed
authored andcommitted
Perform clean code of mylyn.commons/org.eclipse.mylyn.commons.ui
1 parent 648df01 commit ac5eadf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+168
-168
lines changed

mylyn.commons/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/AbstractColumnViewerSorter.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2010, 2024 Tasktop Technologies and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* Tasktop Technologies - initial API and implementation
@@ -26,7 +26,7 @@
2626

2727
/**
2828
* Provides sorting support for column-based viewers such as tables and tree-tables.
29-
*
29+
*
3030
* @author Shawn Minto
3131
* @author Steffen Pingel
3232
* @since 3.7
@@ -35,14 +35,14 @@ public abstract class AbstractColumnViewerSorter<V extends ColumnViewer, I exten
3535

3636
/**
3737
* Returns the current sort column.
38-
*
38+
*
3939
* @return the column that is being sorted; <code>null</code>, if no column is sorted
4040
*/
4141
abstract I getSortColumn(V viewer);
4242

4343
/**
4444
* Returns the current sort order.
45-
*
45+
*
4646
* @return {@link SWT#DOWN}, if sorting descending; 0, if no sort order is specified; {@link SWT#UP}, if sorting ascending
4747
*/
4848
abstract int getSortDirection(V viewer);
@@ -55,7 +55,7 @@ public abstract class AbstractColumnViewerSorter<V extends ColumnViewer, I exten
5555
/**
5656
* Compares <code>e1</code> and <code>e2</code> according to the current sort column and order. Delegates to
5757
* {@link #compareDefault(ColumnViewer, Object, Object)} if no sort column is selected.
58-
*
58+
*
5959
* @see #getSortColumn(ColumnViewer)
6060
* @see #getSortDirection(ColumnViewer)
6161
* @see #compareDefault(ColumnViewer, Object, Object)
@@ -80,7 +80,7 @@ public int compare(Viewer viewer, Object e1, Object e2) {
8080
/**
8181
* Compares <code>e1</code> and <code>e2</code> following the contract of {@link ViewerComparator#compare(Viewer, Object, Object)}.
8282
* Subclasses may override.
83-
*
83+
*
8484
* @see ViewerComparator#compare(Viewer, Object, Object)
8585
*/
8686
protected int compareDefault(V viewer, Object e1, Object e2) {

mylyn.commons/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/AbstractColumnViewerSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2010, 2011 Tasktop Technologies and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* Tasktop Technologies - initial API and implementation

mylyn.commons/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/ClipboardCopier.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2011 Tasktop Technologies and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* Tasktop Technologies - initial API and implementation
@@ -23,7 +23,7 @@
2323

2424
/**
2525
* A helper class for copying text to the clipboard.
26-
*
26+
*
2727
* @author Steffen Pingel
2828
* @since 3.7
2929
*/

mylyn.commons/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/CommonUiUtil.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2013 Tasktop Technologies and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* Tasktop Technologies - initial API and implementation
@@ -162,7 +162,7 @@ private static void restoreState(Composite composite) {
162162

163163
/**
164164
* Returns text masking the &amp;-character from decoration as an accelerator in SWT labels.
165-
*
165+
*
166166
* @deprecated use LegacyActionTools#escapeMnemonics(String) instead
167167
*/
168168
@Deprecated
@@ -172,7 +172,7 @@ public static String toLabel(String text) {
172172

173173
/**
174174
* Returns text for use as the label of an action to ensure that it is displayed properly.
175-
*
175+
*
176176
* @return the cleaned text
177177
*/
178178
public static String toMenuLabel(String label) {

mylyn.commons/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/ConfigurableColumnTableViewerSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2016 Frank Becker and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* Frank Becker - initial API and implementation

mylyn.commons/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/ControlListItem.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2005, 2011 IBM Corporation and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* IBM Corporation - initial API and implementation
@@ -26,7 +26,7 @@
2626

2727
/**
2828
* Based on <code>org.eclipse.ui.internal.progress.ProgressInfoItem</code>.
29-
*
29+
*
3030
* @author Steffen Pingel
3131
* @since 3.7
3232
*/
@@ -83,7 +83,7 @@ interface IndexListener {
8383

8484
/**
8585
* Create a new instance of the receiver with the specified parent, style and info object/
86-
*
86+
*
8787
* @param parent
8888
* @param style
8989
* @param progressInfo
@@ -177,7 +177,7 @@ protected void registerChild(Control child) {
177177

178178
/**
179179
* Set the color base on the index
180-
*
180+
*
181181
* @param index
182182
*/
183183
public void updateColors(int index) {
@@ -216,7 +216,7 @@ public void setBackground(Color color) {
216216

217217
/**
218218
* Set the selection colors.
219-
*
219+
*
220220
* @param select
221221
* boolean that indicates whether or not to show selection.
222222
*/
@@ -227,7 +227,7 @@ public void setSelected(boolean select) {
227227

228228
/**
229229
* Set the listener for index changes.
230-
*
230+
*
231231
* @param indexListener
232232
*/
233233
void setIndexListener(IndexListener indexListener) {
@@ -236,7 +236,7 @@ void setIndexListener(IndexListener indexListener) {
236236

237237
/**
238238
* Return whether or not the receiver is selected.
239-
*
239+
*
240240
* @return boolean
241241
*/
242242
public boolean isSelected() {
@@ -245,7 +245,7 @@ public boolean isSelected() {
245245

246246
/**
247247
* Set whether or not the receiver is being displayed based on the top and bottom of the currently visible area.
248-
*
248+
*
249249
* @param top
250250
* @param bottom
251251
*/
@@ -258,7 +258,7 @@ void setDisplayed(int top, int bottom) {
258258

259259
/**
260260
* Set whether or not the receiver is being displayed
261-
*
261+
*
262262
* @param displayed
263263
*/
264264
private void setDisplayed(boolean displayed) {

mylyn.commons/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/ControlListViewer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2005, 2011 IBM Corporation and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* IBM Corporation - initial API and implementation
@@ -40,7 +40,7 @@
4040

4141
/**
4242
* Based on {@link org.eclipse.ui.internal.progress.DetailedProgressViewer}.
43-
*
43+
*
4444
* @author Steffen Pingel
4545
* @since 3.7
4646
*/
@@ -57,7 +57,7 @@ public abstract class ControlListViewer extends StructuredViewer {
5757

5858
/**
5959
* Create a new instance of the receiver with a control that is a child of parent with style style.
60-
*
60+
*
6161
* @param parent
6262
* @param style
6363
*/
@@ -250,7 +250,7 @@ protected void doUpdateContent() {
250250

251251
/**
252252
* Create a new item for info.
253-
*
253+
*
254254
* @param element
255255
* @return ControlListItem
256256
*/

mylyn.commons/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/FillWidthLayout.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2013 David Green and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* David Green - initial API and implementation
@@ -31,7 +31,7 @@
3131
* A layout that uses the width hint or client area of a composite to recommend the width of its children, allowing children to fill the
3232
* width and specify their preferred height for a given width. Intended for use with a composite that contains a single child that should
3333
* fill available horizontal space.
34-
*
34+
*
3535
* @author David Green
3636
* @since 3.9
3737
*/
@@ -62,7 +62,7 @@ public FillWidthLayout() {
6262

6363
/**
6464
* Creates an instance with specifying margins.
65-
*
65+
*
6666
* @param marginLeft
6767
* the left margin in pixels, or 0 if there should be none
6868
* @param marginRight
@@ -78,7 +78,7 @@ public FillWidthLayout(int marginLeft, int marginRight, int marginTop, int margi
7878

7979
/**
8080
* Creates an instance with specifying margins and a {@link #getLayoutAdvisor() layout advisor}.
81-
*
81+
*
8282
* @param layoutAdvisor
8383
* the composite that is used to advise on layout based on its {@link Composite#getClientArea() client area}.
8484
* @param marginLeft
@@ -195,7 +195,7 @@ protected void layout(Composite composite, boolean flushCache) {
195195

196196
/**
197197
* Returns the composite that is used to advise on layout based on its {@link Composite#getClientArea() client area} .
198-
*
198+
*
199199
* @return the layout advisor, or null if there is none
200200
*/
201201
public Composite getLayoutAdvisor() {
@@ -204,7 +204,7 @@ public Composite getLayoutAdvisor() {
204204

205205
/**
206206
* Sets the composite that is used to advise on layout based on its {@link Composite#getClientArea() client area}.
207-
*
207+
*
208208
* @param layoutAdvisor
209209
* the layout advisor, or null if there is none
210210
*/

mylyn.commons/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/GradientCanvas.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2000, 2015 IBM Corporation and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* IBM Corporation - initial API and implementation
@@ -25,7 +25,7 @@
2525

2626
/**
2727
* Based on {@link org.eclipse.ui.internal.forms.widgets.FormHeading}.
28-
*
28+
*
2929
* @since 3.7
3030
*/
3131
@SuppressWarnings("restriction")
@@ -60,7 +60,7 @@ public class GradientCanvas extends Canvas {
6060

6161
private GradientInfo gradientInfo;
6262

63-
private class GradientInfo {
63+
private static class GradientInfo {
6464
Color[] gradientColors;
6565

6666
int[] percents;
@@ -78,7 +78,7 @@ public boolean forceFocus() {
7878

7979
/**
8080
* Creates the form content control as a child of the provided parent.
81-
*
81+
*
8282
* @param parent
8383
* the parent widget
8484
*/

mylyn.commons/org.eclipse.mylyn.commons.ui/src/org/eclipse/mylyn/commons/ui/GradientColors.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2015 Tasktop Technologies and others.
3-
*
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the Eclipse Public License v. 2.0 which is available at
66
* https://www.eclipse.org/legal/epl-2.0
7-
*
7+
*
88
* SPDX-License-Identifier: EPL-2.0
99
*
1010
* Benjamin Pasero - initial API and implementation
@@ -24,7 +24,7 @@
2424

2525
/**
2626
* Based on FormColors of UI Forms.
27-
*
27+
*
2828
* @author Benjamin Pasero (initial contribution from RSSOwl, see bug 177974)
2929
* @author Mik Kersten
3030
* @since 3.7

0 commit comments

Comments
 (0)