Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 151100 Details for
Bug 293957
Patch to implement "Move to Top" on Debug Config's Classpath dialog
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
"Move to Top"
MOVE_TO_TOP.patch (text/plain), 2.37 KB, created by
Zorzella Mising name
on 2009-11-02 12:21:36 EST
(
hide
)
Description:
"Move to Top"
Filename:
MIME Type:
Creator:
Zorzella Mising name
Created:
2009-11-02 12:21:36 EST
Size:
2.37 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.debug.ui >Index: ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaClasspathTab.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.debug.ui/ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaClasspathTab.java,v >retrieving revision 1.68.6.1 >diff -u -r1.68.6.1 JavaClasspathTab.java >--- ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaClasspathTab.java 8 Jul 2009 16:18:28 -0000 1.68.6.1 >+++ ui/org/eclipse/jdt/debug/ui/launchConfigurations/JavaClasspathTab.java 2 Nov 2009 17:19:12 -0000 >@@ -11,7 +11,6 @@ > *******************************************************************************/ > package org.eclipse.jdt.debug.ui.launchConfigurations; > >- > import java.util.ArrayList; > import java.util.List; > >@@ -49,6 +48,7 @@ > import org.eclipse.jdt.internal.debug.ui.classpath.IClasspathEntry; > import org.eclipse.jdt.internal.debug.ui.classpath.RuntimeClasspathViewer; > import org.eclipse.jdt.internal.debug.ui.launcher.AbstractJavaClasspathTab; >+import org.eclipse.jdt.internal.debug.ui.launcher.IClasspathViewer; > import org.eclipse.jdt.internal.debug.ui.launcher.LauncherMessages; > import org.eclipse.jdt.launching.IJavaLaunchConfigurationConstants; > import org.eclipse.jdt.launching.IRuntimeClasspathEntry; >@@ -129,6 +129,26 @@ > createPathButtons(pathButtonComp); > } > >+ private static final class MoveTopAction extends RuntimeClasspathAction { >+ >+ public MoveTopAction(IClasspathViewer viewer) { >+ super("Top", viewer); >+ } >+ >+ public void run() { >+ List targets = getOrderedSelection(); >+ if (targets.isEmpty()) { >+ return; >+ } >+ List list = getEntriesAsList(); >+ list.removeAll(targets); >+ for (int i = targets.size() - 1; i>=0; i--) { >+ list.add(0, targets.get(i)); >+ } >+ setEntries(list); >+ } >+ } >+ > /** > * Creates the buttons to manipulate the classpath. > * >@@ -138,6 +158,7 @@ > protected void createPathButtons(Composite pathButtonComp) { > List advancedActions = new ArrayList(5); > >+ createButton(pathButtonComp, new MoveTopAction(fClasspathViewer)); > createButton(pathButtonComp, new MoveUpAction(fClasspathViewer)); > createButton(pathButtonComp, new MoveDownAction(fClasspathViewer)); > createButton(pathButtonComp, new RemoveAction(fClasspathViewer));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 293957
: 151100