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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9,737 | Bug 9737 Invalid thread access initializing JavaPlugin | Build 20020212 - I opened a self hosting workspace from the previous build, with only the resources perspective operation - The default installed JRE was a J9 VM - I caused a build to happen, and it looks like the PDE builder caused a whole chain of plugin activations, including JavaPlugin (strange that a core plugin c... | verified fixed | 3ab7288 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:07:00Z | 2002-02-13T19:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java | if (fCompilationUnitDocumentProvider != null) {
fCompilationUnitDocumentProvider.shutdown();
fCompilationUnitDocumentProvider= null;
}
if (fJavaTextTools != null) {
fJavaTextTools.dispose();
fJavaTextTools= null;
}
JavaDocLocations.saveJavadocLocations();
}
private IWorkbenchPage interna... |
9,737 | Bug 9737 Invalid thread access initializing JavaPlugin | Build 20020212 - I opened a self hosting workspace from the previous build, with only the resources perspective operation - The default installed JRE was a J9 VM - I caused a build to happen, and it looks like the PDE builder caused a whole chain of plugin activations, including JavaPlugin (strange that a core plugin c... | verified fixed | 3ab7288 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:07:00Z | 2002-02-13T19:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java | }
public ProblemMarkerManager getProblemMarkerManager() {
if (fProblemMarkerManager == null)
fProblemMarkerManager= new ProblemMarkerManager();
return fProblemMarkerManager;
}
public JavaTextTools getJavaTextTools() {
if (fJavaTextTools == null)
fJavaTextTools= new JavaTextTools(getPreferenceStore()... |
9,737 | Bug 9737 Invalid thread access initializing JavaPlugin | Build 20020212 - I opened a self hosting workspace from the previous build, with only the resources perspective operation - The default installed JRE was a J9 VM - I caused a build to happen, and it looks like the PDE builder caused a whole chain of plugin activations, including JavaPlugin (strange that a core plugin c... | verified fixed | 3ab7288 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:07:00Z | 2002-02-13T19:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/JavaPlugin.java | menu.add(new Separator(IContextMenuConstants.GROUP_VIEWER_SETUP));
menu.add(new Separator(IContextMenuConstants.GROUP_PROPERTIES));
}
/**
* @see AbstractUIPlugin#initializeDefaultPreferences
*/
protected void initializeDefaultPreferences(IPreferenceStore store) {
super.initializeDefaultPreferences(store);
... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.browsing;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.eclipse... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.jface.action.Action;
import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.ui.IWorkbenchPartSite;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.actions.RefreshAction;
import org.eclipse.ui.dialogs.PropertyDialogAction;
import org.eclipse.ui.help.ViewContextComputer;
import org.eclipse.ui.help.WorkbenchHelp;
import org.eclipse.ui.part.ViewPart;
import org.ec... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.jdt.internal.ui.reorg.ReorgGroup;
import org.eclipse.jdt.internal.ui.search.JavaSearchGroup;
import org.eclipse.jdt.internal.ui.viewsupport.BaseJavaElementContentProvider;
import org.eclipse.jdt.internal.ui.viewsupport.ErrorTickImageProvider;
import org.eclipse.jdt.internal.ui.viewsupport.IProblemCha... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | private UpAction fUpAction;
private AddBookmarkAction fAddBookmarkAction;
private IWorkbenchPart fInputSource;
private Image fOriginalTitleImage;
/*
* Ensure selection changed events being processed only if
* initiated by user interaction with this part.
*/
private boolean fProcessSelectionEvents= true;
... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | fMemento= memento;
}
/*
* Implements method from IViewPart.
*/
public void saveState(IMemento memento) {
if (fViewer == null) {
if (fMemento != null)
memento.putMemento(fMemento);
return;
}
}
/**
* Creates the search list inner viewer.
*/
public void createPartControl(Composite p... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | fViewer.setUseHashlookup(true);
JavaPlugin.getDefault().getProblemMarkerManager().addListener((IProblemChangedListener)fViewer);
fTitleProvider= createTitleProvider();
MenuManager menuMgr= new MenuManager("#PopupMenu");
menuMgr.setRemoveAllWhenShown(true);
menuMgr.addMenuListener(this);
fContextMenu= me... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | public void setFocus() {
fViewer.getControl().setFocus();
}
public void dispose() {
if (fViewer != null) {
JavaPlugin.getDefault().getProblemMarkerManager().removeListener((IProblemChangedListener)fViewer);
getViewSite().getWorkbenchWindow().getSelectionService().removeSelectionListener(this);
getViewS... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
ContextMenuGroup.add(menu, fStandardGroups, fViewer);
if (fAddBookmarkAction.canOperateOnSelection())
menu.appendToGroup(IContextMenuConstants.GROUP_REORGANIZE, fAddBookmarkAction);
menu.appendToGroup(IContextMenuConstants.GROUP_BUILD, fRefreshAction);
fRefreshAction.selectionChanged(selection);
... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | fDeleteAction= new DeleteAction(provider);
fRefreshAction= new RefreshAction(getShell());
IActionBars actionService= getViewSite().getActionBars();
actionService.setGlobalActionHandler(IWorkbenchActionConstants.DELETE, fDeleteAction);
}
/**
* Returns the shell to use for opening dialogs.
* Used in this c... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | * @return <true> if the given element is a valid element
*/
protected boolean isValidElement(Object element) {
if (element == null)
return false;
element= getSuitableJavaElement(element);
if (element == null)
return false;
Object input= getViewer().getInput();
if (input == null)
return false;
if... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | if (!fProcessSelectionEvents || part == this || !(selection instanceof IStructuredSelection))
return;
Set newInput= getInputFromSelection(selection);
if (!newInput.isEmpty()) {
setInput(newInput);
fInputSource= part;
return;
}
Object inputElement= getFirstElement(getViewer().getInput());
Obj... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | * @return <true> if the given element is a valid input
*/
protected Set getInputFromSelection(ISelection selection) {
if (!(selection instanceof IStructuredSelection))
return Collections.EMPTY_SET;
Set elements= new HashSet();
Iterator iter= ((IStructuredSelection)selection).iterator();
while (iter.hasNex... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | fProcessSelectionEvents= false;
fViewer.setInput(input);
fProcessSelectionEvents= true;
}
/**
* Sets or clears the title image of this part and
* store the orignal image on the first call.
*/
protected void setTitleImage(Image titleImage) {
if (fOriginalTitleImage == null)
fOriginalTitleImage= getTitl... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | protected final ILabelProvider getTitleProvider() {
return fTitleProvider;
}
/**
* Creates the the viewer of this part.
*
* @param parent the parent for the viewer
*/
protected StructuredViewer createViewer(Composite parent) {
return new ProblemTableViewer(parent, SWT.SINGLE);
}
protected int getLab... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | ISelection selection= getSite().getPage().getSelection();
if (selection != null && !selection.isEmpty())
setInput(getInputFromSelection(selection));
else {
Object input= getSite().getPage().getInput();
if (!(input instanceof IJavaElement) && input instanceof IAdaptable)
input= ((IAdaptable)input).g... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | final protected void setHelp() {
WorkbenchHelp.setHelp(fViewer.getControl(), new ViewContextComputer(this, getHelpContextId()));
}
/**
* Returns the context ID for the Help system
*
* @return the string used as ID for the Help context
*/
abstract protected String getHelpContextId();
/**
* Adds addition... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | void adjustInputAndSetSelection(IJavaElement je) {
je= findElementToSelect(je);
if (je == null) {
setInput(null);
setSelection(StructuredSelection.EMPTY, true);
return;
}
else if (getViewer().testFindItem(je) == null)
setInput(findInputForJavaElement(je));
setSelection(new StructuredSelect... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | *
* @param je the Java element which has the focus
*/
abstract protected IJavaElement findElementToSelect(IJavaElement je);
Object getFirstElement(Object object) {
if (object instanceof StructuredSelection)
return ((StructuredSelection)object).getFirstElement();
if (object instanceof Collection) {
Co... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
/**
* Links to editor (if option enabled)
*/
private void linkToEditor(IStructuredSelection selection) {
if (selection == null || selection.isEmpty())
return;
Object obj= selection.getFirstElement();
Object element= null;
if (selection.size() == 1) {
if (obj instanceof IJavaElement) {
IJavaEle... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | EditorUtility.revealInEditor(editor, (IJavaElement) obj);
return;
}
}
}
}
private void setSelectionFromEditor(IWorkbenchPart part) {
if (part == null)
return;
IWorkbenchPartSite site= part.getSite();
if (site == null)
return;
ISelectionProvider provider= site.getSelectionProvider();
if (... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | adjustInputAndSetSelection(je);
} else if (ei instanceof IClassFileEditorInput) {
IClassFile cf= ((IClassFileEditorInput)ei).getClassFile();
adjustInputAndSetSelection(cf);
}
return;
}
}
/**
* Returns the element contained in the EditorInput
*/
Object getElementOfInput(IEditorInput input) {
... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | try {
element= ((IJavaElement)element).getUnderlyingResource();
} catch (JavaModelException e) {
return null;
}
}
if (!(element instanceof IResource) || ((IResource)element).isPhantom()) {
return null;
}
return (IResource)element;
}
private void setSelection(ISelection selection, boolean reve... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
/**
* Returns the original element from which the specified working copy
* element was created from. This is a handle only method, the
* returned element may or may not exist.
*
* @param workingCopy the element for which to get the original
* @return the original Java element or <code>null</code> if thi... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | return (ICompilationUnit) element;
if (IJavaElement.CLASS_FILE == type)
return null;
return getCompilationUnit(element.getParent());
}
/**
* Converts the given Java element to one which is suitable for this
* view. It takes into account wether the view shows working copies or not.
*
* @param elemen... |
9,818 | Bug 9818 Java Browsing: Editor with non-java resource flushes views | null | resolved fixed | 7ddabae | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T16:09:32Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | return ((IWorkingCopy)cu).getOriginal(element);
else
return element;
}
}
/**
* @see JavaEditor#getElementAt(int)
*/
protected IJavaElement getElementForInputAt(IEditorInput input, int offset) {
if (input instanceof IClassFileEditorInput) {
try {
return ((IClassFileEditorInput)input).getClassFil... |
9,774 | Bug 9774 ProblemTreeViewer does not handle adaptable label updates | If a label update event comes to the ProblemTreeViewer whose element is an IResource the update does not occur as handleLabelProviderChanged (LabelProviderChangedEvent event)checks for an item by equality and does not handle the case where a resource is the element for an event but objects that adapt to resources are b... | resolved fixed | 9aa9ce5 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T17:12:38Z | 2002-02-13T19:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ProblemTreeViewer.java | package org.eclipse.jdt.internal.ui.viewsupport;
import java.util.Set;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Item;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.Widget;
import org.eclipse.core.resources.IResource;
import or... |
9,774 | Bug 9774 ProblemTreeViewer does not handle adaptable label updates | If a label update event comes to the ProblemTreeViewer whose element is an IResource the update does not occur as handleLabelProviderChanged (LabelProviderChangedEvent event)checks for an item by equality and does not handle the case where a resource is the element for an event but objects that adapt to resources are b... | resolved fixed | 9aa9ce5 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T17:12:38Z | 2002-02-13T19:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ProblemTreeViewer.java | * @see TreeViewer#TreeViewer(Composite)
*/
public ProblemTreeViewer(Composite parent) {
super(parent);
initMapper();
}
/*
* @see TreeViewer#TreeViewer(Composite, int)
*/
public ProblemTreeViewer(Composite parent, int style) {
super(parent, style);
initMapper();
}
/*
* @see TreeViewer#TreeViewer(Tr... |
9,774 | Bug 9774 ProblemTreeViewer does not handle adaptable label updates | If a label update event comes to the ProblemTreeViewer whose element is an IResource the update does not occur as handleLabelProviderChanged (LabelProviderChangedEvent event)checks for an item by equality and does not handle the case where a resource is the element for an event but objects that adapt to resources are b... | resolved fixed | 9aa9ce5 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-14T17:12:38Z | 2002-02-13T19:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ProblemTreeViewer.java | Control control= getControl();
if (control != null && !control.isDisposed()) {
control.getDisplay().asyncExec(new Runnable() {
public void run() {
fProblemItemMapper.problemsChanged(changed, (ILabelProvider)getLabelProvider());
}
});
}
}
/*
* @see StructuredViewer#mapElement(Object, Widget)... |
9,819 | Bug 9819 ImageDescriptorRegistry must empty hash map in dispose | Current code is: public void dispose() { for (Iterator iter= fRegistry.values().iterator(); iter.hasNext(); ) { Image image= (Image)iter.next(); image.dispose(); } } Statement fRegistry.clear() missing after dispose Current implementation doesn't cause harm since calling dispose on a dispose image is ignored. Must be f... | resolved fixed | ea3e9d5 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-15T11:22:07Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ImageDescriptorRegistry.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.viewsupport;
import java.util.HashMap;
import java.util.Iterator;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
import org.eclipse.jdt.internal.ui.util.SWTUtil;
import org.eclipse.j... |
9,819 | Bug 9819 ImageDescriptorRegistry must empty hash map in dispose | Current code is: public void dispose() { for (Iterator iter= fRegistry.values().iterator(); iter.hasNext(); ) { Image image= (Image)iter.next(); image.dispose(); } } Statement fRegistry.clear() missing after dispose Current implementation doesn't cause harm since calling dispose on a dispose image is ignored. Must be f... | resolved fixed | ea3e9d5 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-15T11:22:07Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ImageDescriptorRegistry.java | /**
* Creates a new image descriptor registry for the current or default display,
* respectively.
*/
public ImageDescriptorRegistry() {
this(SWTUtil.getStandardDisplay());
}
/**
* Creates a new image descriptor registry for the given display. All images
* managed by this registry will be disposed when ... |
9,819 | Bug 9819 ImageDescriptorRegistry must empty hash map in dispose | Current code is: public void dispose() { for (Iterator iter= fRegistry.values().iterator(); iter.hasNext(); ) { Image image= (Image)iter.next(); image.dispose(); } } Statement fRegistry.clear() missing after dispose Current implementation doesn't cause harm since calling dispose on a dispose image is ignored. Must be f... | resolved fixed | ea3e9d5 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-15T11:22:07Z | 2002-02-14T15:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/viewsupport/ImageDescriptorRegistry.java | Image result= (Image)fRegistry.get(descriptor);
if (result != null)
return result;
Assert.isTrue(fDisplay == SWTUtil.getStandardDisplay(), "Allocating image for wrong display.");
result= descriptor.createImage();
if (result != null)
fRegistry.put(descriptor, result);
return result;
}
/**
* Dispose... |
9,099 | Bug 9099 Exception in hierarchy updating after deleting a project | 1) create a workspace with JUnit open 2) open an editor so that the outline view is populated 3) delete JUnit JDT Core needs to handle this case more gracefully. You get the following JavaModelException Java Model Exception: Java Model Status [JUnit does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPr... | resolved fixed | bd06be7 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-15T12:40:45Z | 2002-02-05T14:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyLifeCycle.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.typehierarchy;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List; |
9,099 | Bug 9099 Exception in hierarchy updating after deleting a project | 1) create a workspace with JUnit open 2) open an editor so that the outline view is populated 3) delete JUnit JDT Core needs to handle this case more gracefully. You get the following JavaModelException Java Model Exception: Java Model Status [JUnit does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPr... | resolved fixed | bd06be7 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-15T12:40:45Z | 2002-02-05T14:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyLifeCycle.java | import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.eclipse.jdt.core.ElementChangedEvent;
import org.eclipse.jdt.core.IClassFile;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IElement... |
9,099 | Bug 9099 Exception in hierarchy updating after deleting a project | 1) create a workspace with JUnit open 2) open an editor so that the outline view is populated 3) delete JUnit JDT Core needs to handle this case more gracefully. You get the following JavaModelException Java Model Exception: Java Model Status [JUnit does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPr... | resolved fixed | bd06be7 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-15T12:40:45Z | 2002-02-05T14:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyLifeCycle.java | private List fChangeListeners;
public TypeHierarchyLifeCycle() {
this(false);
}
public TypeHierarchyLifeCycle(boolean isSuperTypesOnly) {
fHierarchy= null;
fInputElement= null;
fIsSuperTypesOnly= isSuperTypesOnly;
fChangeListeners= new ArrayList(2);
}
public ITypeHierarchy getHierarchy() {
retur... |
9,099 | Bug 9099 Exception in hierarchy updating after deleting a project | 1) create a workspace with JUnit open 2) open an editor so that the outline view is populated 3) delete JUnit JDT Core needs to handle this case more gracefully. You get the following JavaModelException Java Model Exception: Java Model Status [JUnit does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPr... | resolved fixed | bd06be7 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-15T12:40:45Z | 2002-02-05T14:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyLifeCycle.java | }
public void removeChangedListener(ITypeHierarchyLifeCycleListener listener) {
fChangeListeners.remove(listener);
}
public void addChangedListener(ITypeHierarchyLifeCycleListener listener) {
if (!fChangeListeners.contains(listener)) {
fChangeListeners.add(listener);
}
}
private void fireChange(ITyp... |
9,099 | Bug 9099 Exception in hierarchy updating after deleting a project | 1) create a workspace with JUnit open 2) open an editor so that the outline view is populated 3) delete JUnit JDT Core needs to handle this case more gracefully. You get the following JavaModelException Java Model Exception: Java Model Status [JUnit does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPr... | resolved fixed | bd06be7 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-15T12:40:45Z | 2002-02-05T14:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyLifeCycle.java | doHierarchyRefresh(element, pm);
} catch (JavaModelException e) {
throw new InvocationTargetException(e);
}
}
};
try {
new BusyIndicatorRunnableContext().run(false, false, op);
} catch (InvocationTargetException e) {
Throwable th= e.getTargetException();
if (th instanceof Ja... |
9,099 | Bug 9099 Exception in hierarchy updating after deleting a project | 1) create a workspace with JUnit open 2) open an editor so that the outline view is populated 3) delete JUnit JDT Core needs to handle this case more gracefully. You get the following JavaModelException Java Model Exception: Java Model Status [JUnit does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPr... | resolved fixed | bd06be7 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-15T12:40:45Z | 2002-02-05T14:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyLifeCycle.java | JavaCore.removeElementChangedListener(this);
}
if (hierachyCreationNeeded) {
fInputElement= element;
if (element.getElementType() == IJavaElement.TYPE) {
IType type= (IType) element;
if (fIsSuperTypesOnly) {
fHierarchy= type.newSupertypeHierarchy(pm);
} else {
fHierarchy= type.newTypeHie... |
9,099 | Bug 9099 Exception in hierarchy updating after deleting a project | 1) create a workspace with JUnit open 2) open an editor so that the outline view is populated 3) delete JUnit JDT Core needs to handle this case more gracefully. You get the following JavaModelException Java Model Exception: Java Model Status [JUnit does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPr... | resolved fixed | bd06be7 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-15T12:40:45Z | 2002-02-05T14:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyLifeCycle.java | fHierarchy.addTypeHierarchyChangedListener(this);
JavaCore.addElementChangedListener(this);
}
/*
* @see ITypeHierarchyChangedListener#typeHierarchyChanged
*/
public void typeHierarchyChanged(ITypeHierarchy typeHierarchy) {
fHierarchyRefreshNeeded= true;
}
/*
* @see IElementChangedListener#elementC... |
9,099 | Bug 9099 Exception in hierarchy updating after deleting a project | 1) create a workspace with JUnit open 2) open an editor so that the outline view is populated 3) delete JUnit JDT Core needs to handle this case more gracefully. You get the following JavaModelException Java Model Exception: Java Model Status [JUnit does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPr... | resolved fixed | bd06be7 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-15T12:40:45Z | 2002-02-05T14:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyLifeCycle.java | /*
* Assume that the hierarchy is intact (no refresh needed)
*/
private void processDelta(IJavaElementDelta delta, ArrayList changedTypes) {
IJavaElement element= delta.getElement();
switch (element.getElementType()) {
case IJavaElement.TYPE:
processTypeDelta((IType) element, changedTypes);
pro... |
9,099 | Bug 9099 Exception in hierarchy updating after deleting a project | 1) create a workspace with JUnit open 2) open an editor so that the outline view is populated 3) delete JUnit JDT Core needs to handle this case more gracefully. You get the following JavaModelException Java Model Exception: Java Model Status [JUnit does not exist.] at org.eclipse.jdt.internal.core.JavaElement.newNotPr... | resolved fixed | bd06be7 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-15T12:40:45Z | 2002-02-05T14:40:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyLifeCycle.java | break;
case IJavaElement.CLASS_FILE:
if (delta.getKind() == IJavaElementDelta.CHANGED && (delta.getFlags() & IJavaElementDelta.F_CONTENT) != 0) {
try {
IType type= ((IClassFile) element).getType();
processTypeDelta(type, changedTypes);
} catch (JavaModelException e) {
JavaPlugin.log(... |
9,640 | Bug 9640 template pref page: more vars should be availale in javadoc mode | vars like: package project sometimes even type (rarely method) are useful also in javadoc context | resolved fixed | 019e4fc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-15T15:20:39Z | 2002-02-13T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateEngine.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.text.template;
import java.util.ArrayList;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.IRegion;
import org.eclipse.jface.text.ITextView... |
9,640 | Bug 9640 template pref page: more vars should be availale in javadoc mode | vars like: package project sometimes even type (rarely method) are useful also in javadoc context | resolved fixed | 019e4fc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-15T15:20:39Z | 2002-02-13T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateEngine.java | private ContextType fContextType;
private ITableLabelProvider fLabelProvider= new TemplateLabelProvider();
private ArrayList fProposals= new ArrayList();
/**
* Creates the template engine for a particular context type.
* See <code>TemplateContext</code> for supported context types.
*/
public TemplateEngine(... |
9,640 | Bug 9640 template pref page: more vars should be availale in javadoc mode | vars like: package project sometimes even type (rarely method) are useful also in javadoc context | resolved fixed | 019e4fc | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-15T15:20:39Z | 2002-02-13T14:20:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/template/TemplateEngine.java | */
public ICompletionProposal[] getResults() {
return (ICompletionProposal[]) fProposals.toArray(new ICompletionProposal[fProposals.size()]);
}
/**
* Inspects the context of the compilation unit around <code>completionPosition</code>
* and feeds the collector with proposals.
* @param viewer the t... |
7,681 | Bug 7681 Structured results expands import statements | 1) catch-up with the team 2) double click on a Java file to see the structured changes ->the first node which is typically the import container is expanded and scrolls away the more interesting changes. Suggest that the structured view knows about the importcontainer and does not expand it. | verified fixed | 9422a30 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-25T18:19:35Z | 2002-01-16T14:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureDiffViewer.java | /*
* (c) Copyright IBM Corp. 2002.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.compare;
import org.eclipse.swt.widgets.*;
import org.eclipse.jface.action.*;
import org.eclipse.jface.util.PropertyChangeEvent;
import org.eclipse.compare.*;
import org.eclipse.compare.internal.ChangePropertyAction;
imp... |
7,681 | Bug 7681 Structured results expands import statements | 1) catch-up with the team 2) double click on a Java file to see the structured changes ->the first node which is typically the import container is expanded and scrolls away the more interesting changes. Suggest that the structured view knows about the importcontainer and does not expand it. | verified fixed | 9422a30 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-25T18:19:35Z | 2002-01-16T14:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureDiffViewer.java | private static final String SMART= "SMART";
private ActionContributionItem fSmartActionItem;
private JavaStructureCreator fStructureCreator;
private boolean fThreeWay;
public JavaStructureDiffViewer(Composite parent, CompareConfiguration configuration) {
super(parent, configuration);
fStructureCreator= new Jav... |
7,681 | Bug 7681 Structured results expands import statements | 1) catch-up with the team 2) double click on a Java file to see the structured changes ->the first node which is typically the import container is expanded and scrolls away the more interesting changes. Suggest that the structured view knows about the importcontainer and does not expand it. | verified fixed | 9422a30 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-25T18:19:35Z | 2002-01-16T14:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureDiffViewer.java | super.compareInputChanged(input);
}
/**
* Overriden to create a "smart" button in the viewer's pane control bar.
* <p>
* Clients can override this method and are free to decide whether they want to call
* the inherited method.
*
* @param toolbarManager the toolbar manager for which to add the buttons
... |
7,681 | Bug 7681 Structured results expands import statements | 1) catch-up with the team 2) double click on a Java file to see the structured changes ->the first node which is typically the import container is expanded and scrolls away the more interesting changes. Suggest that the structured view knows about the importcontainer and does not expand it. | verified fixed | 9422a30 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-25T18:19:35Z | 2002-01-16T14:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/compare/JavaStructureDiffViewer.java | /**
* Tracks property changes of the configuration object.
* Clients may override to track their own property changes.
* In this case they must call the inherited method.
*/
protected void propertyChange(PropertyChangeEvent event) {
if (event.getProperty().equals(SMART))
diff();
else
super.propertyCh... |
10,054 | Bug 10054 Selected markers not usable for "Selected Resources" search | 1. Select a marker 2. Open Search dialog 3. Do a search with "Selected Resources" as scope The scope should consist of the resources at which the markers are attached | resolved fixed | 7606ffe | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-25T22:09:09Z | 2002-02-21T14:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchScopeFactory.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.search;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreExcepti... |
10,054 | Bug 10054 Selected markers not usable for "Selected Resources" search | 1. Select a marker 2. Open Search dialog 3. Do a search with "Selected Resources" as scope The scope should consist of the resources at which the markers are attached | resolved fixed | 7606ffe | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-25T22:09:09Z | 2002-02-21T14:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchScopeFactory.java | private static JavaSearchScopeFactory fgInstance;
private static IJavaSearchScope EMPTY_SCOPE= SearchEngine.createJavaSearchScope(new IJavaElement[] {});
private JavaSearchScopeFactory() {
}
public static JavaSearchScopeFactory getInstance() {
if (fgInstance == null)
fgInstance= new JavaSearchScopeFactory();... |
10,054 | Bug 10054 Selected markers not usable for "Selected Resources" search | 1. Select a marker 2. Open Search dialog 3. Do a search with "Selected Resources" as scope The scope should consist of the resources at which the markers are attached | resolved fixed | 7606ffe | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-25T22:09:09Z | 2002-02-21T14:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchScopeFactory.java | while (iter.hasNext()) {
Object selectedElement= iter.next();
if (selectedElement instanceof IJavaElement)
addJavaElements(javaElements, (IJavaElement)selectedElement);
else if (selectedElement instanceof IResource)
addJavaElements(javaElements, (IResource)selectedElement);
else if (selectedEl... |
10,054 | Bug 10054 Selected markers not usable for "Selected Resources" search | 1. Select a marker 2. Open Search dialog 3. Do a search with "Selected Resources" as scope The scope should consist of the resources at which the markers are attached | resolved fixed | 7606ffe | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-25T22:09:09Z | 2002-02-21T14:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchScopeFactory.java | } catch (CoreException ex) {
}
}
addJavaElements(javaElements, javaElement);
}
private void addJavaElements(Set javaElements, IJavaElement javaElement) {
switch (javaElement.getElementType()) {
case IJavaElement.JAVA_PROJECT:
addJavaElements(javaElements, (IJavaProject)javaElement);
break... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.browsing;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.eclipse... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.ISelectionProvider;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.viewers.SelectionChangedEvent;
im... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.jdt.core.IClassFile;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IMember;
import org.eclipse.jdt.core.IWorkingCopy;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.ui.IContextMenuConstants;
import org.eclip... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | abstract class JavaBrowsingPart extends ViewPart implements IMenuListener, ISelectionListener {
private ILabelProvider fLabelProvider;
private ILabelProvider fTitleProvider;
private StructuredViewer fViewer;
private IMemento fMemento;
private JavaElementTypeComparator fTypeComparator;
private ContextMenuGroup... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | private IPartListener fPartListener= new IPartListener() {
public void partActivated(IWorkbenchPart part) {
setSelectionFromEditor(part);
}
public void partBroughtToTop(IWorkbenchPart part) {
}
public void partClosed(IWorkbenchPart part) {
}
public void partDeactivated(IWorkbenchPart part) {
}
publ... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
}
/**
* Creates the search list inner viewer.
*/
public void createPartControl(Composite parent) {
Assert.isTrue(fViewer == null);
if (fMemento != null)
fMemento= null;
fTypeComparator= new JavaElementTypeComparator();
fViewer= createViewer(parent);
fLabelProvider= createLabelProv... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | getSite().setSelectionProvider(fViewer);
hookViewerListeners();
fViewer.setContentProvider(createContentProvider());
setInitialInput();
setInitialSelection();
addFilters();
fillToolBar(getViewSite().getActionBars().getToolBarManager());
getViewSite().getWorkbenchWindow().getSelectionSer... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
super.dispose();
}
protected void fillToolBar(IToolBarManager tbm) {
}
}
/**
* Called when the context menu is about to open.
* Override to add your own context dependent menu contributions.
*/
public void menuAboutToShow(IMenuManager menu) {
JavaPlugin.createStandardGroups(menu);
IStructured... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | if (selectionHasElements) {
menu.appendToGroup(IContextMenuConstants.GROUP_PROPERTIES, fPropertyDialogAction);
}
}
private void createActions() {
ISelectionProvider provider= fViewer;
fPropertyDialogAction= new PropertyDialogAction(getShell(), provider);
fShowNavigatorAction= new ShowInNavigato... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | private Shell getShell() {
return fViewer.getControl().getShell();
}
protected final Display getDisplay() {
return fViewer.getControl().getDisplay();
}
/**
* Answers if the given <code>element</code> is a valid
* input for this part.
*
* @param element the object to test
* @return <true> if the giv... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | if (input instanceof Collection)
return ((Collection)input).contains(element);
else
return input.equals(element);
}
private boolean isInputResetBy(Object newInput, Object input, IWorkbenchPart part) {
if (newInput == null)
return part == fInputSource;
if (input instanceof IJavaElement && newInput insta... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | Set newInput= getInputFromSelection(selection);
if (!newInput.isEmpty()) {
setInput(newInput);
fInputSource= part;
return;
}
Object inputElement= getFirstElement(getViewer().getInput());
Object newInputElement= getFirstElement(getFirstElement(selection));
if (isInputResetBy(newInputElement, inputE... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | return Collections.EMPTY_SET;
Set elements= new HashSet();
Iterator iter= ((IStructuredSelection)selection).iterator();
while (iter.hasNext()) {
IJavaElement element= getSuitableJavaElement(iter.next());
if (!isValidInput(element))
return Collections.EMPTY_SET;
elements.add(element);
}
return ele... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | /**
* Sets or clears the title image of this part and
* store the orignal image on the first call.
*/
protected void setTitleImage(Image titleImage) {
if (fOriginalTitleImage == null)
fOriginalTitleImage= getTitleImage();
if (titleImage == null)
titleImage= fOriginalTitleImage;
super.setTitleImage(ti... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | * Creates the the viewer of this part.
*
* @param parent the parent for the viewer
*/
protected StructuredViewer createViewer(Composite parent) {
return new ProblemTableViewer(parent, SWT.SINGLE);
}
protected int getLabelProviderFlags() {
return JavaElementLabelProvider.SHOW_BASICS | JavaElementLabelPro... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | Object input= getSite().getPage().getInput();
if (!(input instanceof IJavaElement) && input instanceof IAdaptable)
input= ((IAdaptable)input).getAdapter(IJavaElement.class);
if (isValidInput(input))
setInput(input);
}
}
protected void setInitialSelection() {
Object input;
ISelection selection= ... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | * Returns the context ID for the Help system
*
* @return the string used as ID for the Help context
*/
abstract protected String getHelpContextId();
/**
* Adds additional listeners to this view.
*/
protected void hookViewerListeners() {
fViewer.addSelectionChangedListener(new ISelectionChangedListener()... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | setInput(null);
setSelection(StructuredSelection.EMPTY, true);
return;
}
else if (getViewer().testFindItem(je) == null)
setInput(findInputForJavaElement(je));
setSelection(new StructuredSelection(je), true);
}
/**
* Finds the closest Java element which can be used as input for
* this part and h... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | Object getFirstElement(Object object) {
if (object instanceof StructuredSelection)
return ((StructuredSelection)object).getFirstElement();
if (object instanceof Collection) {
Collection col= (Collection)object;
if (col.isEmpty())
return null;
else
return col.iterator().next();
}
if (object ... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | private void linkToEditor(IStructuredSelection selection) {
if (selection == null || selection.isEmpty())
return;
Object obj= selection.getFirstElement();
Object element= null;
if (selection.size() == 1) {
if (obj instanceof IJavaElement) {
IJavaElement cu= JavaModelUtil.findElementOfKind((IJavaElemen... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
}
private void setSelectionFromEditor(IWorkbenchPart part) {
if (part == null)
return;
IWorkbenchPartSite site= part.getSite();
if (site == null)
return;
ISelectionProvider provider= site.getSelectionProvider();
if (provider != null)
setSelectionFromEditor(part, provider.getSelection());
}
priv... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | adjustInputAndSetSelection(je);
} else if (ei instanceof IClassFileEditorInput) {
IClassFile cf= ((IClassFileEditorInput)ei).getClassFile();
adjustInputAndSetSelection(cf);
}
return;
}
}
/**
* Returns the element contained in the EditorInput
*/
Object getElementOfInput(IEditorInput input) {
... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | try {
element= ((IJavaElement)element).getUnderlyingResource();
} catch (JavaModelException e) {
return null;
}
}
if (!(element instanceof IResource) || ((IResource)element).isPhantom()) {
return null;
}
return (IResource)element;
}
private void setSelection(ISelection selection, boolean reve... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
/**
* Returns the original element from which the specified working copy
* element was created from. This is a handle only method, the
* returned element may or may not exist.
*
* @param workingCopy the element for which to get the original
* @return the original Java element or <code>null</code> if thi... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | return (ICompilationUnit) element;
if (IJavaElement.CLASS_FILE == type)
return null;
return getCompilationUnit(element.getParent());
}
/**
* Converts the given Java element to one which is suitable for this
* view. It takes into account wether the view shows working copies or not.
*
* @param elemen... |
9,940 | Bug 9940 Request: decorators in java browsing views | Feature request. I'd like the decorators (the team decorators in particular <g>) to appear in the Java browsing views when turned on. | resolved fixed | 46d238e | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T15:04:49Z | 2002-02-15T21:53:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | return ((IWorkingCopy)cu).getOriginal(element);
else
return element;
}
}
/**
* @see JavaEditor#getElementAt(int)
*/
protected IJavaElement getElementForInputAt(IEditorInput input, int offset) {
if (input instanceof IClassFileEditorInput) {
try {
return ((IClassFileEditorInput)input).getClassFil... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.browsing;
import java.util.Collection;
import java.util.Collections; |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import java.util.Comparator;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Ima... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.viewers.StructuredSelection;
import org.eclipse.jface.viewers.StructuredViewer;
import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IFileEditorInput;
import org.ec... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.ui.IContextMenuConstants;
import org.eclipse.jdt.ui.IWorkingCopyManager;
import org.eclipse.jdt.ui.JavaElementLabelProvider;
import org.eclipse.jdt.internal.corext.util.JavaModelUtil;
import org.eclipse.jdt.internal.ui.JavaPlugin;
import org.eclipse... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | private JavaElementTypeComparator fTypeComparator;
private ContextMenuGroup[] fStandardGroups;
private Menu fContextMenu;
private Action fOpenToAction;
private Action fShowTypeHierarchyAction;
private Action fShowNavigatorAction;
private Action fPropertyDialogAction;
private Action fDeleteAction;
privat... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
public void partClosed(IWorkbenchPart part) {
}
public void partDeactivated(IWorkbenchPart part) {
}
public void partOpened(IWorkbenchPart part) {
}
};
/*
* Implements method from IViewPart.
*/
public void init(IViewSite site, IMemento memento) throws PartInitException {
super.init(site, mement... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | * Creates the search list inner viewer.
*/
public void createPartControl(Composite parent) {
Assert.isTrue(fViewer == null);
if (fMemento != null)
fMemento= null;
fTypeComparator= new JavaElementTypeComparator();
fViewer= createViewer(parent);
fLabelProvider= createLabelProvider();
fViewer.s... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | fViewer.setContentProvider(createContentProvider());
setInitialInput();
setInitialSelection();
addFilters();
fillToolBar(getViewSite().getActionBars().getToolBarManager());
getViewSite().getWorkbenchWindow().getSelectionService().addSelectionListener(this);
getViewSite().getPage().addPartLis... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
protected void fillToolBar(IToolBarManager tbm) {
}
}
/**
* Called when the context menu is about to open.
* Override to add your own context dependent menu contributions.
*/
public void menuAboutToShow(IMenuManager menu) {
JavaPlugin.createStandardGroups(menu);
IStructuredSelection selection= (... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | menu.appendToGroup(IContextMenuConstants.GROUP_PROPERTIES, fPropertyDialogAction);
}
}
private void createActions() {
ISelectionProvider provider= fViewer;
fPropertyDialogAction= new PropertyDialogAction(getShell(), provider);
fShowNavigatorAction= new ShowInNavigatorAction(provider);
fAddBookmarkAction... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | }
protected final Display getDisplay() {
return fViewer.getControl().getDisplay();
}
/**
* Answers if the given <code>element</code> is a valid
* input for this part.
*
* @param element the object to test
* @return <true> if the given element is a valid input
*/
abstract protected boolean isValidIn... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | else
return input.equals(element);
}
private boolean isInputResetBy(Object newInput, Object input, IWorkbenchPart part) {
if (newInput == null)
return part == fInputSource;
if (input instanceof IJavaElement && newInput instanceof IJavaElement)
return getTypeComparator().compare(newInput, input) >= 0;
... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | setInput(newInput);
fInputSource= part;
return;
}
Object inputElement= getFirstElement(getViewer().getInput());
Object newInputElement= getFirstElement(getFirstElement(selection));
if (isInputResetBy(newInputElement, inputElement, part)) {
if (!isAncestorOf(newInputElement, inputElement))
setInp... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | Iterator iter= ((IStructuredSelection)selection).iterator();
while (iter.hasNext()) {
IJavaElement element= getSuitableJavaElement(iter.next());
if (!isValidInput(element))
return Collections.EMPTY_SET;
elements.add(element);
}
return elements;
}
protected void setInput(Object input) {
if (input ... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | * store the orignal image on the first call.
*/
protected void setTitleImage(Image titleImage) {
if (fOriginalTitleImage == null)
fOriginalTitleImage= getTitleImage();
if (titleImage == null)
titleImage= fOriginalTitleImage;
super.setTitleImage(titleImage);
}
protected final StructuredViewer getViewer(... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | * @param parent the parent for the viewer
*/
protected StructuredViewer createViewer(Composite parent) {
return new ProblemTableViewer(parent, SWT.SINGLE);
}
protected int getLabelProviderFlags() {
return JavaElementLabelProvider.SHOW_BASICS | JavaElementLabelProvider.SHOW_OVERLAY_ICONS |
JavaElementLabe... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | if (!(input instanceof IJavaElement) && input instanceof IAdaptable)
input= ((IAdaptable)input).getAdapter(IJavaElement.class);
if (isValidInput(input))
setInput(input);
}
}
protected void setInitialSelection() {
Object input;
ISelection selection= getSite().getPage().getSelection();
if (selecti... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | * @return the string used as ID for the Help context
*/
abstract protected String getHelpContextId();
/**
* Adds additional listeners to this view.
*/
protected void hookViewerListeners() {
fViewer.addSelectionChangedListener(new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedE... |
9,666 | Bug 9666 Browser Perspective: No Code Generation Actions | 20020212 Add getter/setter. override ect not avaiable in browser perspective Need to use GenerateGroup | resolved fixed | 8ef1f2c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-02-26T16:00:24Z | 2002-02-13T17:06:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | else if (elementToSelect == null || getViewer().testFindItem(elementToSelect) == null)
setInput(findInputForJavaElement(je));
if (elementToSelect != null)
setSelection(new StructuredSelection(elementToSelect), true);
else
setSelection(StructuredSelection.EMPTY, true);
}
/**
* Finds the closest J... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.