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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | orientation= VIEW_ORIENTATION_VERTICAL;
}
fCurrentOrientation= -1;
setOrientation(orientation);
IActionBars actionBars= getViewSite().getActionBars();
IMenuManager viewMenu= actionBars.getMenuManager();
for (int i= 0; i < fToggleOrientationActions.length; i++) {
viewMenu.add(fToggleOrientatio... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | fSelectionProviderMediator= new SelectionProviderMediator(trackedViewers);
IStatusLineManager slManager= getViewSite().getActionBars().getStatusLineManager();
fSelectionProviderMediator.addSelectionChangedListener(new StatusBarUpdater(slManager));
getSite().setSelectionProvider(fSelectionProviderMediator);
g... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | /**
* called from ToggleOrientationAction.
* @param orientation VIEW_ORIENTATION_SINGLE, VIEW_ORIENTATION_HORIZONTAL or VIEW_ORIENTATION_VERTICAL
*/
public void setOrientation(int orientation) {
if (fCurrentOrientation != orientation) {
boolean methodViewerNeedsUpdate= false;
if (fMethodViewerViewFo... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | updateMethodViewer(fSelectedType);
}
fDialogSettings.put(DIALOGSTORE_VIEWORIENTATION, orientation);
}
}
private void updateMainToolbar(int orientation) {
IActionBars actionBars= getViewSite().getActionBars();
IToolBarManager tbmanager= actionBars.getToolBarManager();
if (orientation == VIEW_O... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | private void clearMainToolBar(IToolBarManager tbmanager) {
tbmanager.removeAll();
tbmanager.update(false);
}
/**
* Creates the context menu for the hierarchy viewers
*/
private void fillTypesViewerContextMenu(TypeHierarchyViewer viewer, IMenuManager menu) {
JavaPlugin.createStandardGroups(menu);
... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | */
private void fillMethodsViewerContextMenu(IMenuManager menu) {
JavaPlugin.createStandardGroups(menu);
fMethodsViewer.contributeToContextMenu(menu);
if (fSelectedType != null && fAddStubAction.init(fSelectedType, fMethodsViewer.getSelection())) {
menu.appendToGroup(IContextMenuConstants.GROUP_REORGANIZ... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | } catch(JavaModelException e) {
}
if (!(resource instanceof IFile))
return;
MenuManager submenu= new MenuManager(TypeHierarchyMessages.getString("TypeHierarchyViewPart.menu.open"));
submenu.add(new OpenWithMenu(getSite().getPage(), (IFile) resource));
menu.appendToGroup(IContextMenuConstants.GR... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | }
private IType getSelectableType(IJavaElement elem) {
ISelection sel= null;
if (elem.getElementType() != IJavaElement.TYPE) {
return (IType) getCurrentViewer().getTreeRootType();
} else {
return (IType) elem;
}
}
private void internalSelectType(IMember elem, boolean reveal) {
TypeHierarchyView... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | if (fInputElement == null) {
fPagebook.showPage(fNoHierarchyShownLabel);
} else {
if (getCurrentViewer().containsElements() != null) {
Runnable runnable= new Runnable() {
public void run() {
getCurrentViewer().updateContent();
}
};
BusyIndicator.showWhile(getDisplay(), runnable);
... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | }
}
private void doSelectionChanged(SelectionChangedEvent e) {
if (e.getSelectionProvider() == fMethodsViewer) {
methodSelectionChanged(e.getSelection());
} else {
typeSelectionChanged(e.getSelection());
}
}
private void methodSelectionChanged(ISelection sel) {
if (sel instanceof IStructuredSe... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | }
}
}
private void typeSelectionChanged(ISelection sel) {
if (sel instanceof IStructuredSelection) {
List selected= ((IStructuredSelection)sel).toList();
int nSelected= selected.size();
if (nSelected != 0) {
List types= new ArrayList(nSelected);
for (int i= nSelected-1; i >= 0; i--) {
Obje... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | }
private void revealElementInEditor(Object elem, Viewer originViewer) {
if (getSite().getPage().getActivePart() != this) {
return;
}
if (fSelectionProviderMediator.getViewerInFocus() != originViewer) {
return;
}
IEditorPart editorPart= EditorUtility.isOpenInEditor(elem);
if (editorPart... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | return null;
}
private boolean isChildVisible(Composite pb, Control child) {
Control[] children= pb.getChildren();
for (int i= 0; i < children.length; i++) {
if (children[i] == child && children[i].isVisible())
return true;
}
return false;
}
private void updateTitle() {
String viewerTitle= ge... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | boolean isType= fInputElement instanceof IType;
for (int i= 0; i < fViewActions.length; i++) {
ToggleViewAction action= fViewActions[i];
if (action.getViewerIndex() == VIEW_ID_TYPE) {
action.setEnabled(fInputElement != null);
} else {
action.setEnabled(isType);
}
}
}
/**
* Sets the curren... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | }
updateTitle();
fDialogSettings.put(DIALOGSTORE_HIERARCHYVIEW, viewerIndex);
getCurrentViewer().getTree().setFocus();
}
for (int i= 0; i < fViewActions.length; i++) {
ToggleViewAction action= fViewActions[i];
action.setChecked(fCurrentViewerIndex == action.getViewerIndex());
}
}
/**
* ... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | setMemberFilter(null);
updateHierarchyViewer();
updateTitle();
if (methodViewerInput != null && getCurrentViewer().isElementShown(methodViewerInput)) {
internalSelectType(methodViewerInput, true);
} else if (fSelectedType != null) {
internalSelectType(fSelectedType, true);
... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | }
}
});
}
}
private void doTypeHierarchyChangedOnViewers(IType[] changedTypes) {
if (fHierarchyLifeCycle.getHierarchy() == null || !fHierarchyLifeCycle.getHierarchy().exists()) {
clearInput();
} else {
if (changedTypes == null) {
try {
fHierarchyLifeCycle.ensureRefreshedTypeHierarch... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | } else {
getCurrentViewer().update(changedTypes, new String[] { IBasicPropertyConstants.P_TEXT, IBasicPropertyConstants.P_IMAGE } );
}
}
}
}
/**
* Determines the input element to be used initially .
*/
private IJavaElement determineInputElement() {
Object input= getSite().getPage().getInput... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | public void init(IViewSite site, IMemento memento) throws PartInitException {
super.init(site, memento);
fMemento= memento;
}
/*
* @see ViewPart#saveState(IMemento)
*/
public void saveState(IMemento memento) {
if (fPagebook == null) {
if (fMemento != null) {
memento.putMemento(fMemento);
... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | int ratio= (weigths[0] * 1000) / (weigths[0] + weigths[1]);
memento.putInteger(TAG_RATIO, ratio);
ScrollBar bar= getCurrentViewer().getTree().getVerticalBar();
int position= bar != null ? bar.getSelection() : 0;
memento.putInteger(TAG_VERTICAL_SCROLL, position);
IJavaElement selection= (IJavaElement)((IStr... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | }
Integer orientation= memento.getInteger(TAG_ORIENTATION);
if (orientation != null) {
setOrientation(orientation.intValue());
}
Integer ratio= memento.getInteger(TAG_RATIO);
if (ratio != null) {
fTypeMethodsSplitter.setWeights(new int[] { ratio.intValue(), 1000 - ratio.intValue() });
}
ScrollBar ba... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | return;
}
IJavaElement elem= (IJavaElement)editor.getEditorInput().getAdapter(IJavaElement.class);
try {
TypeHierarchyViewer currentViewer= getCurrentViewer();
if (elem instanceof IClassFile) {
IType type= ((IClassFile)elem).getType();
if (currentViewer.isElementShown(type)) {
internalSelect... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.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 v1.0
* which accompanie... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java | import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IJavaModel;
import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.JavaModelException;
im... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java | protected static final String CONTAINER= "NewContainerWizardPage.container";
protected IStatus fContainerStatus;
private StringButtonDialogField fContainerDialogField;
/*
* package fragment root corresponding to the input type (can be null)
*/
private IPackageFragmentRoot fCurrRoot;
private IWorkspaceR... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java | ContainerFieldAdapter adapter= new ContainerFieldAdapter();
fContainerDialogField= new StringButtonDialogField(adapter);
fContainerDialogField.setDialogFieldListener(adapter);
fContainerDialogField.setLabelText(NewWizardMessages.getString("NewContainerWizardPage.container.label"));
fContainerDialogField.set... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java | break;
}
}
} catch (JavaModelException e) {
JavaPlugin.log(e.getStatus());
}
if (initRoot == null) {
initRoot= jproject.getPackageFragmentRoot("");
}
}
}
setPackageFragmentRoot(initRoot, true);
}
/**
* Utility method to inspect a selection to find a Java element.
*... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java | IResource resource= (IResource) adaptable.getAdapter(IResource.class);
if (resource != null && resource.getType() != IResource.ROOT) {
while (jelem == null && resource.getType() != IResource.PROJECT) {
resource= resource.getParent();
jelem= (IJavaElement) resource.getAdapter(IJavaElement.class)... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java | *
* @return the recommended maximum width for text fields.
*/
protected int getMaxFieldWidth() {
return convertWidthInCharsToPixels(40);
}
/**
* Creates the necessary controls (label, text field and browse button) to edit
* the source folder location. The method expects that the parent composite
* u... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java | public void changeControlPressed(DialogField field) {
containerChangeControlPressed(field);
}
public void dialogFieldChanged(DialogField field) {
containerDialogFieldChanged(field);
}
} |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java | private void containerChangeControlPressed(DialogField field) {
IPackageFragmentRoot root= getPackageFragmentRoot();
root= chooseSourceContainer(root);
if (root != null) {
setPackageFragmentRoot(root, true);
}
}
private void containerDialogFieldChanged(DialogField field) {
if (field == fContainerDia... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java | fCurrRoot= null;
String str= getPackageFragmentRootText();
if (str.length() == 0) {
status.setError(NewWizardMessages.getString("NewContainerWizardPage.error.EnterContainerName"));
return status;
}
IPath path= new Path(str);
IResource res= fWorkspaceRoot.findMember(path);
if (res != null) {
int re... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java | status.setWarning(NewWizardMessages.getString("NewContainerWizardPage.warning.NotAJavaProject"));
}
try {
if (!jproject.isOnClasspath(fCurrRoot)) {
status.setWarning(NewWizardMessages.getFormattedString("NewContainerWizardPage.warning.NotOnClassPath", str));
}
} catch (JavaModelExc... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java | * <p>
* Every sub type is responsible to call this method when a field on its page has changed.
* Subtypes override (extend) the method to add verification when a own field has a
* dependency to an other field. For example the class name input must be verified
* again when the package field changes (check for d... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java | *
*/
public IPackageFragmentRoot getPackageFragmentRoot() {
return fCurrRoot;
}
/**
* Returns the current text of source folder text field.
*
* @return the text of the source folder text field
*/
public String getPackageFragmentRootText() {
return fContainerDialogField.getText();
}
/**
* ... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java | private IPackageFragmentRoot chooseSourceContainer(IJavaElement initElement) {
Class[] acceptedClasses= new Class[] { IPackageFragmentRoot.class, IJavaProject.class };
TypedElementSelectionValidator validator= new TypedElementSelectionValidator(acceptedClasses, false) {
public boolean isSelectedValid(Object elem... |
18,961 | Bug 18961 Adding new class creates class in wrong package in Java Browsing Perspective [browsing] | Hi, I'm working on a class in package A and want to create a class in package B in the Java Browsing perspective. I select package B in the Packages view go into the Types view, click the right mouse button and select New Class. The new class is created in package A instead of package B. Environment: Windows 2000 JSDK ... | resolved fixed | 02ce495 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T12:06:55Z | 2002-06-04T03:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewContainerWizardPage.java | }
}
return super.select(viewer, parent, element);
}
};
StandardJavaElementContentProvider provider= new StandardJavaElementContentProvider();
ILabelProvider labelProvider= new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_DEFAULT);
ElementTreeSelectionDialog dialog= new ElementTreeSelecti... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ExtractInterfaceAction.java | package org.eclipse.jdt.ui.actions;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.text.ITextSelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.ui.IWorkbenchSite;
import org.eclipse.ui.help.WorkbenchHelp;
i... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ExtractInterfaceAction.java | private ExtractInterfaceRefactoring fRefactoring; |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ExtractInterfaceAction.java | private CompilationUnitEditor fEditor;
/**
* Note: This constructor is for internal use only. Clients should not call this constructor.
*/
public ExtractInterfaceAction(CompilationUnitEditor editor) {
this(editor.getEditorSite());
fEditor= editor;
setEnabled(SelectionConverter.canOperateOn(fEditor));
}
... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ExtractInterfaceAction.java | * @see SelectionDispatchAction#selectionChanged(ITextSelection)
*/
protected void selectionChanged(ITextSelection selection) {
}
/*
* @see SelectionDispatchAction#run(IStructuredSelection)
*/
protected void run(IStructuredSelection selection) {
startRefactoring();
}
/*
* @see SelectionDispatc... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ExtractInterfaceAction.java | if (first instanceof IType)
return shouldAcceptElement((IType)first);
if (first instanceof ICompilationUnit)
return shouldAcceptElement(JavaElementUtil.getMainType((ICompilationUnit)first));
return false;
} catch (JavaModelException e) {
if (JavaModelUtil.filterNotPresentException(e))
JavaPl... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ExtractInterfaceAction.java | }
}
private IJavaElement[] resolveElements() {
return SelectionConverter.codeResolveHandled(fEditor, getShell(), RefactoringMessages.getString("OpenRefactoringWizardAction.refactoring"));
}
private RefactoringWizard createWizard(){
return new ExtractInterfaceWizard(fRefactoring);
}
private void start... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ModifyParametersAction.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... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ModifyParametersAction.java | import org.eclipse.jdt.internal.corext.Assert;
import org.eclipse.jdt.internal.corext.refactoring.structure.ModifyParametersRefactoring;
import org.eclipse.jdt.internal.corext.util.JavaModelUtil;
import org.eclipse.jdt.internal.ui.IJavaHelpContextIds;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse.jd... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ModifyParametersAction.java | private CompilationUnitEditor fEditor;
/**
* Note: This constructor is for internal use only. Clients should not call this constructor.
*/
public ModifyParametersAction(CompilationUnitEditor editor) {
this(editor.getEditorSite());
fEditor= editor;
setEnabled(SelectionConverter.canOperateOn(fEditor));
}
... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ModifyParametersAction.java | * @see SelectionDispatchAction#selectionChanged(ITextSelection)
*/
protected void selectionChanged(ITextSelection selection) {
}
/*
* @see SelectionDispatchAction#run(IStructuredSelection)
*/
protected void run(IStructuredSelection selection) {
startRefactoring();
}
/*
* @see SelectionDispatc... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ModifyParametersAction.java | }
private boolean canRun(ITextSelection selection){
IJavaElement[] elements= resolveElements();
if (elements.length > 1)
return false;
if (elements.length == 0){
try {
IJavaElement selected= SelectionConverter.getInputAsCompilationUnit(fEditor).getElementAt(selection.getOffset());
return (select... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/ModifyParametersAction.java | return SelectionConverter.codeResolveHandled(fEditor, getShell(), RefactoringMessages.getString("OpenRefactoringWizardAction.refactoring"));
}
private RefactoringWizard createWizard(){
String title= RefactoringMessages.getString("RefactoringGroup.modify_method_parameters");
String helpId= IJavaHelpContextIds.... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/MoveInnerToTopAction.java | package org.eclipse.jdt.ui.actions;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.text.ITextSelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.ui.IWorkbenchSite;
import org.eclipse.ui.help.WorkbenchHelp;
i... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/MoveInnerToTopAction.java | private MoveInnerToTopRefactoring fRefactoring;
private CompilationUnitEditor fEditor; |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/MoveInnerToTopAction.java | /**
* Note: This constructor is for internal use only. Clients should not call this constructor.
*/
public MoveInnerToTopAction(CompilationUnitEditor editor) {
this(editor.getEditorSite());
fEditor= editor;
setEnabled(SelectionConverter.canOperateOn(fEditor));
}
/**
* Creates a new <code>MoveInnerToTopAc... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/MoveInnerToTopAction.java | */
protected void selectionChanged(ITextSelection selection) {
}
/*
* @see SelectionDispatchAction#run(IStructuredSelection)
*/
protected void run(IStructuredSelection selection) {
startRefactoring();
}
/*
* @see SelectionDispatchAction#run(ITextSelection)
*/
protected void run(ITextSelectio... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/MoveInnerToTopAction.java | return shouldAcceptElement((IType)first);
if (first instanceof ICompilationUnit)
return shouldAcceptElement(JavaElementUtil.getMainType((ICompilationUnit)first));
return false;
} catch (JavaModelException e) {
if (JavaModelUtil.filterNotPresentException(e))
JavaPlugin.log(e);
return false;
... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/MoveInnerToTopAction.java | }
private IJavaElement[] resolveElements() {
return SelectionConverter.codeResolveHandled(fEditor, getShell(), RefactoringMessages.getString("OpenRefactoringWizardAction.refactoring"));
}
private RefactoringWizard createWizard(){
return new MoveInnerToTopWizard(fRefactoring);
}
private void startRefact... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/PullUpAction.java | package org.eclipse.jdt.ui.actions;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.text.ITextSelection;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.St... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/PullUpAction.java | import org.eclipse.jdt.core.IMember;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.internal.corext.Assert;
import org.eclipse.jdt.internal.corext.refactoring.structure.PullUpRefactoring;
import org.eclipse.jdt.internal.corext.util.JavaModelUtil;
import org.eclipse.jdt.internal.ui.IJavaHelpConte... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/PullUpAction.java | private PullUpRefactoring fRefactoring;
private CompilationUnitEditor fEditor;
/**
* Creates a new <code>PullUpAction</code>. The action requires that the selection
* provided by the site's selection provider is of type <code>
* org.eclipse.jface.viewers.IStructuredSelection</code>.
*
* @param site the ... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/PullUpAction.java | /*
* @see org.eclipse.jdt.ui.actions.SelectionDispatchAction#selectionChanged(ITextSelection)
*/
protected void selectionChanged(ITextSelection selection) {
}
/*
* @see SelectionDispatchAction#run(IStructuredSelection)
*/
protected void run(IStructuredSelection selection) {
startRefactoring();
}
/*
... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/PullUpAction.java | if (! (iter.next() instanceof IMember))
return false;
}
return shouldAcceptElements(selection.toArray());
}
private boolean canRun(ITextSelection selection){
IJavaElement[] elements= resolveElements();
if (elements.length != 1)
return false;
return (elements[0] instanceof IMember) && shouldAcceptE... |
23,366 | Bug 23366 Modify parameters refactoring remebers last state [refactoring] | 2.x - select a method with 2 arguments - activate modify parameters - change order and one name - click next to see preview - press cancel - activate refactoring again observe: the dialog shows the last entered settings. | resolved fixed | d6e1ac6 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:14Z | 2002-09-10T15:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/PullUpAction.java | private IJavaElement[] resolveElements() {
return SelectionConverter.codeResolveHandled(fEditor, getShell(), RefactoringMessages.getString("OpenRefactoringWizardAction.refactoring"));
}
private RefactoringWizard createWizard(){
String title= RefactoringMessages.getString("RefactoringGroup.pull_up");
String ... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CUCorrectionProposal.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... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CUCorrectionProposal.java | this(name, cu, relevance, JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE));
}
public CUCorrectionProposal(String name, ICompilationUnit cu, int relevance, Image image) throws CoreException {
super(name, createCompilationUnitChange(name, cu, false), relevance, image);
fIsInitialized= false;
}
pu... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CUCorrectionProposal.java | return change;
}
protected void addEdits(CompilationUnitChange change) throws CoreException {
}
/*
* @see ICompletionProposal#getAdditionalProposalInfo()
*/
public String getAdditionalProposalInfo() {
StringBuffer buf= new StringBuffer();
try {
CompilationUnitChange change= getCompilationUnitChan... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CUCorrectionProposal.java | appendContent(previewConent, start, end, buf, true);
}
}
} catch(CoreException e) {
JavaPlugin.log(e);
}
return buf.toString();
}
private final int surroundLines= 1;
private void appendContent(TextBuffer text, int startOffset, int endOffset, StringBuffer buf, boolean surroundLinesOnly) {
int s... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CUCorrectionProposal.java | continue;
}
}
TextRegion lineInfo= text.getLineInformation(i);
int start= lineInfo.getOffset();
int end= start + lineInfo.getLength();
int from= Math.max(start, startOffset);
int to= Math.min(end, endOffset);
String content= text.getContent(from, to - from);
if (surroundLinesOnly && (fro... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CorrectPackageDeclarationProposal.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... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CorrectPackageDeclarationProposal.java | private ProblemPosition fProblemPosition;
public CorrectPackageDeclarationProposal(ProblemPosition problemPos, int relevance) throws CoreException {
super(CorrectionMessages.getString("CorrectPackageDeclarationProposal.name"), problemPos.getCompilationUnit(), relevance,
JavaPluginImages.get(JavaPluginImages.IMG_... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/CorrectPackageDeclarationProposal.java | String str= "package " + parentPack.getElementName() + ";" + lineDelim + lineDelim;
change.addTextEdit(CorrectionMessages.getString("CorrectPackageDeclarationProposal.addedit.label"), SimpleTextEdit.createInsert(0, str));
return;
}
ProblemPosition pos= fProblemPosition;
change.addTextEdit(CorrectionMes... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/InsertCorrectionProposal.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... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/InsertCorrectionProposal.java | private String fInsertionString;
private int fOffset;
public InsertCorrectionProposal(String label, ICompilationUnit cu, int offset, String insertString, int relevance) throws CoreException {
super(label, cu, relevance);
fInsertionString= insertString;
fOffset= offset;
}
/*
* @see JavaCorrectionProposal#ad... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.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... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | import org.eclipse.jdt.core.dom.FieldAccess;
import org.eclipse.jdt.core.dom.FieldDeclaration;
import org.eclipse.jdt.core.dom.ITypeBinding;
import org.eclipse.jdt.core.dom.MethodDeclaration;
import org.eclipse.jdt.core.dom.MethodInvocation;
import org.eclipse.jdt.core.dom.QualifiedName;
import org.eclipse.jdt.core.dom... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | public static void addCastProposals(ProblemPosition problemPos, ArrayList proposals) throws CoreException {
String[] args= problemPos.getArguments();
if (args.length != 2) {
return;
}
ICompilationUnit cu= problemPos.getCompilationUnit();
String castDestType= args[1];
CompilationUnit astRoot= AST.pars... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | String simpleCastDestType= Signature.getSimpleName(castDestType);
String cast= '(' + simpleCastDestType + ')';
String formatted= StubUtility.codeFormat(cast + 'x', 0, "");
if (formatted.charAt(formatted.length() - 1) == 'x') {
cast= formatted.substring(0, formatted.length() - 1);
}
String label=... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | if (type != null) {
String castType= args[0];
String simpleCastType= Signature.getSimpleName(castType);
label= CorrectionMessages.getFormattedString("LocalCorrectionsSubProcessor.addcast_var.description", simpleCastType);
ReplaceCorrectionProposal varProposal= new ReplaceCorrectionProposal(label, cu, t... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | proposal.setImage(JavaPluginImages.get(JavaPluginImages.IMG_OBJS_EXCEPTION));
proposals.add(proposal);
}
}
BodyDeclaration decl= ASTResolving.findParentBodyDeclaration(selectedNode);
if (decl instanceof MethodDeclaration) {
ASTRewrite rewrite= new ASTRewrite(astRoot);
String uncaughtName= prob... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | ASTNode selectedNode= ASTResolving.findSelectedNode(astRoot, problemPos.getOffset(), problemPos.getLength());
if (selectedNode instanceof SimpleName && selectedNode.getParent() instanceof MethodDeclaration) {
MethodDeclaration declaration= (MethodDeclaration) selectedNode.getParent();
int start= declaration.get... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | proposals.add(proposal);
}
}
}
}
}
}
public static void addMissingReturnTypeProposals(ProblemPosition problemPos, ArrayList proposals) throws CoreException {
ICompilationUnit cu= problemPos.getCompilationUnit();
CompilationUnit astRoot= AST.parseCompilationUnit(cu, true);
ASTNode selected... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | res[0]= node.getAST().resolveWellKnownType("void");
}
}
return false;
}
});
ITypeBinding type= res[0];
if (type == null) {
type= decl.getAST().resolveWellKnownType("void");
}
String str= type.getName() + " ";
int pos= ((MethodDeclaration) decl).getName().get... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | ICompilationUnit cu= problemPos.getCompilationUnit();
CompilationUnit astRoot= AST.parseCompilationUnit(cu, true);
ASTNode selectedNode= ASTResolving.findSelectedNode(astRoot, problemPos.getOffset(), problemPos.getLength());
if (selectedNode == null) {
return;
}
BodyDeclaration decl= ASTResolving.findPa... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | ASTRewrite rewrite= new ASTRewrite(astRoot);
Expression expression= ASTResolving.getNullExpression(methodDecl.getReturnType());
returnStatement.setExpression(expression);
rewrite.markAsInserted(expression);
Image image= JavaPluginImages.get(JavaPluginImages.IMG_CORRECTION_CHANGE);
A... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | proposals.add(proposal);
}
/**
* A static field or method is accessed using a non-static reference. E.g.
* <pre>
* File f = new File();
* f.pathSeparator;
* </pre>
* This correction changes <code>f</code> above to <code>File</code>.
*
* @param problemPos
* @param proposals
*/
... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/LocalCorrectionsSubProcessor.java | }
}
}
private static void addImportToProposal(ICompilationUnit cu, ITypeBinding type, CUCorrectionProposal proposal) throws CoreException {
addImportToProposal(cu, Bindings.getFullyQualifiedImportName(type), proposal);
}
private static void addImportToProposal(ICompilationUnit cu,... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewConstructorCompletionProposal.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... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewConstructorCompletionProposal.java | import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.runtime.CoreException;
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.j... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewConstructorCompletionProposal.java | private boolean fIsLocalChange;
private IType fDestType;
private List fArguments;
private MemberEdit fMemberEdit;
public NewConstructorCompletionProposal(String label, ICompilationUnit currCU, IType destType, List arguments, int relevance) throws CoreException {
super(label, destType.getCompilationUnit(), relevan... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewConstructorCompletionProposal.java | String content= generateStub(importEdit, settings);
int insertPos= MemberEdit.ADD_AT_BEGINNING;
IJavaElement anchor= fDestType;
IMethod[] methods= fDestType.getMethods();
for (int i = methods.length - 1; i >= 0; i--) {
if (methods[i].isConstructor()) {
anchor= methods[i];
insertPos= MemberEdit.INSE... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewConstructorCompletionProposal.java | for (int i= 0; i < paramTypes.length; i++) {
ITypeBinding binding= evaluateParameterType((Expression) fArguments.get(i), importEdit);
if (binding != null && !binding.isAnonymous() && !binding.isNullType()) {
paramTypes[i]= binding.getName();
} else {
paramTypes[i]= "Object";
}
}
String[] paramN... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewConstructorCompletionProposal.java | return buf.toString();
}
private String[] getParameterNames(String[] paramTypes, List arguments) {
ArrayList names= new ArrayList(paramTypes.length);
NameProposer nameProposer= new NameProposer();
for (int i= 0; i < paramTypes.length; i++) {
String name;
Object currArg= arguments.get(i);
if (currArg ... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewConstructorCompletionProposal.java | binding= expr.getAST().resolveWellKnownType("java.lang.Object");
}
}
return binding;
}
/* (non-Javadoc)
* @see ICompletionProposal#apply(IDocument)
*/
public void apply(IDocument document) {
try {
IEditorPart part= null;
if (!isLocalChange()) {
part= EditorUtility.openInEditor(fDestType.... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | 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... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | 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... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java | private boolean fIsLocalChange;
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()... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java | ICompilationUnit changedCU= changeElement.getCompilationUnit();
CodeGenerationSettings settings= JavaPreferencesSettings.getCodeGenerationSettings();
ImportEdit importEdit= new ImportEdit(changedCU, settings);
String content= generateStub(importEdit, settings);
int insertPos= MemberEdit.ADD_AT_END;
IJav... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java | List arguments= fNode.arguments();
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... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java | String[] paramNames= getParameterNames(paramTypes, arguments);
StringBuffer buf= new StringBuffer();
if (settings.createComments) {
StubUtility.genJavaDocStub("Method " + methodName, paramNames, Signature.createTypeSignature(returnTypeName, true), null, buf);
}
if (isSameType) {
buf.append("priv... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java | buf.append(paramNames[i]);
}
}
buf.append(')');
if (isInterface) {
buf.append(";\n");
} else {
buf.append("{\n");
if (!returnType.isPrimitive()) {
buf.append("return null;\n");
} else if (returnTypeName.equals("boolean")) {
buf.append("return false;\n");
} else if (!returnTypeN... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java | name= nameProposer.proposeParameterName(paramTypes[i]);
}
while (names.contains(name)) {
name= name + '1';
}
names.add(name);
}
return (String[]) names.toArray(new String[names.size()]);
}
private ITypeBinding evaluateMethodType(MethodInvocation invocation, ImportEdit importEdit) {
ITypeBindin... |
23,528 | Bug 23528 quick fix: adds bogus whitespaces on 'add throws declaration' | class A{ void a() throws Exception{ } void f(){ a(); } } qf the call to a() 'add throws declaration' you will get 'void f() throws Exception{' i have to go and fix it every time it used to work :( | resolved fixed | ec0851e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-09-13T13:08:45Z | 2002-09-13T09:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewMethodCompletionProposal.java | binding= expr.getAST().resolveWellKnownType("java.lang.Object");
}
}
return binding;
}
/* (non-Javadoc)
* @see ICompletionProposal#apply(IDocument)
*/
public void apply(IDocument document) {
try {
IEditorPart part= null;
if (!isLocalChange()) {
part= EditorUtility.openInEditor(fDestType.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.