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 243928 Details for
Bug 391389
[ltk] Rename refactoring should give more control over new file name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
New patch including Noopur's comments
391389-2.patch (text/plain), 2.17 KB, created by
Jerome Cambon
on 2014-06-04 10:16:04 EDT
(
hide
)
Description:
New patch including Noopur's comments
Filename:
MIME Type:
Creator:
Jerome Cambon
Created:
2014-06-04 10:16:04 EDT
Size:
2.17 KB
patch
obsolete
>diff --git a/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/ui/refactoring/resource/RenameResourceWizard.java b/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/ui/refactoring/resource/RenameResourceWizard.java >index c7a0747..b96f86f 100644 >--- a/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/ui/refactoring/resource/RenameResourceWizard.java >+++ b/org.eclipse.ltk.ui.refactoring/src/org/eclipse/ltk/ui/refactoring/resource/RenameResourceWizard.java >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2007, 2008 IBM Corporation and others. >+ * Copyright (c) 2007, 2014 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 >@@ -7,6 +7,7 @@ > * > * Contributors: > * IBM Corporation - initial API and implementation >+ * Jerome Cambon <jerome.cambon@oracle.com> - [ltk] Rename refactoring should give more control over new file name - https://bugs.eclipse.org/391389 > *******************************************************************************/ > package org.eclipse.ltk.ui.refactoring.resource; > >@@ -81,7 +82,8 @@ public class RenameResourceWizard extends RefactoringWizard { > label.setLayoutData(new GridData()); > > fNameField= new Text(composite, SWT.BORDER); >- fNameField.setText(fRefactoringProcessor.getNewResourceName()); >+ String resourceName= fRefactoringProcessor.getNewResourceName(); >+ fNameField.setText(resourceName); > fNameField.setFont(composite.getFont()); > fNameField.setLayoutData(new GridData(GridData.FILL, GridData.BEGINNING, true, false)); > fNameField.addModifyListener(new ModifyListener() { >@@ -90,7 +92,11 @@ public class RenameResourceWizard extends RefactoringWizard { > } > }); > >- fNameField.selectAll(); >+ if ((fRefactoringProcessor.getResource().getType() == IResource.FILE) && (resourceName.lastIndexOf('.') != -1)) { >+ fNameField.setSelection(0, resourceName.lastIndexOf('.')); >+ } else { >+ fNameField.selectAll(); >+ } > setPageComplete(false); > setControl(composite); > }
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 391389
:
243180
|
243928
|
243984
|
244035