- This topic has 5 replies, 2 voices, and was last updated 21 years, 4 months ago by
Riyad Kalla.
-
AuthorPosts
-
prodigal747MemberOur app has many modules, each with their own struts config file. I cannot get the Struts Editor to load any of them unless I make a new file and name it struts-config.xml. Our files are named like struts-modulename-config.xml.
Is there a way to force it to open in the struts editor? Renaming the files or altering project structure is likely not an option.
March 1, 2004 at 12:03 pm #204106
Riyad KallaMemberNo problem:
Windows > Preferences > Workbench > File Associationsand then click “Add…”, type in the file names, or a pattern for the file names (e.g. “struts-*-config.xml” should work, I haven’t tested it) then associate that type with the “Struts Editor”.
March 1, 2004 at 3:04 pm #204112
prodigal747MemberActually, it won’t work. The only way you can use a wildcard is if you put in *.??? with a specified extension. I couldn’t find a way to put a whole directory, or any wildcard matching.
Perhaps a feature request for the next version? I guess another option is to try to get wildcards into Eclipse in general, but it seems like you could hardcode in a pattern like you’ve hardcoded struts-config.xml.
Looks like my only option is to hardcode the various files in.
BTW, you can also associated all .xml files with the STruts Editor, and then use Open With… to get it to load.
One observation about the flow view: if you have a global forward to handle errors (for example) that forward to, the view can be quite messy, making the entire view difficult to use.
March 1, 2004 at 3:24 pm #204113
Riyad KallaMemberprodigal,
It seems many people agree with you about the file associations 🙂
https://bugs.eclipse.org/bugs/buglist.cgi?short_desc_type=allwordssubstr&short_desc=file+association&long_desc_type=allwordssubstr&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&keywords_type=allwords&keywords=&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&emailtype1=substring&email1=&emailtype2=substring&email2=&bugidtype=include&bug_id=&votes=&changedin=&chfieldfrom=&chfieldto=Now&chfieldvalue=&cmdtype=doit&newqueryname=&order=Reuse+same+sort+as+last+time&field0-0-0=noop&type0-0-0=noop&value0-0-0=I don’t know if any of these made it into 3.0, but it seems to be on the Eclipse todo list.
As far as the flow view, it was totally rewritten using the GEF framework for 2.7 GA, please give it a try when 2.7 goes GA (this week) and let us know what you think.
For now it seems manually entering the file name is the way to do file associations unfortunately. Is it alright if I close this thread or was there somethign more I can help with?
March 1, 2004 at 3:53 pm #204114
prodigal747MemberI’ll definately try that feature if it’s in the version supporting the 3.0M6 build of Eclipse.
You can close this thread, and thank you for some of the quickest and intelligent support I’ve received on a software product.
March 1, 2004 at 4:38 pm #204115
Riyad KallaMemberNo problem, that is what we are here for. And as Scott put it: “We answer questions because it makes us feel smart” 😀
-
AuthorPosts