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 72025 Details for
Bug 193114
[Repo View] "Unable to Discard Location" dialog has bad resizing behavior
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Fix
patch.txt (text/plain), 3.47 KB, created by
Dani Megert
on 2007-06-21 07:18:42 EDT
(
hide
)
Description:
Fix
Filename:
MIME Type:
Creator:
Dani Megert
Created:
2007-06-21 07:18:42 EDT
Size:
3.47 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.team.ui >Index: src/org/eclipse/team/internal/ui/dialogs/DetailsDialogWithProjects.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/dialogs/DetailsDialogWithProjects.java,v >retrieving revision 1.9 >diff -u -r1.9 DetailsDialogWithProjects.java >--- src/org/eclipse/team/internal/ui/dialogs/DetailsDialogWithProjects.java 10 May 2006 17:47:27 -0000 1.9 >+++ src/org/eclipse/team/internal/ui/dialogs/DetailsDialogWithProjects.java 21 Jun 2007 11:16:18 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2006 IBM Corporation and others. >+ * Copyright (c) 2000, 2007 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -31,8 +31,14 @@ > > /** > * Constructor for DetailsDialogWithProjects. >- * @param parentShell >- * @param dialogTitle >+ * >+ * @param parentShell the parent shell >+ * @param dialogTitle the dialog title >+ * @param dialogMessage the dialog message >+ * @param detailsTitle the details title >+ * @param projects the <code>IProject</code>s >+ * @param includeCancelButton <code>true</code> if the 'Cancel' button should be shown >+ * @param imageKey the image key (one of the image constants on Dialog) > */ > public DetailsDialogWithProjects(Shell parentShell, String dialogTitle, String dialogMessage, String detailsTitle, IProject[] projects, boolean includeCancelButton, String imageKey) { > super(parentShell, dialogTitle); >@@ -49,11 +55,7 @@ > protected void createMainDialogArea(Composite composite) { > Label label = new Label(composite, SWT.WRAP); > label.setText(message); >- GridData data = new GridData( >- GridData.GRAB_HORIZONTAL | >- GridData.GRAB_VERTICAL | >- GridData.HORIZONTAL_ALIGN_FILL | >- GridData.VERTICAL_ALIGN_CENTER); >+ GridData data = new GridData(SWT.FILL, SWT.FILL | SWT.CENTER, true, false); > data.widthHint = convertHorizontalDLUsToPixels(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH); > label.setLayoutData(data); > updateEnablements(); >@@ -73,16 +75,16 @@ > composite.setLayout(layout); > composite.setLayoutData(new GridData(GridData.FILL_BOTH)); > >+ if (detailsTitle != null) { >+ Label title = new Label(composite, SWT.NONE); >+ title.setText(detailsTitle); >+ } >+ > detailsList = new org.eclipse.swt.widgets.List(composite, SWT.BORDER | SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); >- GridData data = new GridData (); >- data.heightHint = 75; >- data.horizontalAlignment = GridData.FILL; >- data.grabExcessHorizontalSpace = true; >+ GridData data = new GridData (SWT.FILL, SWT.FILL, true, true); >+ data.heightHint = convertHeightInCharsToPixels(5); > detailsList.setLayoutData(data); > >- if (detailsTitle != null) { >- detailsList.add(detailsTitle); >- } > > for (int i = 0; i < projects.length; i++) { > detailsList.add(projects[i].getName()); >@@ -103,5 +105,13 @@ > protected boolean includeCancelButton() { > return includeCancelButton; > } >+ >+ /* (non-Javadoc) >+ * @see org.eclipse.team.internal.ui.dialogs.DetailsDialog#isMainGrabVertical() >+ * @since 3.4 >+ */ >+ protected boolean isMainGrabVertical() { >+ return false; >+ } > > }
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 193114
:
72025
|
72679
|
75509