Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -20,6 +20,7 @@
import java.util.stream.Collectors;

import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IWorkspaceRoot;
import org.eclipse.core.resources.ResourcesPlugin;
Expand Down Expand Up @@ -329,6 +330,11 @@ private static List<PackageNode> convertToPackageNode(Object[] rootContent) thro
if (jarNode != null) {
result.add(jarNode);
}
} else if (root instanceof IFile) {
IFile file = (IFile) root;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting problem...

PackageNode entry = new PackageNode(file.getName(), null, NodeKind.FILE);
entry.setUri(JDTUtils.getFileURI(file));
result.add(entry);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/views/dependencyExplorer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class DependencyExplorer {
this._dependencyViewer = window.createTreeView("javaDependencyExplorer", { treeDataProvider: this._dataProvider });

window.onDidChangeActiveTextEditor((textEditor: TextEditor) => {
if (textEditor && textEditor.document && textEditor.document.languageId === "java" && Settings.syncWithFolderExplorer()) {
if (textEditor && textEditor.document && Settings.syncWithFolderExplorer()) {
this.reveal(textEditor.document.uri);
}
});
Expand Down