[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: Programmatic Project Rename

In 3.3 you can use the org.eclipse.ui.ide.undo.MoveResourcesOperation and use
PlatformUI.getWorkbench().getOperationSupport()
.getOperationHistory().execute(*);
to run it.


In 3.4M3+ you can use the org.eclipse.ltk.core.refactoring.resource.RenameResourceDescriptor to create a rename refactoring and then use org.eclipse.ltk.core.refactoring.PerformRefactoringOperation to run it.

You can check the javadocs for the mentioned classes.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/workbench.htm