Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Feature Request: Add option to search non java resources inside Jars #86

Open
sharadtank opened this issue Mar 22, 2017 · 4 comments
Open

Comments

@sharadtank
Copy link

A feature to search non java resources inside jars will be helpful. This feature is not present in any other eclipse plugin.

@ajermakovics
Copy link
Owner

I guess ideally we want to index all file extensions that are specified in preferences.

@sharadtank
Copy link
Author

Thank you for replying. Yes. I think, that is how it should be.

@borko84
Copy link

borko84 commented Apr 11, 2017

it would be great to support C++ files.

@zaerald
Copy link
Contributor

zaerald commented Sep 25, 2018

You can choose which file extensions you want to index with the InstaSearch, from the preference page > Search > InstaSearch.

instasearch

This was already included on: 4ba00bc

private static class ExtensionsFieldEditor extends StringButtonFieldEditor {
public ExtensionsFieldEditor(Composite parent) {
super(PreferenceConstants.P_INDEXABLE_EXTENSIONS, "Extensions of files to index", parent);
}
@Override
protected String changePressed() {
String exts = this.getStringValue();
TypeFilteringDialog dialog = new TypeFilteringDialog(getPage().getShell(),
Arrays.asList(exts.split(",")));
dialog.open();
Object[] newSelectedTypes = dialog.getResult();
if( newSelectedTypes == null )
return null;
Arrays.sort(newSelectedTypes);
return StringUtils.join(newSelectedTypes, ",");
}
@Override
protected void doFillIntoGrid(Composite parent, int numColumns) {
super.doFillIntoGrid(parent, numColumns);
Text txt = getTextControl();
GridData gd = (GridData) txt.getLayoutData();
if( gd != null )
gd.widthHint = 250;
}
};

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants