plugin/src/com/carrotgarden/eclipse/space/menu/InvokerUtil.java
/**
	 * script plugin 'action' classes only
	 */
script plugin 'action' classes only
script plugin ' action ' classes only
static List<File> scriptClassList(Bundle bundle) {
		List<File> scriptList = new ArrayList<>();
		Dictionary<String, String> dict = bundle.getHeaders();
		String classPath = dict.get("Bundle-ClassPath");
		if (classPath == null) {
			throw new RuntimeException("Script plugin missing 'Bundle-ClassPath'");
		}
		String[] entryList = classPath.split(",");
		File projectPath = scriptProjectFolder();
		for (String entry : entryList) {
			File entryPath = new File(projectPath, entry);
			if (entryPath.isDirectory()) {
				File[] classList = entryPath.listFiles(actionFilter);
				scriptList.addAll(Arrays.asList(classList));
			}
		}
		scriptList.sort(filenameComparator);
		return scriptList;
	}
static List < File > scriptClassList ( Bundle bundle ) { List < File > scriptList = new ArrayList < > ( ) ; Dictionary < String , String > dict = bundle . getHeaders ( ) ; String classPath = dict . get ( "Bundle-ClassPath" ) ; if ( classPath == null ) { throw new RuntimeException ( "Script plugin missing 'Bundle-ClassPath'" ) ; } String [ ] entryList = classPath . split ( "," ) ; File projectPath = scriptProjectFolder ( ) ; for ( String entry : entryList ) { File entryPath = new File ( projectPath , entry ) ; if ( entryPath . isDirectory ( ) ) { File [ ] classList = entryPath . listFiles ( actionFilter ) ; scriptList . addAll ( Arrays . asList ( classList ) ) ; } } scriptList . sort ( filenameComparator ) ; return scriptList ; }
script plugin 'action' classes only
script plugin ' action ' classes only