Author: scabanovich
Date: 2007-08-02 11:22:22 -0400 (Thu, 02 Aug 2007)
New Revision: 2849
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/FileSystemsRenameListenerContribution.java
Log:
JBIDE-649
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/FileSystemsRenameListenerContribution.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/FileSystemsRenameListenerContribution.java 2007-08-02
13:40:10 UTC (rev 2848)
+++
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/FileSystemsRenameListenerContribution.java 2007-08-02
15:22:22 UTC (rev 2849)
@@ -19,23 +19,24 @@
public class FileSystemsRenameListenerContribution implements
FileSystemsRenameListener.Contribution {
+ //probably this contribution is no more needed at all
public void pathRenamed(final FileSystemsRenameListener listener, String oldPath, String
newPath) {
- final IProject project =
(IProject)listener.getFileSystems().getModel().getProperties().get("project");
- if(project == null) return;
- String webroot = getWebRootWTP(listener.getFileSystems().getModel());
+// final IProject project =
(IProject)listener.getFileSystems().getModel().getProperties().get("project");
+// if(project == null) return;
+// String webroot = getWebRootWTP(listener.getFileSystems().getModel());
- if(webroot != null && webroot.toLowerCase().equals(oldPath.toLowerCase())) {
- final String webrootname = newPath.substring(newPath.lastIndexOf('/') + 1);
- Display.getDefault().asyncExec(new Runnable() {
- public void run() {
- try {
- updateWebContentNamePropertiesOnly(project, webrootname, null);
- } catch (Exception e) {
- WebModelPlugin.getPluginLog().logError(e);
- }
- }
- });
- }
+// if(webroot != null && webroot.toLowerCase().equals(oldPath.toLowerCase())) {
+// final String webrootname = newPath.substring(newPath.lastIndexOf('/') + 1);
+// Display.getDefault().asyncExec(new Runnable() {
+// public void run() {
+// try {
+// updateWebContentNamePropertiesOnly(project, webrootname, null);
+// } catch (Exception e) {
+// WebModelPlugin.getPluginLog().logError(e);
+// }
+// }
+// });
+// }
}
private String getWebRootWTP(XModel model) {
Show replies by date