Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.TreePathBreadcrumbViewer;

Check failure on line 22 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Import

The import org.eclipse.jface.viewers.TreePathBreadcrumbViewer cannot be resolved
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
Expand All @@ -30,7 +31,6 @@
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Widget;


/**
* Breadcrumb base class. It creates the breadcrumb viewer and manages
* its activation.
Expand All @@ -42,7 +42,7 @@
*/
public abstract class AbstractBreadcrumb {

private BreadcrumbViewer fBreadcrumbViewer;
private TreePathBreadcrumbViewer fBreadcrumbViewer;

Check failure on line 45 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type

private boolean fHasFocus;

Expand All @@ -67,7 +67,7 @@
* @param parent the parent composite
* @return the viewer
*/
protected abstract BreadcrumbViewer createViewer(Composite parent);
protected abstract TreePathBreadcrumbViewer createViewer(Composite parent);

Check failure on line 70 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type

/**
* Open the element in a new editor if possible.
Expand Down Expand Up @@ -95,7 +95,7 @@
* @return the selection provider for this breadcrumb
*/
public ISelectionProvider getSelectionProvider() {
return fBreadcrumbViewer;

Check failure on line 98 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type
}

/**
Expand All @@ -104,22 +104,22 @@
* @param element the input element can be <code>null</code>
*/
public void setInput(Object element) {
if (element == null || fBreadcrumbViewer == null || fBreadcrumbViewer.getControl().isDisposed()) {

Check failure on line 107 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type

Check failure on line 107 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type
return;
}

Object input= fBreadcrumbViewer.getInput();

Check failure on line 111 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type
if (input == element || element.equals(input)) {
refresh();
return;
}

fBreadcrumbViewer.setInput(element);

Check failure on line 117 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type
}

protected void refresh() {
if (!fBreadcrumbViewer.getControl().isDisposed()) {

Check failure on line 121 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type
fBreadcrumbViewer.refresh();

Check failure on line 122 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type
}
}

Expand All @@ -129,10 +129,10 @@
* actions.
*/
public void activate() {
if (fBreadcrumbViewer.getSelection().isEmpty()) {

Check failure on line 132 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type
fBreadcrumbViewer.setSelection(new StructuredSelection(fBreadcrumbViewer.getInput()));

Check failure on line 133 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type

Check failure on line 133 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type
}
fBreadcrumbViewer.setFocus();

Check failure on line 135 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type
}

/**
Expand Down Expand Up @@ -188,22 +188,18 @@
};
Display.getCurrent().addFilter(SWT.FocusIn, fDisplayFocusListener);

fBreadcrumbViewer= createViewer(fComposite);

Check failure on line 191 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type

Check failure on line 191 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Member

The method createViewer(Composite) from the type AbstractBreadcrumb refers to the missing type TreePathBreadcrumbViewer

fBreadcrumbViewer.addDoubleClickListener(event -> {

Check failure on line 193 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type
Object element= ((IStructuredSelection) event.getSelection()).getFirstElement();
if (element == null) {
return;
}

BreadcrumbItem item= (BreadcrumbItem) fBreadcrumbViewer.doFindItem(element);
if (item == null) {
return;
}
item.openDropDownMenu();
fBreadcrumbViewer.openDropDownMenu(element);
});

fBreadcrumbViewer.addOpenListener(event -> doOpen(event.getSelection()));

Check failure on line 202 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type

return fComposite;
}
Expand All @@ -226,7 +222,7 @@
*/
private void doOpen(ISelection selection) {
if (open(selection)) {
fBreadcrumbViewer.setInput(getCurrentInput());

Check failure on line 225 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type
}
}

Expand Down Expand Up @@ -292,7 +288,7 @@
* @return <code>true</code> if event was generated by a breadcrumb child
*/
private boolean isBreadcrumbEvent(Event event) {
if (fBreadcrumbViewer == null) {

Check failure on line 291 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type
return false;
}

Expand All @@ -301,12 +297,12 @@
return false;
}

Shell dropDownShell= fBreadcrumbViewer.getDropDownShell();

Check failure on line 300 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type
if (dropDownShell != null && isChild((Control) item, dropDownShell)) {
return true;
}

return isChild((Control) item, fBreadcrumbViewer.getControl());

Check failure on line 305 in debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/breadcrumb/AbstractBreadcrumb.java

View check run for this annotation

Jenkins - Eclipse Platform / Compiler

Type

TreePathBreadcrumbViewer cannot be resolved to a type
}

private boolean isChild(Control child, Control parent) {
Expand Down

This file was deleted.

Loading