Suppose I want to search a type of file in a folder.how can I search that in xcode? - iphone

Suppose I have a parent folder which contains some more folders. I want to search the files which are present in the sub folders but I have the information of only parent folder (i.e. I know the path of parent folder). I want to list all files of same type present in sub folders. How can I list them all or search the required file type in xcode?

Just set the search string in the project navigator and manually refine from those results. Xcode's project navigator does not distinguish depth for you. If the items do not exist, you can add a folder reference ;)

Related

Is there a way to copy the layers list from one project to another?

I want to copy this layers to another project instead add the layers one by one in the other project :
In ProjectSettings, you can find the TagManager file.
This contains all your tags and layers, I'd guess a copy paste into your new project should be allowed.

Vala Gtk Folder selection

I'm creating a simple GTK+ based application in Vala, which should be able to select a folder and then list the files inside it.
I've been able to select a single file using the Gtk.FileChooserDialog but I haven't found how to select a folder instead of a file.
Is there any way to tell the Gtk.FileChooserDialog that folders can be selected or is there any other widget to select folders?
Set the action property.
filechooser.action = FileChooserAction.SELECT_FOLDER;

File Selection from List in a Wizard page

I have a Wizard page which gets a list of IFile. I want to show the user the list and select one file from the list. Then the Wizard returns the selected file.
Is there a standard file chooser that I can use instead of building from scratch in the createControl() of the WizardPage? (Maybe something like table view list with scrollbar to show the list.)
There is FilteredResourcesSelectionDialog that is a popup displaying any resource wanted, eventually with pre-loaded regexp, allowing to search for file, and you give him a root directory :
You call getResult() to retrieve selection as Object[].
If you want to do just a wizard that does that, then I would do it this way.
If it's a list include in a wizard that does other things, then just list all the files and create a org.eclipse.swt.widgets.List
Though there is no ready-to-use FileViewer or the like, you can use a TableViewer with a WorkbenchLabelProvider to show the list of files.
IFile[] files = ...
TableViewer fileViewer = new TableViewer( parent );
fileViewer.setInput( files );
fileViewer.setContentProvider( ArrayContentProvider.getInstance() );
fileViewer.setLabelProvider( new WorkbenchLabelProvider() );
This will create a single-selection table (viewer) that displays the files from the files array.
If multi-selection or further styles apply, use new TableViewer( parent, SWT.MULTI | ... ) to create the viewer.
If the list of files need to be sorted by name or type, you can use the ResourceComparator from the org.eclipse.ui.ide plug-in.
fileViewer.setComparator( new ResourceComparator( ResourceComparator.NAME ) );
If you don't want the extra plug-in dependency or need to sort by another criteria, it may still be used as a template.

MS Word, DOCX, Open XML - Apply themes by changing XMLs

Need to apply theme from one word document (DOCX) to another via manipulating the XMLs.
The road I'm going through is -
word/themes folder contains at least one theme#.xml and could have the rels folder containg relationship files. I decided not to touch the rels folder and copy all theme#.xmls (as could be more than one) present in word/theme folder. This is working for me.
I have two concerns over it:
1. Do I need to add theme1.xml.rels file present in word\theme_rels as well? It contains mapping to one image in word\media folder. Do I need to add the image mapping too?
2. For few themes such as "Quotable", the theme1.xml contains one reference in 'a:fmtScheme' node to relationship id, probably for DrawingML and shapes.
for ex:
<a:blipFill rotWithShape="1">
<a:blip xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" r:embed="rId1">
As the "rId1" here refers to styles.xml and maintained in word_rels\document.xml.rels, my concern is the word_rels\document.xml.rels mapping to styles.xml could not be rId1 in the document to which theme is getting applied (for instance this could be rId5 for styles.xml). So, Do I need to change this in theme1.xml while copying to work it properly.
Any help would be greatly appreciated.
If this XML appears in theme1.xml, 'rId1' is a key in theme1.xml.rels, not the document.xml.rels. The relationship ids (rId#) are unique within a 'source' XML document but are not unique within the overall package (.docx file).
Since this one is a <a:blip> element, the relationship will be to an image part, e.g. image1.jpg. I suspect this one is a large-ish quotation mark image that appears in front of a pull-out quote.
If you want it to show up properly, you'll want to make sure those relationships and their target parts are reconstructed in your target package. That would mean "yes", you would want to add the theme1.xml.rels file in the right place, as well as the image file it refers to.

smartgwt disable [+] from TreeNode

I have got simple grid and i am loading data on demand so autofetchdata is set false.
But i need also implemented drop element into this grid , previously when i am load data i know all element and have got info if folder have got subfolders. if folder have got subfolder i add setIsFrolder to true or false if not so i haven`t got icon [+] if folder havent got any subfolders.
But when i do that i cannot drop any element into empty folder :/
so i set that all element is folder. But i have got icon [+] when folder is empty.
I cannot found any flags to disable this ... Its possible to do this ??
Try to call the setChildren(new TreeNode[0]) on these kind of nodes.