Skip to content

Commit 04f7808

Browse files
eclipse-mylyn-botruspl-afed
authored andcommitted
Perform clean code of mylyn.context/org.eclipse.mylyn.pde.ui
1 parent 8507914 commit 04f7808

File tree

9 files changed

+29
-31
lines changed

9 files changed

+29
-31
lines changed

mylyn.context/org.eclipse.mylyn.pde.ui/src/org/eclipse/mylyn/internal/pde/ui/Messages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2008 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.context/org.eclipse.mylyn.pde.ui/src/org/eclipse/mylyn/internal/pde/ui/PdeContextLabelProvider.java

Lines changed: 2 additions & 2 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

mylyn.context/org.eclipse.mylyn.pde.ui/src/org/eclipse/mylyn/internal/pde/ui/PdeEditingMonitor.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2008 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
@@ -51,15 +51,13 @@ public PdeEditingMonitor() {
5151
@Override
5252
protected void handleWorkbenchPartSelection(IWorkbenchPart part, ISelection selection,
5353
boolean contributeToContext) {
54-
if (part instanceof ManifestEditor) {
54+
if (part instanceof ManifestEditor editor) {
5555
TextSelection textSelection = null;
5656
IEditorInput in = null;
5757

5858
// assume that we are editing an xml file due to the editor used
5959
// this is the plugin.xml editor
6060

61-
ManifestEditor editor = (ManifestEditor) part;
62-
6361
// fix bug when user is looking in the cvs repository since the
6462
// input
6563
// is not a FileEditorInput

mylyn.context/org.eclipse.mylyn.pde.ui/src/org/eclipse/mylyn/internal/pde/ui/PdeStructureBridge.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
@@ -173,7 +173,7 @@ public Object getObjectForHandle(String handle) {
173173

174174
/**
175175
* Handle is filename;hashcodeOfElementAndAttributes
176-
*
176+
*
177177
* @see org.eclipse.mylyn.context.core.AbstractContextStructureBridge#getHandleIdentifier(java.lang.Object)
178178
*/
179179
@Override

mylyn.context/org.eclipse.mylyn.pde.ui/src/org/eclipse/mylyn/internal/pde/ui/PdeUiBridge.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2008 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
@@ -124,7 +124,7 @@ public void open(IInteractionElement node) {
124124

125125
/**
126126
* Open a file in the appropriate editor
127-
*
127+
*
128128
* @param file
129129
* The IFile to open
130130
* @param activate
@@ -268,10 +268,10 @@ public void refreshOutline(Object element, boolean updateLabels, boolean setSele
268268

269269
/**
270270
* Class to listen to the tree views to attempt to refresh them more frequently to keep the ui model consistant with the user selections
271-
*
271+
*
272272
* @author Shawn Minto
273273
*/
274-
private class TreeViewerListener implements ISelectionChangedListener, ITreeViewerListener {
274+
private static class TreeViewerListener implements ISelectionChangedListener, ITreeViewerListener {
275275
@Override
276276
public void selectionChanged(SelectionChangedEvent event) {
277277
Object o = event.getSource();

mylyn.context/org.eclipse.mylyn.pde.ui/src/org/eclipse/mylyn/internal/pde/ui/PdeUiBridgePlugin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2008 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.context/org.eclipse.mylyn.pde.ui/src/org/eclipse/mylyn/internal/pde/ui/XmlJavaRelationProvider.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2008 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
@@ -302,7 +302,7 @@ public static class XMLSearchJob extends Job {
302302

303303
/**
304304
* Constructor
305-
*
305+
*
306306
* @param name
307307
*/
308308
public XMLSearchJob(String name, XMLSearchOperation op) {
@@ -362,7 +362,7 @@ public IStatus run(IProgressMonitor monitor) {
362362

363363
/**
364364
* Constructor
365-
*
365+
*
366366
* @param data
367367
*/
368368
public XMLSearchOperation(TextSearchScope scope, String searchString) {
@@ -374,7 +374,7 @@ public XMLSearchOperation(TextSearchScope scope, String searchString) {
374374

375375
/**
376376
* Add a listener for when the bugzilla search is completed
377-
*
377+
*
378378
* @param l
379379
* The listener to add
380380
*/
@@ -386,7 +386,7 @@ public void addListener(IActiveSearchListener l) {
386386

387387
/**
388388
* Remove a listener for when the bugzilla search is completed
389-
*
389+
*
390390
* @param l
391391
* The listener to remove
392392
*/
@@ -398,7 +398,7 @@ public void removeListener(IActiveSearchListener l) {
398398

399399
/**
400400
* Notify all of the listeners that the bugzilla search is completed
401-
*
401+
*
402402
* @param doiList
403403
* A list of BugzillaSearchHitDoiInfo
404404
* @param member

mylyn.context/org.eclipse.mylyn.pde.ui/src/org/eclipse/mylyn/internal/pde/ui/junit/Messages.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2008 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.context/org.eclipse.mylyn.pde.ui/src/org/eclipse/mylyn/internal/pde/ui/junit/TaskContextPdeJUnitTabGroup.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*******************************************************************************
22
* Copyright (c) 2004, 2008 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
@@ -27,7 +27,7 @@
2727

2828
/**
2929
* Copied from: JUnitTabGroup
30-
*
30+
*
3131
* @author Mik Kersten
3232
*/
3333
@SuppressWarnings("restriction")

0 commit comments

Comments
 (0)