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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22,662 | Bug 22662 IClasspathContainerPage needs more context [build path] | When adding a container to the buildpath of a project, it would be nice to have more context in the page. At least the classpath of the project that the container will be added to. This way one can handle inter container dependencies (fe this library can be used in combination with this base library, etc) | resolved fixed | 0a3dbc3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:07:08Z | 2002-08-21T20:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | private SourceAttachmentBlock fSourceAttachmentBlock;
public SourceAttachmentDialog(Shell parent, IWorkspaceRoot root, IClasspathEntry entry) {
super(parent);
setTitle(NewWizardMessages.getFormattedString("LibrariesWorkbookPage.SourceAttachmentDialog.title", entry.getPath().toString()));
fSourceAttachm... |
22,662 | Bug 22662 IClasspathContainerPage needs more context [build path] | When adding a container to the buildpath of a project, it would be nice to have more context in the page. At least the classpath of the project that the container will be added to. This way one can handle inter container dependencies (fe this library can be used in combination with this base library, etc) | resolved fixed | 0a3dbc3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:07:08Z | 2002-08-21T20:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/LibrariesWorkbookPage.java | public IPath getSourceAttachmentPath() {
return fSourceAttachmentBlock.getSourceAttachmentPath();
}
public IPath getSourceAttachmentRootPath() {
return fSourceAttachmentBlock.getSourceAttachmentRootPath();
}
}
/*
* @see BuildPathBasePage#getSelection
*/
public List getSelection() {
return... |
22,662 | Bug 22662 IClasspathContainerPage needs more context [build path] | When adding a container to the buildpath of a project, it would be nice to have more context in the page. At least the classpath of the project that the container will be added to. This way one can handle inter container dependencies (fe this library can be used in combination with this base library, etc) | resolved fixed | 0a3dbc3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:07:08Z | 2002-08-21T20:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/IClasspathContainerPage.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 v1.0
* which accompanies this ... |
22,662 | Bug 22662 IClasspathContainerPage needs more context [build path] | When adding a container to the buildpath of a project, it would be nice to have more context in the page. At least the classpath of the project that the container will be added to. This way one can handle inter container dependencies (fe this library can be used in combination with this base library, etc) | resolved fixed | 0a3dbc3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:07:08Z | 2002-08-21T20:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/IClasspathContainerPage.java | /**
* Called when the classpath container wizard is closed by selecting |
22,662 | Bug 22662 IClasspathContainerPage needs more context [build path] | When adding a container to the buildpath of a project, it would be nice to have more context in the page. At least the classpath of the project that the container will be added to. This way one can handle inter container dependencies (fe this library can be used in combination with this base library, etc) | resolved fixed | 0a3dbc3 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:07:08Z | 2002-08-21T20:00:00Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/IClasspathContainerPage.java | * the finish button. Implementers typically override this method to
* store the page result (new/changed classpath entry returned in
* getSelection) into its model.
*
* @return if the operation was succesful. Only when returned
* <code>true</code>, the wizard will close.
*/
public boolean finish();
/... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.typehierarchy;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.ecli... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | import org.eclipse.swt.widgets.ScrollBar;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IStatusLineManager;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.action.MenuManager;... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | import org.eclipse.ui.PartInitException;
import org.eclipse.ui.actions.ActionContext;
import org.eclipse.ui.actions.ActionGroup;
import org.eclipse.ui.actions.OpenWithMenu;
import org.eclipse.ui.help.WorkbenchHelp;
import org.eclipse.ui.part.PageBook;
import org.eclipse.ui.part.ViewPart;
import org.eclipse.jdt.core.ICl... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | import org.eclipse.jdt.internal.ui.dnd.DelegatingDropAdapter;
import org.eclipse.jdt.internal.ui.dnd.LocalSelectionTransfer;
import org.eclipse.jdt.internal.ui.dnd.TransferDragSourceListener;
import org.eclipse.jdt.internal.ui.dnd.TransferDropTargetListener;
import org.eclipse.jdt.internal.ui.javaeditor.EditorUtility;
... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | private static final String TAG_ORIENTATION= "orientation";
private static final String TAG_RATIO= "ratio";
private static final String TAG_SELECTION= "selection";
private static final String TAG_VERTICAL_SCROLL= "vertical_scroll";
private static final String GROUP_FOCUS= "group.focus";
private IType fSel... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | private SashForm fTypeMethodsSplitter;
private PageBook fViewerbook;
private PageBook fPagebook;
private Label fNoHierarchyShownLabel;
private Label fEmptyTypesViewer;
private ViewForm fTypeViewerViewForm;
private ViewForm fMethodViewerViewForm;
private CLabel fMethodViewerPaneLabel;
private JavaUILabelPr... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | private CompositeActionGroup fActionGroups;
private CCPActionGroup fCCPActionGroup;
public TypeHierarchyViewPart() {
fSelectedType= null;
fInputElement= null;
fHierarchyLifeCycle= new TypeHierarchyLifeCycle();
fHierarchyLifeCycle.setReconciled(JavaBasePreferencePage.reconcileJavaViews());
fTypeHierarch... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | new ToggleViewAction(this, VIEW_ID_SUPER),
new ToggleViewAction(this, VIEW_ID_SUB)
};
fDialogSettings= JavaPlugin.getDefault().getDialogSettings();
fHistoryDropDownAction= new HistoryDropDownAction(this);
fHistoryDropDownAction.setEnabled(false);
fToggleOrientationActions= new ToggleOrientationAct... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | public void partClosed(IWorkbenchPart part) {}
public void partDeactivated(IWorkbenchPart part) {}
public void partOpened(IWorkbenchPart part) {}
};
fSelectionChangedListener= new ISelectionChangedListener() {
public void selectionChanged(SelectionChangedEvent event) {
doSelectionChanged(event);
... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | fInputHistory.remove(entry);
}
fInputHistory.add(0, entry);
fHistoryDropDownAction.setEnabled(true);
}
private void updateHistoryEntries() {
for (int i= fInputHistory.size() - 1; i >= 0; i--) {
IJavaElement type= (IJavaElement) fInputHistory.get(i);
if (!type.exists()) {
fInputHistory.remove(i);
... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | updateHistoryEntries();
}
return (IJavaElement[]) fInputHistory.toArray(new IJavaElement[fInputHistory.size()]);
}
/**
* Sets the history entries
*/
public void setHistoryEntries(IJavaElement[] elems) {
fInputHistory.clear();
for (int i= 0; i < elems.length; i++) {
fInputHistory.add(elems[i]);
}
... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | member= (IMember) EditorUtility.getWorkingCopy(member);
if (member == null) {
return;
}
} catch (JavaModelException e) {
JavaPlugin.log(e);
return;
}
}
Control methodControl= fMethodsViewer.getControl();
if (methodControl != null && !methodControl.isDisposed()) {
methodCon... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | }
/**
* Sets the input to a new type
* @deprecated
*/
public void setInput(IType type) {
setInputElement(type);
}
/**
* Returns the input element of the type hierarchy.
* Can be of type <code>IType</code> or <code>IPackageFragment</code>
*/
public IJavaElement getInputElement() {
return fInp... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | if (!element.exists()) {
MessageDialog.openError(getSite().getShell(), TypeHierarchyMessages.getString("TypeHierarchyViewPart.error.title"), TypeHierarchyMessages.getString("TypeHierarchyViewPart.error.message"));
return;
}
}
} else {
int kind= element.getElementType();
if (kind != IJav... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | try {
fHierarchyLifeCycle.ensureRefreshedTypeHierarchy(fInputElement, new BusyIndicatorRunnableContext());
} catch (JavaModelException e) {
JavaPlugin.log(e);
clearInput();
return;
}
fPagebook.showPage(fTypeMethodsSplitter);
if (inputElement.getElementType() != IJavaElement.TYPE) {
... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | updateHierarchyViewer();
updateToolbarButtons();
}
/*
* @see IWorbenchPart#setFocus
*/
public void setFocus() {
fPagebook.setFocus();
}
/*
* @see IWorkbenchPart#dispose
*/
public void dispose() {
fHierarchyLifeCycle.freeHierarchy();
fHierarchyLifeCycle.removeChangedListener(fTypeHierarchyLifeCyc... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | fViewerbook= new PageBook(parent, SWT.NULL);
KeyListener keyListener= createKeyListener();
TypeHierarchyViewer superTypesViewer= new SuperTypeHierarchyViewer(fViewerbook, fHierarchyLifeCycle, this);
initializeTypesViewer(superTypesViewer, keyListener, IContextMenuConstants.TARGET_ID_SUPERTYPES_VIEW... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | for (int i= 0; i < fAllViewers.length; i++) {
fAllViewers[i].setInput(fAllViewers[i]);
}
fCurrentViewerIndex= -1;
setView(currViewerIndex);
return fViewerbook;
}
private KeyListener createKeyListener() {
return new KeyAdapter() {
public void keyReleased(KeyEvent event) {
if (event.sta... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | typesViewer.getControl().setVisible(false);
typesViewer.getControl().addKeyListener(keyListener);
typesViewer.initContextMenu(new IMenuListener() {
public void menuAboutToShow(IMenuManager menu) {
fillTypesViewerContextMenu(typesViewer, menu);
}
}, cotextHelpId, getSite());
typesViewer.addSelectionCha... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | addDropAdapters(fAllViewers[i], ops | DND.DROP_DEFAULT, transfers);
}
addDragAdapters(fMethodsViewer, ops, transfers);
DropTarget dropTarget = new DropTarget(fNoHierarchyShownLabel, ops | DND.DROP_DEFAULT);
dropTarget.setTransfer(transfers);
dropTarget.addDropListener(new TypeHierarchyTransferDropAdapter(... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | setView(VIEW_ID_SUPER);
} else if (event.character == '3') {
setView(VIEW_ID_SUB);
}
}
}
/**
* Returns the inner component in a workbench part.
* @see IWorkbenchPart#createPartControl
*/
public void createPartControl(Composite container) {
fPagebook= new PageBook(container, SWT.NONE)... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | fMethodViewerPaneLabel= new CLabel(fMethodViewerViewForm, SWT.NONE);
fMethodViewerViewForm.setTopLeft(fMethodViewerPaneLabel);
ToolBar methodViewerToolBar= new ToolBar(fMethodViewerViewForm, SWT.FLAT | SWT.WRAP);
fMethodViewerViewForm.setTopCenter(methodViewerToolBar);
fNoHierarchyShownLabel= new Lab... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | IActionBars actionBars= getViewSite().getActionBars();
IMenuManager viewMenu= actionBars.getMenuManager();
for (int i= 0; i < fToggleOrientationActions.length; i++) {
viewMenu.add(fToggleOrientationActions[i]);
}
viewMenu.add(new Separator(IWorkbenchActionConstants.MB_ADDITIONS));
ToolBarManager lo... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | if (fMemento != null) {
restoreState(fMemento, input);
} else if (input != null) {
setInputElement(input);
} else {
setViewerVisibility(false);
}
WorkbenchHelp.setHelp(fPagebook, IJavaHelpContextIds.TYPE_HIERARCHY_VIEW);
fActionGroups= new CompositeActionGroup(new ActionGroup[] {
new NewWizard... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | if (fMethodViewerViewForm != null && !fMethodViewerViewForm.isDisposed()
&& fTypeMethodsSplitter != null && !fTypeMethodsSplitter.isDisposed()) {
if (orientation == VIEW_ORIENTATION_SINGLE) {
fMethodViewerViewForm.setVisible(false);
enableMemberFilter(false);
updateMethodViewer(null);
} else... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | private void updateMainToolbar(int orientation) {
IActionBars actionBars= getViewSite().getActionBars();
IToolBarManager tbmanager= actionBars.getToolBarManager();
if (orientation == VIEW_ORIENTATION_HORIZONTAL) {
clearMainToolBar(tbmanager);
ToolBar typeViewerToolBar= new ToolBar(fTypeViewerViewForm,... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | * Creates the context menu for the hierarchy viewers
*/
private void fillTypesViewerContextMenu(TypeHierarchyViewer viewer, IMenuManager menu) {
JavaPlugin.createStandardGroups(menu);
menu.appendToGroup(IContextMenuConstants.GROUP_SHOW, new Separator(GROUP_FOCUS));
viewer.contributeToContextMenu(menu);
... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | }
private void addOpenWithMenu(IMenuManager menu, IStructuredSelection selection) {
if (selection.size() != 1)
return;
Object element= selection.getFirstElement();
if (!(element instanceof IJavaElement))
return;
IResource resource= null;
try {
resource= ((IJavaElement)element).getUnderlyingR... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | * Toggles between the empty viewer page and the hierarchy
*/
private void setViewerVisibility(boolean showHierarchy) {
if (showHierarchy) {
fViewerbook.showPage(getCurrentViewer().getControl());
} else {
fViewerbook.showPage(fEmptyTypesViewer);
}
}
/**
* Sets the member filter. <code>null</code> di... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | TypeHierarchyViewer viewer= getCurrentViewer();
viewer.removeSelectionChangedListener(fSelectionChangedListener);
viewer.setSelection(elem != null ? new StructuredSelection(elem) : StructuredSelection.EMPTY, reveal);
viewer.addSelectionChangedListener(fSelectionChangedListener);
}
private void internalSelectM... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | }
} else {
fEmptyTypesViewer.setText(TypeHierarchyMessages.getFormattedString("TypeHierarchyViewPart.nodecl", fInputElement.getElementName()));
setViewerVisibility(false);
}
}
}
private void updateMethodViewer(IType input) {
if (!fIsEnableMemberFilter && fCurrentOrientation != VIEW_OR... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | }
}
private void methodSelectionChanged(ISelection sel) {
if (sel instanceof IStructuredSelection) {
List selected= ((IStructuredSelection)sel).toList();
int nSelected= selected.size();
if (fIsEnableMemberFilter) {
IMember[] memberFilter= null;
if (nSelected > 0) {
memberFilter= new IMem... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | if (nSelected != 0) {
List types= new ArrayList(nSelected);
for (int i= nSelected-1; i >= 0; i--) {
Object elem= selected.get(i);
if (elem instanceof IType && !types.contains(elem)) {
types.add(elem);
}
}
if (types.size() == 1) {
fSelectedType= (IType) types.get(0);
update... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | if (fSelectionProviderMediator.getViewerInFocus() != originViewer) {
return;
}
IEditorPart editorPart= EditorUtility.isOpenInEditor(elem);
if (editorPart != null && (elem instanceof IJavaElement)) {
try {
getSite().getPage().removePartListener(fPartListener);
EditorUtility.openInEditor(elem, fals... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | }
return false;
}
private void updateTitle() {
String viewerTitle= getCurrentViewer().getTitle();
String tooltip;
String title;
if (fInputElement != null) {
String[] args= new String[] { viewerTitle, JavaElementLabels.getElementLabel(fInputElement, JavaElementLabels.ALL_DEFAULT) };
title= TypeHie... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | }
}
/**
* Sets the current view (see view id)
* called from ToggleViewAction. Must be called after creation of the viewpart.
*/
public void setView(int viewerIndex) {
Assert.isNotNull(fAllViewers);
if (viewerIndex < fAllViewers.length && fCurrentViewerIndex != viewerIndex) {
fCurrentViewerIndex= ... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | action.setChecked(fCurrentViewerIndex == action.getViewerIndex());
}
}
/**
* Gets the curret active view index.
*/
public int getViewIndex() {
return fCurrentViewerIndex;
}
private TypeHierarchyViewer getCurrentViewer() {
return fAllViewers[fCurrentViewerIndex];
}
/**
* called from EnableMemberFi... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | internalSelectType(fSelectedType, true);
updateMethodViewer(fSelectedType);
}
} else {
methodSelectionChanged(fMethodsViewer.getSelection());
}
}
fEnableMemberFilterAction.setChecked(on);
}
/**
* Called from ITypeHierarchyLifeCycleListener.
* Can be called from any thread
*/
private vo... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | clearInput();
} else {
if (changedTypes == null) {
try {
fHierarchyLifeCycle.ensureRefreshedTypeHierarchy(fInputElement, new BusyIndicatorRunnableContext());
} catch (JavaModelException e) {
JavaPlugin.log(e.getStatus());
clearInput();
return;
}
fMethodsViewer.refresh();
... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | /**
* Determines the input element to be used initially .
*/
private IJavaElement determineInputElement() {
Object input= getSite().getPage().getInput();
if (input instanceof IJavaElement) {
IJavaElement elem= (IJavaElement) input;
if (elem instanceof IMember) {
return elem;
} else {
int kin... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | public void saveState(IMemento memento) {
if (fPagebook == null) {
if (fMemento != null) {
memento.putMemento(fMemento);
}
return;
}
if (fInputElement != null) {
String handleIndentifier= fInputElement.getHandleIdentifier();
if (fInputElement instanceof IType) {
ITypeHierarchy hierarc... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | memento.putString(TAG_SELECTION, selection.getHandleIdentifier());
}
fMethodsViewer.saveState(memento);
}
/**
* Restores the type hierarchy settings from a memento.
*/
private void restoreState(IMemento memento, IJavaElement defaultInput) {
IJavaElement input= defaultInput;
String elementId= mement... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | }
ScrollBar bar= getCurrentViewer().getTree().getVerticalBar();
if (bar != null) {
Integer vScroll= memento.getInteger(TAG_VERTICAL_SCROLL);
if (vScroll != null) {
bar.setSelection(vScroll.intValue());
}
}
String selectionId= memento.getString(TAG_SELECTION);
fMethodsViewer.restoreState(mem... |
21,087 | Bug 21087 Support CTRL-A in Types pane and others [type hierarchy] | In a Java Browser, when I am in the Types pane, I would like to use the standard (at least on Windows) CTRL-A to perform a "Select All" instead of using the mouse. I can then perform ops on all the types (like moving them). Thank you considering this request. Gary | resolved fixed | 22f1652 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-10T09:35:36Z | 2002-06-27T20:33:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/typehierarchy/TypeHierarchyViewPart.java | IType type= ((IClassFile)elem).getType();
if (currentViewer.isElementShown(type)) {
internalSelectType(type, true);
updateMethodViewer(type);
}
} else if (elem instanceof ICompilationUnit) {
IType[] allTypes= ((ICompilationUnit)elem).getAllTypes();
for (int i= 0; i < allTypes.length; i++) {... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.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... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | * IBM Corporation - initial API and implementation
******************************************************************************/
package org.eclipse.jdt.ui.wizards;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;
import org.eclipse.core.runtime.CoreException... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.ISourceRange;
import org.eclipse.jdt.core.IType;
import org.eclipse.jdt.core.ITypeHierarchy;
import org.eclipse.jdt.core.JavaConventions;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.core.Signature;
import org.eclips... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | import org.eclipse.jdt.internal.ui.wizards.SuperInterfaceSelectionDialog;
import org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField;
import org.eclipse.jdt.internal.ui.wizards.dialogfields.IDialogFieldListener;
import org.eclipse.jdt.internal.ui.wizards.dialogfields.IListAdapter;
import org.eclipse.jdt.intern... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | /**
* Class used in stub creation routines to add needed imports to a
* compilation unit.
*/
public static class ImportsManager {
private IImportsStructure fImportsStructure;
ImportsManager(IImportsStructure structure) {
fImportsStructure= structure;
}
IImportsStructure getImportsStructure() {
r... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | public int F_PUBLIC = Flags.AccPublic;
public int F_PRIVATE = Flags.AccPrivate;
public int F_PROTECTED = Flags.AccProtected;
public int F_STATIC = Flags.AccStatic;
public int F_FINAL = Flags.AccFinal;
public int F_ABSTRACT = Flags.AccAbstract;
private final static String PAGE_NAME= "NewTypeWizardPage"; ... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | private Image fInterfaceImage;
public InterfacesListLabelProvider() {
super();
fInterfaceImage= JavaPluginImages.get(JavaPluginImages.IMG_OBJS_INTERFACE);
}
public Image getImage(Object element) {
return fInterfaceImage;
}
}
private StringButtonStatusDialogField fPackageDialogField;
private... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | private IType fCurrEnclosingType;
private StringDialogField fTypeNameDialogField;
private StringButtonDialogField fSuperClassDialogField;
private ListDialogField fSuperInterfacesDialogField;
private IType fSuperClass;
private SelectionButtonDialogFieldGroup fAccMdfButtons;
private SelectionButtonDialogFiel... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | * an interface is to be created
* @param pageName the wizard page's name
*/
public NewTypeWizardPage(boolean isClass, String pageName) {
super(pageName);
fCreatedType= null;
fIsClass= isClass;
TypeFieldsAdapter adapter= new TypeFieldsAdapter();
fPackageDialogField= new StringButtonStatusDialogFi... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | fSuperClassDialogField.setDialogFieldListener(adapter);
fSuperClassDialogField.setLabelText(NewWizardMessages.getString("NewTypeWizardPage.superclass.label"));
fSuperClassDialogField.setButtonLabel(NewWizardMessages.getString("NewTypeWizardPage.superclass.button"));
String[] addButtons= new String[] {
Ne... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | NewWizardMessages.getString("NewTypeWizardPage.modifiers.final"),
NewWizardMessages.getString("NewTypeWizardPage.modifiers.static")
};
fStaticMdfIndex= 2;
} else {
buttonNames2= new String[] {
NewWizardMessages.getString("NewTypeWizardPage.modifiers.static")
};
fStaticMdfIndex= 0;
}
f... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | * Initializes all fields provided by the page with a given selection.
*
* @param elem the selection used to intialize this page or <code>
* null</code> if no selection was available
*/
protected void initTypePage(IJavaElement elem) {
String initSuperclass= "java.lang.Object";
ArrayList initSuperinterface... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | if (type.exists()) {
String superName= JavaModelUtil.getFullyQualifiedName(type);
if (type.isInterface()) {
initSuperinterfaces.add(superName);
} else {
initSuperclass= superName;
}
}
}
} catch (JavaModelException e) {
JavaPlugin.log(e);
}
}
setPackag... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | */
protected void createSeparator(Composite composite, int nColumns) {
(new Separator(SWT.SEPARATOR | SWT.HORIZONTAL)).doFillIntoGrid(composite, nColumns, convertHeightInCharsToPixels(1));
}
/**
* Creates the controls for the package name field. Expects a <code>GridLayout</code> with at
* least 4 columns.
... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | fEnclosingTypeSelection.doFillIntoGrid(tabGroup, 1);
Control c= fEnclosingTypeDialogField.getTextControl(composite);
GridData gd= new GridData(GridData.FILL_HORIZONTAL);
gd.widthHint= getMaxFieldWidth();
gd.horizontalSpan= 2;
c.setLayoutData(gd);
Button button= fEnclosingTypeDialogField.getChangeControl(... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | * @param composite the parent composite
* @param nColumns number of columns to span
*/
protected void createModifierControls(Composite composite, int nColumns) {
LayoutUtil.setHorizontalSpan(fAccMdfButtons.getLabelControl(composite), 1);
Control control= fAccMdfButtons.getSelectionButtonsGroup(composite);... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | LayoutUtil.setWidthHint(fSuperClassDialogField.getTextControl(null), getMaxFieldWidth());
}
/**
* Creates the controls for the superclass name field. Expects a <code>GridLayout</code> with
* at least 3 columns.
*
* @param composite the parent composite
* @param nColumns number of columns to span
*/
... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | public void changeControlPressed(DialogField field) {
typePageChangeControlPressed(field);
}
public void customButtonPressed(DialogField field, int index) {
typePageCustomButtonPressed(field, index);
}
public void selectionChanged(DialogField field) {}
public void dialogFieldChanged(Dialo... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | private void typePageChangeControlPressed(DialogField field) {
if (field == fPackageDialogField) {
IPackageFragment pack= choosePackage();
if (pack != null) {
fPackageDialogField.setText(pack.getElementName());
}
} else if (field == fEnclosingTypeDialogField) {
IType type= chooseEnclosingType();
... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | String fieldName= null;
if (field == fPackageDialogField) {
fPackageStatus= packageChanged();
updatePackageStatusLabel();
fTypeNameStatus= typeNameChanged();
fSuperClassStatus= superClassChanged();
fieldName= PACKAGE;
} else if (field == fEnclosingTypeDialogField) {
fEnclosingTypeStatus= enclos... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | fieldName= ENCLOSINGSELECTION;
} else if (field == fTypeNameDialogField) {
fTypeNameStatus= typeNameChanged();
fieldName= TYPENAME;
} else if (field == fSuperClassDialogField) {
fSuperClassStatus= superClassChanged();
fieldName= SUPER;
} else if (field == fSuperInterfacesDialogField) {
fSuperInterf... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | fTypeNameStatus= typeNameChanged();
fSuperClassStatus= superClassChanged();
fSuperInterfacesStatus= superInterfacesChanged();
}
}
/**
* Returns the text of the package input field.
*
* @return the text of the package input field
*/
public String getPackageText() {
return fPackageDialogField.... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | * could not be resolved.
*/
public IPackageFragment getPackageFragment() {
if (!isEnclosingTypeSelected()) {
return fCurrPackage;
} else {
if (fCurrEnclosingType != null) {
return fCurrEnclosingType.getPackageFragment();
}
}
return null;
}
/**
* Sets the package fragment to the given value... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | *
* @return the enclosing type or <code>null</code> if the enclosing type is
* not selected or the input could not be resolved
*/
public IType getEnclosingType() {
if (isEnclosingTypeSelected()) {
return fCurrEnclosingType;
}
return null;
}
/**
* Sets the enclosing type. The method updates the und... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | */
public boolean isEnclosingTypeSelected() {
return fEnclosingTypeSelection.isSelected();
}
/**
* Sets the enclosing type checkbox's selection state.
*
* @param isSelected the checkbox's selection state
* @param canBeModified if <code>true</code> the enclosing type checkbox is
* modifiable; otherwise i... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | * @param canBeModified if <code>true</code> the enclosing type name field is
* editable; otherwise it is read-only.
*/
public void setTypeName(String name, boolean canBeModified) {
fTypeNameDialogField.setText(name);
fTypeNameDialogField.setEnabled(canBeModified);
}
/**
* Returns the selected modifiers... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | mdf+= F_STATIC;
}
return mdf;
}
/**
* Sets the modifiers.
*
* @param modifiers <code>F_PUBLIC</code>, <code>F_PRIVATE</code>,
* <code>F_PROTECTED</code>, <code>F_ABSTRACT, F_FINAL</code>
* or <code>F_STATIC</code> or, a valid combination.
* @param canBeModified if <code>true</code> the modifier fiel... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | if (Flags.isStatic(modifiers)) {
fOtherMdfButtons.setSelection(fStaticMdfIndex, true);
}
fAccMdfButtons.setEnabled(canBeModified);
fOtherMdfButtons.setEnabled(canBeModified);
}
/**
* Returns the content of the superclass input field.
*
* @return the superclass name
*/
public String getSuperCl... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | *
* @return a list of chosen super interfaces. The list's elements
* are of type <code>String</code>
*/
public List getSuperInterfaces() {
return fSuperInterfacesDialogField.getElements();
}
/**
* Sets the super interfaces.
*
* @param interfacesNames a list of super interface. The method requires tha... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | * @return the status of the validation
*/
protected IStatus packageChanged() {
StatusInfo status= new StatusInfo();
fPackageDialogField.enableButton(getPackageFragmentRoot() != null);
String packName= getPackageText();
if (packName.length() > 0) {
IStatus val= JavaConventions.validatePackageName(packNa... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | return status;
}
}
} catch (JavaModelException e) {
JavaPlugin.log(e);
}
}
fCurrPackage= root.getPackageFragment(packName);
} else {
status.setError("");
}
return status;
}
/*
* Updates the 'default' label next to the package field.
*/
private void updatePack... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | */
private void updateEnableState() {
boolean enclosing= isEnclosingTypeSelected();
fPackageDialogField.setEnabled(fCanModifyPackage && !enclosing);
fEnclosingTypeDialogField.setEnabled(fCanModifyEnclosingType && enclosing);
}
/**
* Hook method that gets called when the enclosing type name has changed. The ... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | status.setError(NewWizardMessages.getString("NewTypeWizardPage.error.EnclosingTypeEnterName"));
return status;
}
try {
IType type= root.getJavaProject().findType(enclName);
if (type == null) {
status.setError(NewWizardMessages.getString("NewTypeWizardPage.error.EnclosingTypeNotExists"));
return s... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | /**
* Hook method that gets called when the type name has changed. The method validates the
* type name and returns the status of the validation.
* <p>
* Subclasses may extend this method to perform their own validation.
* </p>
*
* @return the status of the validation
*/
protected IStatus typeNameCha... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | if (!isEnclosingTypeSelected()) {
IPackageFragment pack= getPackageFragment();
if (pack != null) {
ICompilationUnit cu= pack.getCompilationUnit(typeName + ".java");
if (cu.exists()) {
status.setError(NewWizardMessages.getString("NewTypeWizardPage.error.TypeNameExists"));
return status;
}
... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | * @return the status of the validation
*/
protected IStatus superClassChanged() {
StatusInfo status= new StatusInfo();
IPackageFragmentRoot root= getPackageFragmentRoot();
fSuperClassDialogField.enableButton(root != null);
fSuperClass= null;
String sclassName= getSuperClass();
if (sclassName.length... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | int flags= type.getFlags();
if (Flags.isFinal(flags)) {
status.setWarning(NewWizardMessages.getFormattedString("NewTypeWizardPage.warning.SuperClassIsFinal", sclassName));
return status;
} else if (!JavaModelUtil.isVisible(type, getPackageFragment())) {
status.setWarning(NewWizardMessages.g... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | }
}
} else {
IPackageFragment currPack= getPackageFragment();
if (type == null && currPack != null) {
String packName= currPack.getElementName();
if (!currPack.isDefaultPackage()) {
type= jproject.findType(packName, sclassName);
}
if (type == null && !"java.lang".equals(packNam... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | * @return the status of the validation
*/
protected IStatus superInterfacesChanged() {
StatusInfo status= new StatusInfo();
IPackageFragmentRoot root= getPackageFragmentRoot();
fSuperInterfacesDialogField.enableButton(0, root != null);
if (root != null) {
List elements= fSuperInterfacesDialogFie... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | }
}
}
return status;
}
/**
* Hook method that gets called when the modifiers have changed. The method validates
* the modifiers and returns the status of the validation.
* <p>
* Subclasses may extend this method to perform their own validation.
* </p>
*
* @return the status of the vali... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | if (froot != null && froot.exists()) {
packages= froot.getChildren();
}
} catch (JavaModelException e) {
JavaPlugin.log(e);
}
if (packages == null) {
packages= new IJavaElement[0];
}
ElementListSelectionDialog dialog= new ElementListSelectionDialog(getShell(), new JavaElementLabelProvider(Java... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | }
IJavaSearchScope scope= SearchEngine.createJavaSearchScope(new IJavaElement[] { root });
TypeSelectionDialog dialog= new TypeSelectionDialog(getShell(), getWizard().getContainer(), IJavaSearchConstants.TYPE, scope);
dialog.setTitle(NewWizardMessages.getString("NewTypeWizardPage.ChooseEnclosingTypeDialog.ti... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | }
private void chooseSuperInterfaces() {
IPackageFragmentRoot root= getPackageFragmentRoot();
if (root == null) {
return;
}
IJavaProject project= root.getJavaProject();
SuperInterfaceSelectionDialog dialog= new SuperInterfaceSelectionDialog(getShell(), getWizard().getContainer(), fSuperInterfacesDialog... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | IPackageFragment pack= getPackageFragment();
if (pack == null) {
pack= root.getPackageFragment("");
}
if (!pack.exists()) {
String packName= pack.getElementName();
pack= root.createPackageFragment(packName, true, null);
}
monitor.worked(1);
String clName= getTypeName();
boolean isI... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | imports.addImport(pack.getElementName(), getTypeName());
String content= constructTypeStub(new ImportsManager(imports), lineDelimiter, parentCU);
createdType= parentCU.createType(content, null, false, new SubProgressMonitor(monitor, 3));
} else {
IType enclosingType= getEnclosingType();
IT... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | imports.create(!isInnerClass, new SubProgressMonitor(monitor, 1));
createTypeMembers(createdType, new ImportsManager(imports), new SubProgressMonitor(monitor, 1));
imports.create(!isInnerClass, new SubProgressMonitor(monitor, 1));
ICompilationUnit cu= createdType.getCompilationUnit();
ISourceRange ran... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | monitor.worked(1);
}
fCreatedType= createdType;
monitor.done();
}
/**
* Returns the created type. The method only returns a valid type
* after <code>createType</code> has been called.
*
* @return the created type
* @see #createType(IProgressMonitor)
*/
public IType getCreatedType() {
return... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | int last= interfaces.size() - 1;
if (last >= 0) {
if (fIsClass) {
buf.append(" implements ");
} else {
buf.append(" extends ");
}
for (int i= 0; i <= last; i++) {
String typename= (String) interfaces.get(i);
buf.append(imports.addImport(typename));
if (i < last) {
buf.append(','... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | buf.append(' ');
}
buf.append(fIsClass ? "class " : "interface ");
buf.append(getTypeName());
writeSuperClass(buf, imports);
writeSuperInterfaces(buf, imports);
buf.append('{');
buf.append(lineDelimiter);
buf.append(lineDelimiter);
buf.append('}');
buf.append(lineDelimiter);
return buf.toString(... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | * import manager.
* </p>
*
* @param newType the new type created via <code>createType</code>
* @param imports an import manager which can be used to add new imports
* @param monitor a progress monitor to report progress. Must not be <code>null</code>
*
* @see #createType(IProgressMonitor)
*/
protec... |
3,248 | Bug 3248 Creating a new class creates 3 entries in local history (1GE4TOC) | Creating a new class with the class wizard creates 3 entries in the local history. The oldest is empty, the others have the same content. NOTES: EG (5/23/2001 11:35:43 AM) is the wizard setting the contents 3 times? MA (5/25/01 10:10:32 AM) JDOM automatically saves the content 2 times add import: I have to save, otherw... | resolved fixed | 52f6017 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-10-11T13:40:32Z | 2001-10-11T03:13:20Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/wizards/NewTypeWizardPage.java | if (CodeGenerationPreferencePage.doFileComments()) {
return getTemplate("filecomment", parentCU, 0);
}
return null;
}
/**
* Hook method that gets called from <code>createType</code> to retrieve
* a type comment. This default implementation returns the content of the
* 'typecomment' template.
*
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.