In Xml We have around 1000 tags I want these to be viewed in tree view in EA without creating it has elements.So is this possible in EA
You can associate an element (e.g. artifact or class) with the XML file:
Select the element in the browser
In the docked properties window (View/Properties) set the Filename to your XML file
Open Package/Code Engineering/Show Source Viewer (and possibly dock it somewhere).
Now each time you click on your element(s) with linked filenames the code editor will show the file contents. XML will be highlighted (as many other languages will).
Related
Is there a simple way to change / replace the automatically generated Template Miniature with a different image.
I have checked this out for Excel 2016 but the process is similar.
First, the thumbnail is generated and part of the file. There is no official process. A description for brave Office pros is shown below.
You can do this:
First, close Excel!
Get to the location of your template
Make a copy
Rename the file extension to .zip
Unzip the file into a new folder using the Windows Zip utility
Search the tree of files for a file called thumbnail.wmf
Open PowerPoint and create an empty presentation
Use the function "Insert an Image" and add the thumbnail.wmf to the slide
Remove everything else from the slide
Try to ungroup - it fails with a message asking to convert to a drawing object
From here you have two options. Either convert, ungroup, change and proceed or throw away and create a new image from scratch.
Work on image and group your image (the old or a new one), then
Right click on the grouped image and click "Save as picture"
Choose the filetype "wmf" and name it the same as before and overwrite the existing thumbnail.wmf
Go INTO the folder using Windows Explorer of unpacked files, hit Ctrl-A (Select All)
Right click and say "Send to" --> "Compressed (zipped) folder". Give it a new name.
Hit F2 to rename the file
Remove the file extension .zip
Now, open Excel!
Hit "New", "Personal" and you see your template with your custom image in full width and height. Repeat steps 10 to 16 until you're satisfied.
Drawbacks: Once you edit your file in excel and save as template with thumbnails option (advanced properties) switched on, Excel will overwrite your custom wmf-file. You have to repeat the steps "Unpack -> Replace File -> Pack" every time.
I'll post an update once I found a better solution.
Here is an automation of the process that might help with understanding the process described in the answer.
Python 3 code snippet
import zipfile
import shutil
exfilename = 'MYTEMPLATE.xltm'
a_path='C:\\TEMP'
th_path='mythumbnail.wmf'
with zipfile.ZipFile (exfilename, 'r') as zf:
#Extract to temporary folder
zf.extractall(a_path)
#replace the thumbnail
shutil.copyfile(th_path,a_path+'\\docProps\\thumbnail.wmf')
#remake the zip as a new file
shutil.make_archive('TEMP_ARCHIVE','zip',a_path)
#rename back to original, replacing original
shutil.move('TEMP_ARCHIVE.zip',exfilename)
#clean-up temporary files
shutil.rmtree(a_path)
I spent a significant amount of time trying to apply a scientific conference paper template, made in Microsoft Word, that I want to document this problem (and my eventual solution), in case someone faces a similar difficulty (and in case I forget how I did it, I can refer back to this). In this particular case, the conference template was this, but I think many conferences and journals offer similar templates, so this question should have fairly broad interest.
The question is, given this template (which is really not a template in the MS Word sense), how can I create a document that uses the styles defined therein? How can I sure that when I save the document, it will not revert back to some other style definitions defined in Normal.dot?
In MS Word, "templates" are defined in .dot, .dotx, or .dotm files. The .dotx and .dotm formats are for newer versions of Word and the difference lies in whether Macros are disabled or enabled. Despite this definition, some organizations (such as conference organizers or journal publishers) will supply a .doc (or .docx, etc.) file, also calling it a "template" and asking you to use the styles and other formatting elements defined in it. If you were to start editing this file directly and then save it, you might be surprised that the next time you open that document, some of the styles may differ from what you saw when you were initially editing the document. This is because of a clash between the style names provided in the initial file and your Normal.dot template, which is the default template that your instance of MS Word uses. Here are the steps you need to do to avoid this problem:
When you first open the "template" supplied by the conference organizer / journal publisher, immediately save this file as a Word template by choosing "Save as" from the Office button (or File-> Save as... in older versions) and selecting .dot, .dotx, or .dotm in the "Save as type" field. Furthermore, you should save this in "Templates" folder for your installation of Word. In most versions, there is a shortcut to this folder in the top of the left panel of the "Save as" window. Give the file some name like "MyConferenceTemplate.dot".
Next, close the .dot (or .dotx, etc.) file that you just saved. This will help avoid that inadvertently that editing the template.
Create a new document (by clicking Office button->New or similar). On the left panel of the window that opens, select "My Templates...". You should then see the template which you created in step 1. Select this as the template to apply to your new document.
Start editing the newly created file and applying the desired styles...
I doing some formatting from copy/paste. When I copy a table from Word, and I want to insert it in my program, I need to edit the table formatting to show the info like I want.
When I copy from word I can view whats copy in clipboard magic:
Is there a way to get the formatting, or do I need to create a new table for scratch with the data listed in clipboard magic?
I Clipdiary the "copy" is read as HTML
This makes me wounder, is it possible to get the html code?
Yes, the HTML is present as CF_HTML. See reference on MSDN: http://msdn.microsoft.com/en-us/library/aa767917(v=vs.85).aspx
If you just want to SEE it, ClipMate has a Binary display that will show you a binary dump of the data. It's available in the trial version. If you don't see the Binary tab in the display window, turn it on in the Tools | Options | Editor dialog.
I have a bibliography list in Word 2007, but want to import them into JabRef (bibTex). I have searched around, the bibliography in Word is stored in an XML file, but JabRef does not import via such format? I wonder if there is an efficient way to do this so I don't need to add the entries one by one. Many thanks.
JabRef 2.6 can import and export MS 2007 XML format references.
First, you will need to export your references from MS Word.
To do this, you will need to create a new text file containing the following:
<?xml version="1.0"?>
<b:Sources SelectedStyle="" xmlns:b="http://schemas.openxmlformats.org/officeDocument/2006/bibliography" xmlns="http://schemas.openxmlformats.org/officeDocument/2006/bibliography">
</b:Sources>
Name it something like refs.xml
Now that you have that, open the Word document containing the references you want to export. Then, on the Citations and Bibliography group of the References tab, click the Manage Sources button. Click the "Browse" button to open your refs.xml file.
You will now have a blank pane on the left and a pane with your references on the right. Select the references you want to export and press the "<- Copy" button to put them into the left pane.
Now close the Manage References dialog box. Word 2007 silently added the references to the refs.xml file.
Now in JabRef 2.6, go to the File menu, choose Import into New Database, and browse to refs.xml. Press the Open button and you will have a JabRef database populated with your Word 2007 references.
You can now save that database in BibTex or a variety of other formats.
OPTIONALLY, you can skip making your own refs.xml file by using Word's default references file Sources.xml which is stored in your Application Data folder (and where that is will depend on your operating system).
I have an eclipse project with a number of sql queries here and there.
I wonder if I can perform a search on eclipse for all insert statements in the project, and have eclipse pipe the output into stdout or a file printed in a list format; the file should contain only the search matches and not the project hierarchy
In search view menu. Change the search view layout from Show as Tree to Show as List then press Ctrl + A to select all result and paste it to other file or editor.
Edit:
If you want line number details also then you can use Eclipse Search CSV Export plugin.