Tabnine Logo
NSBundle
Code IndexAdd Tabnine to your IDE (free)

How to use
NSBundle
in
com.webobjects.foundation

Best Java code snippets using com.webobjects.foundation.NSBundle (Showing top 5 results out of 315)

origin: wonder.misc/WOLips

public String clickToOpenUrl() {
 String app = (String) valueForBinding("app");
 if (app == null) {
  app = NSBundle.mainBundle().name();
 }
 NSMutableDictionary params = new NSMutableDictionary();
 params.setObjectForKey(app, "app");
 params.setObjectForKey("REPLACEME", "component");
 return WOLipsUtilities.wolipsUrl("openComponent", params);
}
origin: wonder.eof/ERIndexing

for (Enumeration bundles = NSBundle._allBundlesReally().objectEnumerator(); bundles.hasMoreElements();) {
  NSBundle bundle = (NSBundle) bundles.nextElement();
  NSArray<String> files = bundle.resourcePathsForResources("indexModel", null);
  for (String file : files) {
    URL url = bundle.pathURLForResourcePath(file);
origin: wonder.core/JavaWOExtensions

protected NSArray _ignoredPackages() {
  NSBundle bundle;
  String path, content;
  NSDictionary dic = null;
  NSMutableArray<NSBundle> allBundles = new NSMutableArray<>(NSBundle.frameworkBundles());
  NSMutableArray<String> ignored = new NSMutableArray<>();
  for (Enumeration enumerator = allBundles.objectEnumerator(); enumerator.hasMoreElements(); ) {
    bundle = (NSBundle) enumerator.nextElement();
    path = WOApplication.application().resourceManager().pathForResourceNamed("WOIgnoredPackage.plist",bundle.name(),null);
    if (path != null) {
      content = _stringFromFileSafely(path);
      if (content != null) {
        dic = (NSDictionary) NSPropertyListSerialization.propertyListFromString(content);
        if (dic != null && dic.containsKey("ignoredPackages")) {
          @SuppressWarnings("unchecked")
          NSArray<String> tmpArray = (NSArray<String>) dic.objectForKey("ignoredPackages");
          if (tmpArray != null && tmpArray.count() > 0) {
            ignored.addObjectsFromArray(tmpArray);
          }
        }
      }
    }
  }
  System.out.println("_ignoredPackages:: "+ignored);
  return ignored;
}
origin: wonder.plugins/H2PlugIn

InputStream jdbcInfoStream = NSBundle.bundleForClass(getClass()).inputStreamForResourcePath("H2JDBCInfo.plist");
if (jdbcInfoStream == null) {
  throw new IllegalStateException("Unable to find 'H2JDBCInfo.plist' in this plugin jar.");
origin: wonder.misc/WOLips

 @Override
 public void appendToResponse(WOResponse woresponse, WOContext wocontext) {
  WOLipsUtilities.includePrototype(woresponse, wocontext);
  ERXResponseRewriter.addScriptResourceInHead(woresponse, wocontext, "WOLips", "wolips.js");

  WOComponent component = wocontext.component();
  String componentName = (String) _component.valueInComponent(component);
  String app;
  if (_app != null) {
   app = (String) _app.valueInComponent(component);
  }
  else {
   app = NSBundle.mainBundle().name();
  }
  NSMutableDictionary params = new NSMutableDictionary();
  params.setObjectForKey(app, "app");
  params.setObjectForKey(componentName, "component");
  woresponse.appendContentString("<a href = \"javascript:void(0);\" onclick = \"WOLips.perform('" + WOLipsUtilities.wolipsUrl("openComponent", params) + "')\">");
  super.appendToResponse(woresponse, wocontext);
  woresponse.appendContentString("</a>");
 }
}
com.webobjects.foundationNSBundle

Most used methods

  • name
  • _allBundlesReally
  • bundleForClass
  • frameworkBundles
  • inputStreamForResourcePath
  • mainBundle
  • pathURLForResourcePath
  • resourcePathsForResources

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • getSharedPreferences (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JList (javax.swing)
  • Option (scala)
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now