Skip to content

Commit

Permalink
remove (again) the old commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
carstenartur authored and jjohnstn committed Oct 16, 2024
1 parent de7038d commit 45384e4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,6 @@ protected void activateBreadcrumb() {
IEditorSite editorSite= getJavaEditor().getEditorSite();
IContextService contextService = editorSite.getService(IContextService.class);
contextService.activateContext("org.eclipse.jdt.ui.breadcrumbEditorScope"); //$NON-NLS-1$
// editorSite.getKeyBindingService().setScopes(new String[] { "org.eclipse.jdt.ui.breadcrumbEditorScope" }); //$NON-NLS-1$
getJavaEditor().setActionsActivated(false);
fBreadcrumbActionGroup.fillActionBars(editorSite.getActionBars());
}
Expand All @@ -584,7 +583,6 @@ protected void deactivateBreadcrumb() {
IEditorSite editorSite= getJavaEditor().getEditorSite();
IContextService contextService = editorSite.getService(IContextService.class);
contextService.activateContext("org.eclipse.jdt.ui.javaEditorScope"); //$NON-NLS-1$
// editorSite.getKeyBindingService().setScopes(new String[] { "org.eclipse.jdt.ui.javaEditorScope" }); //$NON-NLS-1$
getJavaEditor().getActionGroup().fillActionBars(editorSite.getActionBars());
getJavaEditor().setActionsActivated(true);
fEditorSelection= null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,6 @@ private CPListElement[] addProjectDialog() {
Object[] selectArr= getNotYetRequiredProjects();
new JavaElementComparator().sort(null, selectArr);

// ListSelectionDialog dialog= new ListSelectionDialog(getShell(), Arrays.asList(selectArr), ArrayContentProvider.getInstance(), new JavaUILabelProvider(), NewWizardMessages.ProjectsWorkbookPage_chooseProjects_message);
ListSelectionDialog dialog= ListSelectionDialog.of(Arrays.asList(selectArr)).contentProvider(ArrayContentProvider.getInstance()).labelProvider(new JavaUILabelProvider()).message(NewWizardMessages.ProjectsWorkbookPage_chooseProjects_message).create(getShell());
dialog.setTitle(NewWizardMessages.ProjectsWorkbookPage_chooseProjects_title);
dialog.setHelpAvailable(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ public void run(IStructuredSelection selection) {
}

private void internalRun(List<?> initialSelection) {
// ListSelectionDialog dialog= new ListSelectionDialog(getShell(), getClosedProjectsInWorkspace(), ArrayContentProvider.getInstance(), new JavaElementLabelProvider(), ActionMessages.OpenProjectAction_dialog_message);
ListSelectionDialog dialog= ListSelectionDialog.of(getClosedProjectsInWorkspace()).contentProvider(ArrayContentProvider.getInstance()).labelProvider(new JavaElementLabelProvider()).message(ActionMessages.OpenProjectAction_dialog_message).create(getShell());
dialog.setTitle(ActionMessages.OpenProjectAction_dialog_title);
if (initialSelection != null && !initialSelection.isEmpty()) {
Expand Down

0 comments on commit 45384e4

Please sign in to comment.