本文整理汇总了Java中bsh.classpath.BshClassPath类的典型用法代码示例。如果您正苦于以下问题:Java BshClassPath类的具体用法?Java BshClassPath怎么用?Java BshClassPath使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BshClassPath类属于bsh.classpath包,在下文中一共展示了BshClassPath类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setClist
import bsh.classpath.BshClassPath; //导入依赖的package包/类
void setClist( String packagename ) {
this.selectedPackage = packagename;
Set set = classPath.getClassesForPackage( packagename );
if ( set == null )
set = new HashSet();
// remove inner classes and shorten class names
List list = new ArrayList();
Iterator it = set.iterator();
while (it.hasNext()) {
String cname = (String)it.next();
if ( cname.indexOf("$") == -1 )
list.add( BshClassPath.splitClassname( cname )[1] );
}
classesList = toSortedStrings(list);
classlist.setListData( classesList );
//setMlist( (String)classlist.getModel().getElementAt(0) );
}
开发者ID:ajmath,项目名称:VASSAL-src,代码行数:21,代码来源:ClassBrowser.java
示例2: driveToClass
import bsh.classpath.BshClassPath; //导入依赖的package包/类
public void driveToClass( String classname ) {
String [] sa = BshClassPath.splitClassname( classname );
String packn = sa[0];
String classn = sa[1];
// Do we have the package?
if ( classPath.getClassesForPackage(packn).size()==0 )
return;
ptree.setSelectedPackage( packn );
for(int i=0; i< classesList.length; i++) {
if ( classesList[i].equals(classn) ) {
classlist.setSelectedIndex(i);
classlist.ensureIndexIsVisible(i);
break;
}
}
}
开发者ID:ajmath,项目名称:VASSAL-src,代码行数:20,代码来源:ClassBrowser.java
示例3: setClist
import bsh.classpath.BshClassPath; //导入依赖的package包/类
void setClist(String packagename) {
this.selectedPackage = packagename;
Set set = classPath.getClassesForPackage(packagename);
if (set == null)
set = new HashSet();
// remove inner classes and shorten class names
List list = new ArrayList();
Iterator it = set.iterator();
while (it.hasNext()) {
String cname = (String) it.next();
if (cname.indexOf("$") == -1)
list.add(BshClassPath.splitClassname(cname)[1]);
}
classesList = toSortedStrings(list);
classlist.setListData(classesList);
// setMlist( (String)classlist.getModel().getElementAt(0) );
}
开发者ID:sing-group,项目名称:aibench-project,代码行数:21,代码来源:ClassBrowser.java
示例4: driveToClass
import bsh.classpath.BshClassPath; //导入依赖的package包/类
public void driveToClass(String classname) {
String[] sa = BshClassPath.splitClassname(classname);
String packn = sa[0];
String classn = sa[1];
// Do we have the package?
if (classPath.getClassesForPackage(packn).size() == 0)
return;
ptree.setSelectedPackage(packn);
for (int i = 0; i < classesList.length; i++) {
if (classesList[i].equals(classn)) {
classlist.setSelectedIndex(i);
classlist.ensureIndexIsVisible(i);
break;
}
}
}
开发者ID:sing-group,项目名称:aibench-project,代码行数:20,代码来源:ClassBrowser.java
示例5: setClist
import bsh.classpath.BshClassPath; //导入依赖的package包/类
public void setClist( String packagename ) {
this.selectedPackage = packagename;
Set set = classPath.getClassesForPackage( packagename );
if ( set == null )
set = new HashSet();
// remove inner classes and shorten class names
List list = new ArrayList();
Iterator it = set.iterator();
while (it.hasNext()) {
String cname = (String)it.next();
if ( cname.indexOf("$") == -1 )
list.add( BshClassPath.splitClassname( cname )[1] );
}
classesList = toSortedStrings(list);
classlist.setListData( classesList );
//setMlist( (String)classlist.getModel().getElementAt(0) );
}
开发者ID:CompEvol,项目名称:beastshell,代码行数:21,代码来源:ClassBrowser.java
注:本文中的bsh.classpath.BshClassPath类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论