Author: scabanovich
Date: 2007-10-24 08:39:11 -0400 (Wed, 24 Oct 2007)
New Revision: 4457
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/WebCompoundEditor.java
Log:
JBIDE-1149
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/WebCompoundEditor.java
===================================================================
---
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/WebCompoundEditor.java 2007-10-24
12:38:44 UTC (rev 4456)
+++
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/editors/WebCompoundEditor.java 2007-10-24
12:39:11 UTC (rev 4457)
@@ -11,6 +11,7 @@
package org.jboss.tools.jst.web.ui.editors;
import org.jboss.tools.common.editor.TreeFormPage;
+import org.jboss.tools.common.meta.key.WizardKeys;
import org.jboss.tools.common.model.ui.editor.EditorDescriptor;
import org.jboss.tools.common.model.ui.editors.multipage.DefaultMultipageEditor;
import org.jboss.tools.jst.web.tld.model.EditorTreeConstraint;
@@ -20,7 +21,13 @@
protected void doCreatePages() {
if(isAppropriateNature()) {
treeFormPage = createTreeFormPage();
- treeFormPage.setTitle("Web XML Editor");
+ String title = "Web XML Editor";
+ if(object != null) {
+ String key = object.getModelEntity().getName() + ".editorTitle";
+ String s = WizardKeys.getString(key);
+ if(s != null) title = s;
+ }
+ treeFormPage.setTitle(title);
((TreeFormPage)treeFormPage).addFilter(new EditorTreeConstraint());
treeFormPage.initialize(object);
addFormPage(treeFormPage);
Show replies by date