Author: scabanovich
Date: 2010-01-26 09:47:50 -0500 (Tue, 26 Jan 2010)
New Revision: 19931
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaHyperlinkLineFieldEditor.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5591
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaHyperlinkLineFieldEditor.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaHyperlinkLineFieldEditor.java 2010-01-26
14:39:30 UTC (rev 19930)
+++
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/JavaHyperlinkLineFieldEditor.java 2010-01-26
14:47:50 UTC (rev 19931)
@@ -181,64 +181,6 @@
if(wizard.getContainer() != null) {
wizard.performFinish();
}
-// try {
-// IType type = EclipseJavaUtil.findType(javaAdapter.getJavaProject(), newValue);
-// String name = type.getElementName();
-// String sc = type.getSuperclassTypeSignature();
-// if(sc != null) {
-// sc = EclipseJavaUtil.resolveTypeAsString(type, sc);
-// }
-// //TODO use interface and register for specific cases. This is new ESB action
case.
-// if(type != null &&
"org.jboss.soa.esb.actions.AbstractActionPipelineProcessor".equals(sc)) {
-// ICompilationUnit w = type.getCompilationUnit().getWorkingCopy(new
NullProgressMonitor());
-// IBuffer b = w.getBuffer();
-// String s = b.getContents();
-// String lineDelimiter = "\r\n";
-//
-// String IMPORT = "import
org.jboss.soa.esb.actions.AbstractActionPipelineProcessor;";
-// int i1 = s.indexOf(IMPORT);
-// if(i1 >= 0) {
-// String content = "";
-// String[] imports = {
-// "import org.jboss.soa.esb.actions.ActionProcessingException;",
-// "import org.jboss.soa.esb.helpers.ConfigTree;",
-// "import org.jboss.soa.esb.message.Message;"
-// };
-// for (String is: imports) {
-// if(s.indexOf(is) < 0) {
-// content += lineDelimiter + is;
-// }
-// }
-// if(content.length() > 0) {
-// b.replace(i1 + IMPORT.length(), 0, content);
-// }
-// }
-//
-// s = b.getContents();
-//
-// int i = s.indexOf('{');
-// int j = s.lastIndexOf('}');
-// if(i > 0 && j > i) {
-// String tab = "\t";
-// String content = lineDelimiter
-// + tab + "protected ConfigTree _config;" + lineDelimiter
-// + lineDelimiter
-// + tab + "public " + name + "(ConfigTree config) {" +
lineDelimiter
-// + tab + tab + "_config = config;"+ lineDelimiter
-// + tab + "}" + lineDelimiter
-// + lineDelimiter
-// + tab + "@Override" + lineDelimiter
-// + tab + "public Message process(Message message) throws
ActionProcessingException {" + lineDelimiter
-// + tab + tab + "//ADD CUSTOM ACTION CODE HERE" + lineDelimiter
-// + tab + tab + "return message;" + lineDelimiter
-// + tab + "}" + lineDelimiter;
-// b.replace(i + 1, j - i - 1, content);
-// w.commitWorkingCopy(true, new NullProgressMonitor());
-// }
-// }
-// } catch (CoreException e) {
-// e.printStackTrace();
-// }
}
dialog.close();
} else {