Skip to content

Commit

Permalink
Perform clean code of ui/org.eclipse.pde.bnd.ui
Browse files Browse the repository at this point in the history
  • Loading branch information
eclipse-pde-bot authored and laeubi committed Jan 28, 2025
1 parent a98162d commit dff746c
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class HierarchicalLabel<T> {
private static final String DELIMITER_FOR_HIERARCHY = " :: ";

private final List<String> labels;
private Function<HierarchicalLabel<T>, T> leafActionCallback;
private final Function<HierarchicalLabel<T>, T> leafActionCallback;

boolean enabled = true;
boolean checked = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
@AdapterTypes(adaptableClass = Template.class, adapterNames = { ILabelProvider.class, Image.class })
public class TemplateAdapter implements IAdapterFactory {

private RepoTemplateLabelProvider labelProvider = new RepoTemplateLabelProvider();
private final RepoTemplateLabelProvider labelProvider = new RepoTemplateLabelProvider();
private ImageRegistry imageRegistry;

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class EclipseWorkspaceRepository extends AbstractIndexingRepository<IProj

private static final Map<IWorkspace, EclipseWorkspaceRepository> repositoryMap = new ConcurrentHashMap<>();
private boolean initialized;
private IWorkspace workspace;
private final IWorkspace workspace;

EclipseWorkspaceRepository(IWorkspace workspace) {
this.workspace = workspace;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public class BndPreferences {
private static final boolean DEFAULT_PREF_EDITOR_OPEN_SOURCE_TAB = false;

private final IPreferenceStore store;
private IProject project;
private final IProject project;

public BndPreferences(IProject project, IPreferenceStore store) {
this.store = store;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public enum ViewEventTopics {
*/
REPOSITORIESVIEW_OPEN_ADVANCED_SEARCH("EVENT/RepositoriesView/openAdvancedSearch");

private String eventtype;
private final String eventtype;

ViewEventTopics(String eventtype) {
this.eventtype = eventtype;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ public void workspaceOfflineChanged(boolean offline) {

private Workspace workspace;

private IObservableValue<String> workspaceName = new WritableValue<>();
private IObservableValue<String> workspaceDescription = new WritableValue<>();
private final IObservableValue<String> workspaceName = new WritableValue<>();
private final IObservableValue<String> workspaceDescription = new WritableValue<>();

@Override
public void createPartControl(final Composite parent) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class AddFilesToRepositoryWizard extends Wizard {

private final LocalRepositorySelectionPage repoSelectionPage;
private final AddFilesToRepositoryWizardPage fileSelectionPage;
private Workspace workspace;
private final Workspace workspace;

public AddFilesToRepositoryWizard(Workspace workspace, RepositoryPlugin repository, File[] initialFiles) {
this.workspace = workspace;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class LocalRepositorySelectionPage extends WizardPage {
private final PropertyChangeSupport propSupport = new PropertyChangeSupport(this);
private RepositoryPlugin selectedRepository = null;

private Workspace workspace;
private final Workspace workspace;

LocalRepositorySelectionPage(Workspace workspace, String pageName) {
this(workspace, pageName, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public class Tad {
@XmlAttribute(name = "required")
protected Boolean required;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
private final Map<QName, String> otherAttributes = new HashMap<QName, String>();

/**
* Gets the value of the optionOrAny property.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class Tattribute {
@XmlAttribute(name = "content")
protected String content;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
private final Map<QName, String> otherAttributes = new HashMap<QName, String>();

/**
* Gets the value of the valueOrAny property.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class Tdesignate {
@XmlAttribute(name = "merge")
protected Boolean merge;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
private final Map<QName, String> otherAttributes = new HashMap<QName, String>();

/**
* Ruft den Wert der object-Eigenschaft ab.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public class Ticon {
@XmlSchemaType(name = "positiveInteger")
protected BigInteger size;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
private final Map<QName, String> otherAttributes = new HashMap<QName, String>();

/**
* Gets the value of the any property.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class Tmetadata {
@XmlAttribute(name = "localization")
protected String localization;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
private final Map<QName, String> otherAttributes = new HashMap<QName, String>();

/**
* Gets the value of the ocdOrDesignateOrAny property.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class Tobject {
@XmlAttribute(name = "ocdref", required = true)
protected String ocdref;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
private final Map<QName, String> otherAttributes = new HashMap<QName, String>();

/**
* Gets the value of the attributeOrAny property.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class Tocd {
@XmlAttribute(name = "id", required = true)
protected String id;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
private final Map<QName, String> otherAttributes = new HashMap<QName, String>();

/**
* Gets the value of the adOrIconOrAny property.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class Toption {
@XmlAttribute(name = "value", required = true)
protected String value;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
private final Map<QName, String> otherAttributes = new HashMap<QName, String>();

/**
* Gets the value of the any property.
Expand Down

0 comments on commit dff746c

Please sign in to comment.