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 38973 Details for
Bug 136340
(PatchAttached) double click in tree in Apply patch wizard should expand
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Preview Patch Page double click tree expansion
ApplyPatchTreeExpansion.patch (text/plain), 2.99 KB, created by
Bogdan Gheorghe
on 2006-04-19 15:19:36 EDT
(
hide
)
Description:
Preview Patch Page double click tree expansion
Filename:
MIME Type:
Creator:
Bogdan Gheorghe
Created:
2006-04-19 15:19:36 EDT
Size:
2.99 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.compare >Index: compare/org/eclipse/compare/internal/patch/PreviewPatchPage.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.compare/compare/org/eclipse/compare/internal/patch/PreviewPatchPage.java,v >retrieving revision 1.33 >diff -u -r1.33 PreviewPatchPage.java >--- compare/org/eclipse/compare/internal/patch/PreviewPatchPage.java 10 Apr 2006 09:28:39 -0000 1.33 >+++ compare/org/eclipse/compare/internal/patch/PreviewPatchPage.java 19 Apr 2006 19:01:56 -0000 >@@ -14,7 +14,6 @@ > import java.io.ByteArrayInputStream; > import java.io.InputStream; > import java.lang.reflect.InvocationTargetException; >-import com.ibm.icu.text.MessageFormat; > import java.util.ArrayList; > import java.util.Iterator; > import java.util.List; >@@ -50,6 +49,7 @@ > import org.eclipse.jface.viewers.IStructuredSelection; > import org.eclipse.jface.viewers.SelectionChangedEvent; > import org.eclipse.jface.viewers.StructuredSelection; >+import org.eclipse.jface.viewers.TreeSelection; > import org.eclipse.jface.viewers.TreeViewer; > import org.eclipse.jface.viewers.Viewer; > import org.eclipse.jface.wizard.WizardPage; >@@ -78,6 +78,8 @@ > import org.eclipse.ui.model.WorkbenchViewerSorter; > import org.eclipse.ui.views.navigator.ResourceSorter; > >+import com.ibm.icu.text.MessageFormat; >+ > /** > * Shows the parsed patch file and any mismatches > * between files, hunks and the currently selected >@@ -284,7 +286,7 @@ > composite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_FILL|GridData.HORIZONTAL_ALIGN_FILL)); > > PlatformUI.getWorkbench().getHelpSystem().setHelp(composite, ICompareContextIds.PATCH_PREVIEW_WIZARD_PAGE); >- >+ > setControl(composite); > > initializeDialogUnits(parent); >@@ -372,6 +374,25 @@ > } > }); > >+ fTreeViewer.addDoubleClickListener(new IDoubleClickListener() { >+ public void doubleClick(DoubleClickEvent event) { >+ ISelection selection= event.getSelection(); >+ if (selection instanceof TreeSelection) { >+ TreeSelection treeSel= (TreeSelection) selection; >+ Object res= treeSel.getFirstElement(); >+ if (res != null) { >+ if (res instanceof DiffProject || res instanceof Diff) { >+ if (fTreeViewer.getExpandedState(res)) >+ fTreeViewer.collapseToLevel(res, 1); >+ else >+ fTreeViewer.expandToLevel(res, 1); >+ } >+ } >+ } >+ } >+ }); >+ >+ > fTreeViewer.addSelectionChangedListener(new ISelectionChangedListener() { > > public void selectionChanged(SelectionChangedEvent event) { >@@ -382,7 +403,7 @@ > PreviewPatchPage.this.fHunkViewer.setInput(createInput((Hunk) obj)); > } else > PreviewPatchPage.this.fHunkViewer.setInput(null); >- >+ > fMatchProject.setEnabled(false); > //See if we need to enable match project button > if (fPatchWizard.getPatcher().isWorkspacePatch()&&obj instanceof DiffProject) { >@@ -392,6 +413,7 @@ > } > > }); >+ > fTreeViewer.setInput(null); > } >
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 136340
: 38973