Examples of Context


Examples of org.dspace.core.Context

    @Override
    protected List<String[]> addActiveTypeInRequest(HttpServletRequest request)
            throws Exception
    {
        ACrisObject cris = getCrisObject(request);
        Context c = UIUtil.obtainContext(request);
        List<String[]> subLinks = new ArrayList<String[]>();

        DiscoverResult docs = search(c, cris, 0, 0, null, true);
        if (docs.getTotalSearchResults() > 0)
        {
View Full Code Here

Examples of org.eclipse.core.commands.contexts.Context

        if (contextTree.containsKey(childContextId)) {
          break;
        }

        // Retrieve the context.
        final Context childContext = contextManager
            .getContext(childContextId);

        // Add the child-parent pair to the tree.
        try {
          final String parentContextId = childContext.getParentId();
          contextTree.put(childContextId, parentContextId);
          childContextId = parentContextId;
        } catch (final NotDefinedException e) {
          break; // stop ascending
        }
View Full Code Here

Examples of org.eclipse.jetty.server.handler.ContextHandler.Context

 
  protected void doStart() throws Exception
  {   
    super.doStart();
       
        Context servletContext = ContextHandler.getCurrentContext();
        _context = servletContext == null ? null: (SipAppContext) servletContext.getContextHandler();
       
        if (_context == null)
            Log.warn("Null context for sip handler: " + this);
       
        if (_sipServlets != null && _sipServlets.length > 0)
View Full Code Here

Examples of org.eclipse.jetty.servlet.ServletContextHandler.Context

        }

        if (!(source instanceof Context)) {
             throw new DeployerException("Invalid source object '" + source + "'.");
        }
        Context context = (Context) source;
        ContextHandler contextHandler = context.getContextHandler();
        this.jettyServer = contextHandler.getServer();

        // No server ?
        if (this.jettyServer == null) {
            throw new DeployerException("No Jetty server found on the servlet context event '" + servletContextEvent + "'.");
View Full Code Here

Examples of org.eclipse.jgit.storage.dht.spi.Context

    if (info != null)
      return info;

    stats.cntObjectIndex_Load++;
    ObjectIndexKey idxKey = ObjectIndexKey.create(repo, obj);
    Context opt = Context.READ_REPAIR;
    Sync<Map<ObjectIndexKey, Collection<ObjectInfo>>> sync = Sync.create();
    db.objectIndex().get(opt, Collections.singleton(idxKey), sync);
    try {
      Collection<ObjectInfo> m;
View Full Code Here

Examples of org.eclipse.persistence.internal.oxm.Context

        return xmlDescriptor.wrapObjectInXMLRoot(unmarshalRecord, this.isResultAlwaysXMLRoot);
    }

    public Object unmarshal(org.xml.sax.XMLReader xmlReader, InputSource inputSource) {
        try {
            Context xmlContext = xmlUnmarshaller.getContext();
            if (xmlContext.hasDocumentPreservation()) {
                SAXDocumentBuilder saxDocumentBuilder = new SAXDocumentBuilder();
                xmlReader.setContentHandler(saxDocumentBuilder);
                xmlReader.parse(inputSource);               
                return unmarshal(saxDocumentBuilder.getDocument().getDocumentElement());
            }
View Full Code Here

Examples of org.eclipse.sapphire.Context

            {
                if( adapterType == Context.class )
                {
                    final Bundle bundle = Platform.getBundle( "org.eclipse.core.resources" );
                   
                    return (A) new Context()
                    {
                        @Override
                        public Class<?> findClass( final String name )
                        {
                            try
View Full Code Here

Examples of org.eclipse.wb.internal.core.databinding.ui.property.Context

        || objectInfo instanceof GridInfo;
  }

  @Override
  protected AbstractBindingsProperty createProperty(ObjectInfo objectInfo) throws Exception {
    return new BindingsProperty(new Context(Activator.getDefault(), m_provider, objectInfo));
  }
View Full Code Here

Examples of org.eweb4j.mvc.Context

 
  public static Locale get(){
   
    Locale locale = current.get();
    if (locale == null){
      Context ctx = MVC.ctx();
      if (ctx != null){
        HttpServletRequest req = ctx.getRequest();
        HttpServletResponse res = ctx.getResponse();
        if (req != null){
          resolve(req, res);
        }else{
          setDefaultLocale();
        }
View Full Code Here

Examples of org.exolab.jms.selector.Context

     *
     * @param token the token
     */
    public void initialize(final Token token) {
        super.initialize(token);
        _context = new Context(((CommonToken) token).getLine(),
            ((CommonToken) token).getColumn());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.