Examples of reset()


Examples of org.eclipse.jst.pagedesigner.css2.ICSSStyle.reset()

    }
    if (node instanceof IDOMElement) {
      // only refresh style on element.
      ICSSStyle a = (ICSSStyle) node.getAdapterFor(ICSSStyle.class);
      if (a != null) {
        a.reset();
      }
    }
  }
}
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.test.fixture.MouseActionFixture.reset()

        buttonCellPainter.run(natTable, mouseClickEvent);
        Assert.assertTrue(mouseAction.isActionInvoked());

        buttonCellPainter.removeClickListener(mouseAction);
        mouseAction.reset();

        buttonCellPainter.run(natTable, mouseClickEvent);
        Assert.assertFalse(mouseAction.isActionInvoked());
    }
}
View Full Code Here

Examples of org.eclipse.persistence.descriptors.FetchGroupManager.reset()

    private void revertFetchGroupData(Object domainObject, ClassDescriptor concreteDescriptor, CacheKey cacheKey, ObjectBuildingQuery query, JoinedAttributeManager joinManager, AbstractRecord databaseRow, AbstractSession session, boolean targetIsProtected) {
        FetchGroup fetchGroup = query.getExecutionFetchGroup(concreteDescriptor);
        FetchGroupManager fetchGroupManager = concreteDescriptor.getFetchGroupManager();
        //the cached object is either invalidated, or staled as the version is newer, or a refresh is explicitly set on the query.
        //clean all data of the cache object.
        fetchGroupManager.reset(domainObject);
        //set fetch group reference to the cached object
        fetchGroupManager.setObjectFetchGroup(domainObject, fetchGroupManager.getEntityFetchGroup(fetchGroup), session);
        // Bug 276362 - set the CacheKey's read time (to re-validate the CacheKey) before buildAttributesIntoObject is called
        cacheKey.setReadTime(query.getExecutionTime());
        //read in the fetch group data only
View Full Code Here

Examples of org.eclipse.persistence.internal.sessions.SimpleResultSetRecord.reset()

                        ((Collection)clones).add(clone);
                    } else {
                        // TODO: investigate is it possible to support MappedKeyMapPolicy - this policy currently is not compatible with ResultSet optimization
                        cp.addInto(clone, clones, unitOfWork);                           
                    }
                    row.reset();
                    hasNext = resultSet.next();
                }
            } else {
                boolean shouldKeepRow = this.descriptor.getObjectBuilder().shouldKeepRow();
                while (hasNext) {
View Full Code Here

Examples of org.eclipse.sapphire.Counter.reset()

        final Counter counter = resource.getReadUnderlyingListCounter();
        final TestElement element = TestElement.TYPE.instantiate( resource );
        final ElementList<Element> list = element.getList();
       
        list.iterator(); // prime
        counter.reset();
       
        list.refresh();
        assertEquals( 1, counter.read() );
        counter.reset();
       
View Full Code Here

Examples of org.eclipse.sapphire.ui.diagram.ConnectionBendpointsEvent.reset()

          }
        }
        else if (event instanceof ConnectionBendpointsEvent)
        {
          ConnectionBendpointsEvent bpEvent = (ConnectionBendpointsEvent)event;
          if (bpEvent.reset())
          {
              if (autoLayout)
              {
                addConnectionToPersistenceCache(event.part());
                refreshDirtyState();
View Full Code Here

Examples of org.eclipse.team.ui.synchronize.SubscriberParticipant.reset()

                if (participant instanceof SubscriberParticipant) {
                    SubscriberParticipant sp = (SubscriberParticipant) participant;
                    if (logger.isDebugEnabled()) {
                        logger.debug("Reset component subscriber...");
                    }
                    sp.reset();
                }
            }
        });
    }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.parser.XMLSourceParser.reset()

    XMLSourceParser parser = new XMLSourceParser();
    // use JSP_CONTENT for region type
    parser.addBlockMarker(new BlockMarker("jsp:scriptlet", null, DOMJSPRegionContexts.JSP_CONTENT, false, false)); //$NON-NLS-1$
    parser.addBlockMarker(new BlockMarker("jsp:expression", null, DOMJSPRegionContexts.JSP_CONTENT, false, false)); //$NON-NLS-1$
    parser.addBlockMarker(new BlockMarker("jsp:declaration", null, DOMJSPRegionContexts.JSP_CONTENT, false, false)); //$NON-NLS-1$
    parser.reset(blockText);
    return parser.getDocumentRegions();
  }

  /*
   * @see ContentAssistAdapter#computeContextInformation(ITextViewer, int,
View Full Code Here

Examples of org.eclipse.xsd.XSDSchema.reset()

            schema = super.buildSchema();
            //register schema
            AppSchemaXSDRegistry.getInstance().register(schema);
        } else {
            //reset because included schema's are not always complete
            schema.reset();
        }
        return schema;
    }

}
View Full Code Here

Examples of org.eclipse.xtext.util.StringInputStream.reset()

        if (outputConfig.isOverrideExistingResources()) {
          StringInputStream newContent = getInputStream(contentsAsString, encoding);
          if (hasContentsChanged(file, newContent)) {
            // reset to offset zero allows to reuse internal byte[]
            // no need to convert the string twice
            newContent.reset();
            file.setContents(newContent, true, true, monitor);
          } else {
            file.touch(getMonitor());
          }
          if (file.isDerived() != outputConfig.isSetDerivedProperty()) {
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.