Author: scabanovich
Date: 2009-01-19 10:39:31 -0500 (Mon, 19 Jan 2009)
New Revision: 13123
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/Messages.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/XChildrenEditor.java
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/messages.properties
Log:
Rolling-back strings which are internal model constants.
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/Messages.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/Messages.java 2009-01-19
15:24:27 UTC (rev 13122)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/Messages.java 2009-01-19
15:39:31 UTC (rev 13123)
@@ -4,10 +4,6 @@
public class Messages extends NLS {
private static final String BUNDLE_NAME =
"org.jboss.tools.common.model.ui.objecteditor.messages"; //$NON-NLS-1$
- public static String XChildrenEditor_10;
- public static String XChildrenEditor_11;
- public static String XChildrenEditor_12;
- public static String XChildrenEditor_9;
public static String XChildrenEditor_Add;
public static String XChildrenEditor_Delete;
public static String XChildrenEditor_Down;
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/XChildrenEditor.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/XChildrenEditor.java 2009-01-19
15:24:27 UTC (rev 13122)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/XChildrenEditor.java 2009-01-19
15:39:31 UTC (rev 13123)
@@ -247,7 +247,7 @@
}
protected String getAddActionPath() {
- return Messages.XChildrenEditor_9;
+ return "CreateActions.AddKeyPair"; //$NON-NLS-1$
}
protected void updateBar() {
@@ -270,9 +270,9 @@
public void callAction(XModelObject o, String path) {
Properties p = new Properties();
- p.put(Messages.XChildrenEditor_10, bar.getControl().getShell());
+ p.put("shell", bar.getControl().getShell()); //$NON-NLS-1$
int i = xtable.getSelectionIndex();
- p.put(Messages.XChildrenEditor_11, Integer.valueOf(i));
+ p.put("insertAfter", Integer.valueOf(i)); //$NON-NLS-1$
XActionInvoker.invoke(path, o, getTargets(), p);
}
@@ -372,7 +372,7 @@
}
public void drop(Properties p) {
- XModelObject draggedObject = (XModelObject)p.get(Messages.XChildrenEditor_12);
+ XModelObject draggedObject = (XModelObject)p.get("draggedObject");
//$NON-NLS-1$
if(draggedObject == null) return;
update();
xtable.getViewer().setSelection(new StructuredSelection(draggedObject));
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/messages.properties
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/messages.properties 2009-01-19
15:24:27 UTC (rev 13122)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/objecteditor/messages.properties 2009-01-19
15:39:31 UTC (rev 13123)
@@ -1,7 +1,3 @@
-XChildrenEditor_10=shell
-XChildrenEditor_11=insertAfter
-XChildrenEditor_12=draggedObject
-XChildrenEditor_9=CreateActions.AddKeyPair
XChildrenEditor_Add=&Add
XChildrenEditor_Delete=&Delete
XChildrenEditor_Down=Do&wn
Show replies by date