issue_id int64 2.04k 425k | title stringlengths 9 251 | body stringlengths 4 32.8k ⌀ | status stringclasses 6
values | after_fix_sha stringlengths 7 7 | project_name stringclasses 6
values | repo_url stringclasses 6
values | repo_name stringclasses 6
values | language stringclasses 1
value | issue_url null | before_fix_sha null | pull_url null | commit_datetime timestamp[us, tz=UTC] | report_datetime timestamp[us, tz=UTC] | updated_file stringlengths 23 187 | chunk_content stringlengths 1 22k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | /**
* Gets the typeComparator.
* @return Returns a JavaElementTypeComparator
*/
protected Comparator getTypeComparator() {
return fTypeComparator;
}
/**
* Links to editor (if option enabled)
*/
private void linkToEditor(IStructuredSelection selection) {
if (selection == null || selection.isEmpty())
... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | for (int i= 0; i < editorArray.length; ++i) {
IEditorPart editor= editorArray[i];
Object input= getElementOfInput(editor.getEditorInput());
if (input != null && input.equals(element)) {
page.bringToTop(editor);
if (obj instanceof IJavaElement)
EditorUtility.revealInEditor(editor, (IJav... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | return;
}
}
if (ei instanceof IFileEditorInput) {
IFile file= ((IFileEditorInput)ei).getFile();
IJavaElement je= (IJavaElement)file.getAdapter(IJavaElement.class);
if (je == null) {
setSelection(null, false);
return;
}
adjustInputAndSetSelection(je);
} else if (ei instanceof I... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
private IResource getResourceFor(Object element) {
if (element instanceof IJavaElement) {
if (element instanceof IWorkingCopy) {
IWorkingCopy wc= (IWorkingCopy)element;
IJavaElement original= wc.getOriginalElement();
if (original != null)
element= original;
}
try {
element= ((IJavaE... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | */
protected static IJavaElement getWorkingCopy(IJavaElement input) {
try {
if (input instanceof ICompilationUnit)
return ((ICompilationUnit)input).findSharedWorkingCopy(JavaUI.getBufferFactory());
else
return EditorUtility.getWorkingCopy(input, false);
} catch (JavaModelException ex) {
}
return ... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | */
protected static ICompilationUnit getCompilationUnit(IJavaElement element) {
if (element == null)
return null;
if (element instanceof IMember)
return ((IMember) element).getCompilationUnit();
int type= element.getElementType();
if (IJavaElement.COMPILATION_UNIT == type)
return (ICompilationU... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | return element;
if (((BaseJavaElementContentProvider)getViewer().getContentProvider()).getProvideWorkingCopy()) {
IJavaElement wc= getWorkingCopy(element);
if (wc != null)
element= wc;
return element;
}
else {
ICompilationUnit cu= getCompilationUnit(element);
if (cu != null && ((IWorkingCopy)cu... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | unit.reconcile();
return unit.getElementAt(offset);
} catch (JavaModelException ex) {
}
return null;
}
protected IType getTypeForCU(ICompilationUnit cu) {
cu= (ICompilationUnit)getSuitableJavaElement(cu);
IType primaryType= cu.findPrimaryType();
if (primaryType != null)
return primaryType... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | /*******************************************************************************
* Copyright (c) 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5 |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | * which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/cpl-v05.html
*
* Contributors:
* IBM Corporation - initial API and implementation
******************************************************************************/
package org.eclipse.jdt.internal.ui.packageview;
import or... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | import org.eclipse.ui.actions.OpenInNewWindowAction;
import org.eclipse.ui.actions.RefreshAction;
import org.eclipse.ui.views.framelist.BackAction;
import org.eclipse.ui.views.framelist.ForwardAction;
import org.eclipse.ui.views.framelist.FrameList;
import org.eclipse.ui.views.framelist.GoIntoAction;
import org.eclipse... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | private GoIntoAction fZoomInAction;
private BackAction fBackAction;
private ForwardAction fForwardAction;
private UpAction fUpAction;
private GotoTypeAction fGotoTypeAction;
private GotoPackageAction fGotoPackageAction;
private NavigateActionGroup fNavigateActionGroup;
private BuildActionGroup fBuildActionGro... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | PackagesFrameSource frameSource= new PackagesFrameSource(fPart);
FrameList frameList= new FrameList(frameSource);
frameSource.connectTo(frameList);
fZoomInAction= new GoIntoAction(frameList);
fBackAction= new BackAction(frameList);
fForwardAction= new ForwardAction(frameList);
fUpAction= new UpAction(fr... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | setGlobalActionHandlers(actionBars);
fillToolBar(actionBars.getToolBarManager());
fillViewMenu(actionBars.getMenuManager());
}
private void setGlobalActionHandlers(IActionBars actionBars) {
actionBars.setGlobalActionHandler(IWorkbenchActionConstants.GO_INTO, fZoomInAction);
actionBars.setGlobalActionHandle... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
menu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS+"-end"));
}
void handleSelectionChanged(SelectionChangedEvent event) {
fZoomInAction.update();
}
public void fillContextMenu(IMenuManager menu) {
IStructuredSelection selection... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | }
private boolean isNewTarget(IJavaElement element) {
if (element == null)
return false;
int type= element.getElementType();
return type == IJavaElement.JAVA_PROJECT ||
type == IJavaElement.PACKAGE_FRAGMENT_ROOT ||
type == IJavaElement.PACKAGE_FRAGMENT;
}
private boolean isGoIntoTarget(Object ele... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | return;
menu.appendToGroup(
IContextMenuConstants.GROUP_OPEN,
new OpenInNewWindowAction(fPart.getSite().getWorkbenchWindow(), (IContainer)element));
}
void handleDoubleClick(DoubleClickEvent event) {
OpenAction openAction= fNavigateActionGroup.getOpenAction();
if (openAction != null && openAction.isEn... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | return;
if (event.keyCode == SWT.F5) {
RefreshAction action= fBuildActionGroup.getRefreshAction();
if (action.isEnabled())
action.run();
} else if (event.character == SWT.DEL) {
IAction delete= fCCPActionGroup.getDeleteAction();
if (delete.isEnabled())
delete.run();
}
}
private IPrope... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/BuildActionGroup.java | /*******************************************************************************
* Copyright (c) 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanies this... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/BuildActionGroup.java | import org.eclipse.ui.IViewPart;
import org.eclipse.ui.IWorkbenchActionConstants;
import org.eclipse.ui.IWorkbenchSite;
import org.eclipse.ui.actions.ActionGroup;
import org.eclipse.ui.actions.BuildAction;
import org.eclipse.ui.actions.RefreshAction;
import org.eclipse.jdt.internal.ui.actions.ActionMessages;
import org... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/BuildActionGroup.java | fBuildAction= new BuildAction(shell, IncrementalProjectBuilder.INCREMENTAL_BUILD);
fBuildAction.setText(ActionMessages.getString("BuildAction.label"));
fFullBuildAction= new BuildAction(shell, IncrementalProjectBuilder.FULL_BUILD);
fFullBuildAction.setText(ActionMessages.getString("RebuildAction.label"));
... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/BuildActionGroup.java | /* (non-Javadoc)
* Method declared in ActionGroup
*/
public void fillContextMenu(IMenuManager menu) {
super.fillContextMenu(menu);
}
/* (non-Javadoc)
* Method declared in ActionGroup
*/
public void dispose() {
ISelectionProvider provider= fSite.getSelectionProvider();
provider.removeSelectionChanged... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ImportActionGroup.java | /*******************************************************************************
* Copyright (c) 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanies this... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ImportActionGroup.java | *
* @sine 2.0
*/
public class ImportActionGroup extends ActionGroup {
private static final String GROUP_IMPORT= "group.import";
private ImportResourcesAction fImportAction;
private ExportResourcesAction fExportAction;
/**
* Creates a new <code>ImportActionGroup</code>.
*
* @param part the view part that o... |
15,157 | Bug 15157 New-> menu disappears when folder is selected | Build: 20020501 The New-> menu in the packages view is not added to the pop-up menu when a folder is selected. It is added when a source folder is selected. | resolved fixed | a6f6f3f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T11:00:09Z | 2002-05-02T22:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ImportActionGroup.java | menu.appendToGroup(GROUP_IMPORT, fExportAction);
}
super.fillContextMenu(menu);
}
private void appendToGroup(IMenuManager menu, IAction action) {
if (action.isEnabled())
menu.appendToGroup(GROUP_IMPORT, action);
}
private IStructuredSelection getStructuredSelection() {
ISelection selection= getContex... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/CompositeActionGroup.java | /*******************************************************************************
* Copyright (c) 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanies this... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/CompositeActionGroup.java | private ActionGroup[] fGroups;
private static final ActionGroup[] EMPTY_ARRAY= new ActionGroup[0];
public CompositeActionGroup() {
this(EMPTY_ARRAY);
}
public CompositeActionGroup(ActionGroup[] groups) {
setGroups(groups);
}
protected void setGroups(ActionGroup[] groups) {
Assert.isNotNull(groups);
fG... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/CompositeActionGroup.java | public void fillActionBars(IActionBars actionBars) {
super.fillActionBars(actionBars);
for (int i= 0; i < fGroups.length; i++) {
fGroups[i].fillActionBars(actionBars);
}
}
public void fillContextMenu(IMenuManager menu) {
super.fillContextMenu(menu);
for (int i= 0; i < fGroups.length; i++) {
fGroups[i]... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.browsing;
import java.util.Collection;
import java.util.Comparator;
import java.util.Iterator;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resource... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.jface.action.IAction;
import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.ui.IMemento;
import org.eclipse.ui.IPartListener;
import org.eclipse.ui.ISelectionListener;
import org.eclipse.ui.IViewSite;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.IWorkbenchPart;
import org.eclipse.ui.IWorkbenchPartSite;
import org.eclipse.ui.IWorkingSet;
import org.eclipse.ui.I... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.jdt.ui.actions.GenerateActionGroup;
import org.eclipse.jdt.ui.actions.ImportActionGroup;
import org.eclipse.jdt.ui.actions.JavaSearchActionGroup;
import org.eclipse.jdt.ui.actions.OpenEditorActionGroup;
import org.eclipse.jdt.ui.actions.OpenViewActionGroup;
import org.eclipse.jdt.ui.actions.RefactorA... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | private ILabelProvider fLabelProvider;
private ILabelProvider fTitleProvider;
private StructuredViewer fViewer;
private IMemento fMemento;
private JavaElementTypeComparator fTypeComparator;
private WorkingSetFilterActionGroup fWorkingSetFilterActionGroup;
private CCPActionGroup fCCPActionGroup;
private Build... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | private Object fPreviousSelectedElement;
private Image fOriginalTitleImage;
/*
* Ensure selection changed events being processed only if
* initiated by user interaction with this part.
*/
private boolean fProcessSelectionEvents= true;
private IPartListener fPartListener= new IPartListener() {
public voi... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | */
public void saveState(IMemento memento) {
if (fViewer == null) {
if (fMemento != null)
memento.putMemento(fMemento);
return;
}
fWorkingSetFilterActionGroup.saveState(memento);
}
protected void restoreState(IMemento memento) {
fWorkingSetFilterActionGroup.restoreState(memento);
}
/**
*... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | menuMgr.setRemoveAllWhenShown(true);
menuMgr.addMenuListener(this);
fContextMenu= menuMgr.createContextMenu(fViewer.getControl());
fViewer.getControl().setMenu(fContextMenu);
getSite().registerContextMenu(menuMgr, fViewer);
getSite().setSelectionProvider(fViewer);
createActions();
addKeyListener();
i... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | getViewSite().getWorkbenchWindow().getSelectionService().addSelectionListener(this);
getViewSite().getPage().addPartListener(fPartListener);
fillActionBars();
setHelp();
}
private void initDragAndDrop() {
int ops= DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK;
Transfer[] transfers= new Transfer[] {
... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | IStructuredSelection selection= (IStructuredSelection)getSelectionProvider().getSelection();
for (Iterator iter= selection.iterator(); iter.hasNext(); ) {
if (iter.next() instanceof IMember) {
setPossibleListeners(new TransferDragSourceListener[] {new SelectionTransferDragAdapter(fViewer)});
break;... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
public void dispose() {
if (fViewer != null) {
getViewSite().getWorkbenchWindow().getSelectionService().removeSelectionListener(this);
getViewSite().getPage().removePartListener(fPartListener);
fViewer= null;
}
if (fActionGroups != null)
fActionGroups.dispose();
super.dispose();
}
/**
* A... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | action= fBuildActionGroup.getRefreshAction();
if (action.isEnabled())
action.run();
} if (event.character == SWT.DEL) {
action= fCCPActionGroup.getDeleteAction();
if (action.isEnabled())
action.run();
}
}
protected void fillToolBar(IToolBarManager tbm) {
}
/**
* Called when the context... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
if (size == 1)
addOpenNewWindowAction(menu, element);
fActionGroups.setContext(new ActionContext(selection));
fActionGroups.fillContextMenu(menu);
fActionGroups.setContext(null);
}
private boolean isNewTarget(IJavaElement element) {
if (element == null)
return false;
int type= element.getElementTy... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
private void createActions() {
fActionGroups= new CompositeActionGroup(new ActionGroup[] {
new OpenEditorActionGroup(this),
new OpenViewActionGroup(this),
new ShowActionGroup(this),
fCCPActionGroup= new CCPActionGroup(this),
new RefactorActionGroup(this),
new ImportActionGroup(this),
... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | return fViewer.getControl().getShell();
}
protected final Display getDisplay() {
return fViewer.getControl().getDisplay();
}
/**
* Returns the selection provider.
*/
ISelectionProvider getSelectionProvider() {
return fViewer;
}
/**
* Answers if the given <code>element</code> is a valid
* input for t... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | if (element == null)
return false;
Object input= getViewer().getInput();
if (input == null)
return false;
if (input instanceof Collection)
return ((Collection)input).contains(element);
else
return input.equals(element);
}
private boolean isInputResetBy(Object newInput, Object input, IWorkbenchPart... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | if (element instanceof IJavaElement && ancestor instanceof IJavaElement)
return !element.equals(ancestor) && internalIsAncestorOf((IJavaElement)ancestor, (IJavaElement)element);
return false;
}
private boolean internalIsAncestorOf(IJavaElement ancestor, IJavaElement element) {
if (element != null)
return ... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
if (part != fPreviousSelectionProvider && selectedElement != null && !selectedElement.equals(currentInput) && isInputResetBy(selectedElement, currentInput, part)) {
if (!isAncestorOf(selectedElement, currentInput))
setInput(null);
fPreviousSelectionProvider= part;
return;
} else if (selection.i... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | else {
Object firstElement= ((Collection)input).iterator().next();
setTitleImage(fTitleProvider.getImage(firstElement));
}
} else
setTitleImage(fTitleProvider.getImage(input));
setViewerInput(input);
updateTitle();
}
private void setViewerInput(Object input) {
fProcessSelectionEvents= false;
f... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
}
if (fWorkingSetFilterActionGroup == null || fWorkingSetFilterActionGroup.getWorkingSet() == null)
return result;
IWorkingSet ws= fWorkingSetFilterActionGroup.getWorkingSet();
String wsstr= JavaBrowsingMessages.getFormattedString("JavaBrowsingPart.toolTip", new String[] { ws.getName() });
if (result... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
protected ILabelProvider createLabelProvider() {
return new AppearanceAwareLabelProvider(
AppearanceAwareLabelProvider.DEFAULT_TEXTFLAGS,
AppearanceAwareLabelProvider.DEFAULT_IMAGEFLAGS | JavaElementImageProvider.SMALL_ICONS,
AppearanceAwareLabelProvider.getDecorators(true, null)
);
}
pro... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | /**
* Adds filters the viewer of this part.
*/
protected void addFilters() {
}
/**
* Creates the the content provider of this part.
*/
protected BaseJavaElementContentProvider createContentProvider() {
return new JavaElementContentProvider(true, this);
}
protected void setInitialInput() {
ISele... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | else {
input= getSite().getPage().getInput();
if (!(input instanceof IJavaElement)) {
if (input instanceof IAdaptable)
input= ((IAdaptable)input).getAdapter(IJavaElement.class);
else
return;
}
}
if (findElementToSelect((IJavaElement)input) != null)
adjustInputAndSetSelection((IJava... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | IWorkbenchPage page= getSite().getPage();
if (page == null)
return;
if (JavaBrowsingPreferencePage.openEditorOnSingleClick())
new ShowInEditorAction().run(event.getSelection(), page);
else if (page.equals(JavaPlugin.getActivePage()) && JavaBrowsingPart.this.equals(page.getActivePart()))
linkT... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | setSelection(StructuredSelection.EMPTY, true);
}
/**
* Finds the closest Java element which can be used as input for
* this part and has the given Java element as child
*
* @param je the Java element for which to search the closest input
* @return the closest Java element used as input for this part
*/... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | private Object getSingleElementFromSelection(ISelection selection) {
if (!(selection instanceof StructuredSelection) || selection.isEmpty())
return null;
Iterator iter= ((StructuredSelection)selection).iterator();
Object firstElement= iter.next();
if (!(firstElement instanceof IJavaElement)) {
if (firs... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | /**
* Gets the typeComparator.
* @return Returns a JavaElementTypeComparator
*/
protected Comparator getTypeComparator() {
return fTypeComparator;
}
/**
* Links to editor (if option enabled)
*/
private void linkToEditor(IStructuredSelection selection) {
if (selection == null || selection.isEmpty())
... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | for (int i= 0; i < editorArray.length; ++i) {
IEditorPart editor= editorArray[i];
Object input= getElementOfInput(editor.getEditorInput());
if (input != null && input.equals(element)) {
page.bringToTop(editor);
if (obj instanceof IJavaElement)
EditorUtility.revealInEditor(editor, (IJav... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | return;
}
}
if (ei instanceof IFileEditorInput) {
IFile file= ((IFileEditorInput)ei).getFile();
IJavaElement je= (IJavaElement)file.getAdapter(IJavaElement.class);
if (je == null) {
setSelection(null, false);
return;
}
adjustInputAndSetSelection(je);
} else if (ei instanceof I... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
private IResource getResourceFor(Object element) {
if (element instanceof IJavaElement) {
if (element instanceof IWorkingCopy) {
IWorkingCopy wc= (IWorkingCopy)element;
IJavaElement original= wc.getOriginalElement();
if (original != null)
element= original;
}
try {
element= ((IJavaE... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | */
protected static IJavaElement getWorkingCopy(IJavaElement input) {
try {
if (input instanceof ICompilationUnit)
return ((ICompilationUnit)input).findSharedWorkingCopy(JavaUI.getBufferFactory());
else
return EditorUtility.getWorkingCopy(input, false);
} catch (JavaModelException ex) {
}
return ... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | */
protected static ICompilationUnit getCompilationUnit(IJavaElement element) {
if (element == null)
return null;
if (element instanceof IMember)
return ((IMember) element).getCompilationUnit();
int type= element.getElementType();
if (IJavaElement.COMPILATION_UNIT == type)
return (ICompilationU... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | return element;
if (((BaseJavaElementContentProvider)getViewer().getContentProvider()).getProvideWorkingCopy()) {
IJavaElement wc= getWorkingCopy(element);
if (wc != null)
element= wc;
return element;
}
else {
ICompilationUnit cu= getCompilationUnit(element);
if (cu != null && ((IWorkingCopy)cu... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | unit.reconcile();
return unit.getElementAt(offset);
} catch (JavaModelException ex) {
}
return null;
}
protected IType getTypeForCU(ICompilationUnit cu) {
cu= (ICompilationUnit)getSuitableJavaElement(cu);
IType primaryType= cu.findPrimaryType();
if (primaryType != null)
return primaryType... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/ProjectsView.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.browsing;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.jface.viewers.StructuredViewer;
import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IWorkbenchActionConstants;... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/ProjectsView.java | /**
* Creates the the viewer of this part.
*
* @param parent the parent for the viewer
*/
protected StructuredViewer createViewer(Composite parent) {
return new ProblemTreeViewer(parent, SWT.MULTI);
}
/**
* Creates the the content provider of this part.
*/
protected BaseJavaElementContentProvider c... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/ProjectsView.java | IJavaElement root= JavaCore.create(JavaPlugin.getDefault().getWorkspace().getRoot());
getViewer().setInput(root);
updateTitle();
}
/**
* Answers if the given <code>element</code> is a valid
* input for this part.
*
* @param element the object to test
* @return <true> if the given element is a valid in... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/ProjectsView.java | if (je == null)
return null;
switch (je.getElementType()) {
case IJavaElement.JAVA_MODEL :
return null;
case IJavaElement.JAVA_PROJECT:
return je;
case IJavaElement.PACKAGE_FRAGMENT_ROOT:
if (je.getElementName().equals(IPackageFragmentRoot.DEFAULT_PACKAGEROOT_PATH))
return je.getParen... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | /*******************************************************************************
* Copyright (c) 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanies this... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | import org.eclipse.jface.action.Separator;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.jface.viewers.DoubleClickEvent;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.ecli... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | import org.eclipse.jdt.core.IOpenable;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.ui.IContextMenuConstants;
import org.eclipse.jdt.ui.JavaUI;
import org.eclipse.jdt.ui.actions.BuildActionGroup;
import org.eclipse.jdt.ui.actions.CCPActionGroup;
import org.eclipse.jdt.ui.actions.GenerateAction... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | private NavigateActionGroup fNavigateActionGroup;
private BuildActionGroup fBuildActionGroup;
private CCPActionGroup fCCPActionGroup;
private WorkingSetFilterActionGroup fWorkingSetFilterActionGroup;
private MemberFilterActionGroup fMemberFilterActionGroup;
private ShowLibrariesAction fShowLibrariesAction;
p... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | fZoomInAction= new GoIntoAction(frameList);
fBackAction= new BackAction(frameList);
fForwardAction= new ForwardAction(frameList);
fUpAction= new UpAction(frameList);
fRenameResourceAction= new RenameResourceAction(shell);
fMoveResourceAction= new MoveResourceAction(shell);
fGotoTypeAction= new GotoType... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | update(selection);
}
private void update(IStructuredSelection selection) {
int size= selection.size();
Object element= selection.getFirstElement();
IActionBars actionBars= fPart.getViewSite().getActionBars();
if (size == 1 && element instanceof IResource) {
actionBars.setGlobalActionHandler(IWorkbenchActio... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | fillViewMenu(actionBars.getMenuManager());
}
private void setGlobalActionHandlers(IActionBars actionBars) {
actionBars.setGlobalActionHandler(IWorkbenchActionConstants.GO_INTO, fZoomInAction);
actionBars.setGlobalActionHandler(IWorkbenchActionConstants.BACK, fBackAction);
actionBars.setGlobalActionHandler(IW... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | }
void handleSelectionChanged(SelectionChangedEvent event) {
fZoomInAction.update();
}
public void fillContextMenu(IMenuManager menu) {
IStructuredSelection selection= (IStructuredSelection)getContext().getSelection();
int size= selection.size();
Object element= selection.getFirstElement();
IJavaEleme... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | private boolean isNewTarget(IJavaElement element) {
if (element == null)
return false;
int type= element.getElementType();
return type == IJavaElement.JAVA_PROJECT ||
type == IJavaElement.PACKAGE_FRAGMENT_ROOT ||
type == IJavaElement.PACKAGE_FRAGMENT ||
type == IJavaElement.COMPILATION_UNIT ||
typ... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | return;
menu.appendToGroup(
IContextMenuConstants.GROUP_OPEN,
new OpenInNewWindowAction(fPart.getSite().getWorkbenchWindow(), (IContainer)element));
}
void handleDoubleClick(DoubleClickEvent event) {
OpenAction openAction= fNavigateActionGroup.getOpenAction();
if (openAction != null && openAction.isEn... |
3,733 | Bug 3733 'close project' not available in the package view (1GEHFLT) | AK (5/29/01 12:05:55 PM) should the 'close project' action be available also in the package view? NOTES: EG (5/29/01 5:31:26 PM) not for June EG (7/12/01 2:23:28 PM) this requires JavaModel support so that closed projects show up in the UI. Otherwise closing a project makes it disappear. | resolved fixed | d988952 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T14:36:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/PackageExplorerActionGroup.java | return;
if (event.keyCode == SWT.F5) {
RefreshAction action= fBuildActionGroup.getRefreshAction();
if (action.isEnabled())
action.run();
} else if (event.character == SWT.DEL) {
IAction delete= fCCPActionGroup.getDeleteAction();
if (delete.isEnabled())
delete.run();
}
}
private IPrope... |
12,720 | Bug 12720 Can't DND into non-source folder in Packages view | Build 20020321 In the Packages view, I can drag a file from the file system onto a project, a package or a source folder. However I cannot drag it onto a non-source folder. I can, however, drag the file onto the project, and then drag it into the non- source folder from within the packages view. The packages view shoul... | resolved fixed | 5dacc76 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:25:51Z | 2002-04-03T18:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.packageview;
import java.io.File;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;
import java.util.ResourceBundle;
import org.eclipse.swt.SWT;
import org.eclip... |
12,720 | Bug 12720 Can't DND into non-source folder in Packages view | Build 20020321 In the Packages view, I can drag a file from the file system onto a project, a package or a source folder. However I cannot drag it onto a non-source folder. I can, however, drag the file onto the project, and then drag it into the non- source folder from within the packages view. The packages view shoul... | resolved fixed | 5dacc76 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:25:51Z | 2002-04-03T18:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java | import org.eclipse.core.resources.IContainer;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Path;
import org.eclipse.ui.dialogs.IOverwriteQuery;
import org.eclipse.ui.wizards.datatransfer.FileSystemStructureProvider;
import org.eclipse.ui.wizards.datatra... |
12,720 | Bug 12720 Can't DND into non-source folder in Packages view | Build 20020321 In the Packages view, I can drag a file from the file system onto a project, a package or a source folder. However I cannot drag it onto a non-source folder. I can, however, drag the file onto the project, and then drag it into the non- source folder from within the packages view. The packages view shoul... | resolved fixed | 5dacc76 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:25:51Z | 2002-04-03T18:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java | }
private int openDialog(final Control control, final String file) {
final int[] result= { Dialog.CANCEL };
control.getDisplay().syncExec(new Runnable() {
public void run() {
String title= PackagesMessages.getString("DropAdapter.question");
String msg= PackagesMessages.getFormattedString("DropAdapte... |
12,720 | Bug 12720 Can't DND into non-source folder in Packages view | Build 20020321 In the Packages view, I can drag a file from the file system onto a project, a package or a source folder. However I cannot drag it onto a non-source folder. I can, however, drag the file onto the project, and then drag it into the non- source folder from within the packages view. The packages view shoul... | resolved fixed | 5dacc76 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:25:51Z | 2002-04-03T18:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java | if (!(isPackageFragment || isJavaProject || isPackageFragmentRoot))
return;
IJavaElement element= (IJavaElement)target;
if (!element.isReadOnly())
event.detail= DND.DROP_COPY;
return;
}
public void drop(Object javaTarget, DropTargetEvent event) {
int operation= event.detail;
event.detail... |
12,720 | Bug 12720 Can't DND into non-source folder in Packages view | Build 20020321 In the Packages view, I can drag a file from the file system onto a project, a package or a source folder. However I cannot drag it onto a non-source folder. I can, however, drag the file onto the project, and then drag it into the non- source folder from within the packages view. The packages view shoul... | resolved fixed | 5dacc76 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:25:51Z | 2002-04-03T18:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java | ProgressMonitorDialog dialog= new ProgressMonitorDialog(shell);
try {
dialog.run(true, true, op);
} catch (InvocationTargetException e) {
String title= PackagesMessages.getString("DropAdapter.errorTitle");
String message= PackagesMessages.getString("DropAdapter.errorMessage");
ExceptionHandl... |
12,720 | Bug 12720 Can't DND into non-source folder in Packages view | Build 20020321 In the Packages view, I can drag a file from the file system onto a project, a package or a source folder. However I cannot drag it onto a non-source folder. I can, however, drag the file onto the project, and then drag it into the non- source folder from within the packages view. The packages view shoul... | resolved fixed | 5dacc76 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:25:51Z | 2002-04-03T18:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/packageview/FileTransferDropAdapter.java | } else {
event.data= null;
return;
}
}
private List checkFiles(Shell shell, String[] files, IPath target) {
List result= new ArrayList(10);
int lengthCompare= target.segmentCount() + 1;
for (int i= 0; i < files.length; i++) {
String file= files[i];
IPath path= new Path(file);
String error= nu... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java | /*******************************************************************************
* Copyright (c) 2000, 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanie... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java | import org.eclipse.jdt.core.dom.ArrayAccess;
import org.eclipse.jdt.core.dom.ArrayCreation;
import org.eclipse.jdt.core.dom.Assignment;
import org.eclipse.jdt.core.dom.BodyDeclaration;
import org.eclipse.jdt.core.dom.CastExpression;
import org.eclipse.jdt.core.dom.ClassInstanceCreation;
import org.eclipse.jdt.core.dom.... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java | public static ASTNode findSelectedNode(CompilationUnit cuNode, int offset, int length) {
SelectionAnalyzer analyzer= new SelectionAnalyzer(Selection.createFromStartLength(offset, length), true);
cuNode.accept(analyzer);
return analyzer.getFirstSelectedNode();
}
public static ITypeBinding getTypeBinding(AST... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java | private static ITypeBinding getPossibleTypeBinding(ASTNode node) {
ASTNode parent= node.getParent();
switch (parent.getNodeType()) {
case ASTNode.ASSIGNMENT:
Assignment assignment= (Assignment) parent;
if (node.equals(assignment.getLeftHandSide())) {
return assignment.getRightHandSide().resolveTyp... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java | if (frag.getInitializer().equals(node)) {
ASTNode declaration= frag.getParent();
if (declaration instanceof VariableDeclarationStatement) {
return ((VariableDeclarationStatement)declaration).getType().resolveBinding();
} else if (declaration instanceof FieldDeclaration) {
return ((FieldDeclaration... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java | break;
case ASTNode.CLASS_INSTANCE_CREATION:
ClassInstanceCreation creation= (ClassInstanceCreation) parent;
IMethodBinding creationBinding= creation.resolveConstructorBinding();
if (creationBinding != null) {
return getParameterTypeBinding(node, creation.arguments(), creationBinding);
}
break;
c... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java | }
if (node.equals(expression.getElseExpression())) {
return expression.getThenExpression().resolveTypeBinding();
}
return expression.getElseExpression().resolveTypeBinding();
case ASTNode.POSTFIX_EXPRESSION:
return parent.getAST().resolveWellKnownType("int");
case ASTNode.PREFIX_EXPRESSION:
if (... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java | case ASTNode.CAST_EXPRESSION:
return ((CastExpression) parent).getType().resolveBinding();
}
return null;
}
private static ITypeBinding getParameterTypeBinding(ASTNode node, List args, IMethodBinding binding) {
ITypeBinding[] paramTypes= binding.getParameterTypes();
int index= args.indexOf(node);
if ... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/ASTResolving.java | while ((node != null) && (!(node instanceof Statement))) {
node= node.getParent();
}
return (Statement) node;
}
public static boolean isInStaticContext(ASTNode selectedNode) {
BodyDeclaration decl= ASTResolving.findParentBodyDeclaration(selectedNode);
if (decl instanceof MethodDeclaration) {
return Mo... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java | /*******************************************************************************
* Copyright (c) 2000, 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License v0.5
* which accompanie... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java | import org.eclipse.swt.graphics.Image;
import org.eclipse.jface.text.IDocument;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.texteditor.ITextEditor;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IM... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java | private ICompilationUnit fCurrCU;
private IType fDestType;
private MethodInvocation fNode;
private MemberEdit fMemberEdit;
public NewMethodCompletionProposal(String label, MethodInvocation node, ICompilationUnit currCU, IType destType, int relevance) throws CoreException {
super(label, destType.getCompilationUnit... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java | ImportEdit importEdit= new ImportEdit(changedCU, settings);
IMethod currMethod= null;
IJavaElement elem= fCurrCU.getElementAt(fNode.getStartPosition());
if (elem != null && elem.getElementType() == IJavaElement.METHOD) {
currMethod= (IMethod) elem;
}
String content= generateStub(importEdit, settings);
... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java | boolean isStatic= false;
Expression sender= fNode.getExpression();
if (sender != null) {
if (sender instanceof Name) {
IBinding binding= ((Name) sender).resolveBinding();
if (binding != null) {
isStatic= (binding.getKind() == binding.TYPE);
}
}
} else {
isStatic= ASTResolving.isInStaticC... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java | }
if (isSameType) {
buf.append("private ");
} else if (!isInterface) {
buf.append("public ");
}
if (isStatic) {
buf.append("static ");
}
buf.append(returnTypeName);
buf.append(' ');
buf.append(methodName);
buf.append('(');
if (!arguments.isEmpty()) {
for (int i= 0; i < arg... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java | } else {
buf.append("{\n");
if (!returnType.isPrimitive()) {
buf.append("return null;\n");
} else if (returnTypeName.equals("boolean")) {
buf.append("return false;\n");
} else if (!returnTypeName.equals("void")) {
buf.append("return 0;\n");
}
buf.append("}\n");
}
return buf.to... |
15,330 | Bug 15330 NPE with quickfix | build 0425 JButton desktop=new JButton("Hintergrund"); desktop.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { JDesktopPane pane=SwingUtilities<ERROR>(JDesktopPane.class,this); } }); <ERROR> it should be SwingUtilities.getAnchestorOfClass Of course the above code snippet produceed ... | resolved fixed | 0b6a99d | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-05-07T16:53:48Z | 2002-05-06T15:46:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java | }
return (String[]) names.toArray(new String[names.size()]);
}
private ITypeBinding evaluateMethodType(MethodInvocation invocation, ImportEdit importEdit) {
ITypeBinding binding= ASTResolving.getTypeBinding(invocation);
if (binding != null) {
ITypeBinding baseType= binding.isArray() ? binding.getElementTyp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.