Package org.eclipse.jdt.internal.core.builder

Examples of org.eclipse.jdt.internal.core.builder.State


    for (int i = 0, max = elements.length; i < max; i++) {
      // collect all the java project
      IJavaElement element = elements[i];
      IJavaProject javaProject = element.getJavaProject();
      IProject project = javaProject.getProject();
      State state = null;
      State currentState = (State) projectsStates.get(project);
      if (currentState != null) {
        state = currentState;
      } else {
        state = (State) JavaModelManager.getJavaModelManager().getLastBuiltState(project, null);
        if (state != null) {
View Full Code Here


    IClasspathEntry[] entries = javaProject.getExpandedClasspath();
    for (int i = 0, length = entries.length; i < length; i++) {
      IClasspathEntry entry = entries[i];
      if (entry.getEntryKind() == IClasspathEntry.CPE_PROJECT && entry.getPath().equals(focusPath)) {
        if (focusQualifiedNames != null) { // builder state is usable, hence use it to try to reduce project which can see the focus...
          State projectState = (State) JavaModelManager.getJavaModelManager().getLastBuiltState(javaProject.getProject(), null);
          if (projectState != null) {
            Object[] values = projectState.getReferences().valueTable;
            int vLength = values.length;
            for (int j=0; j<vLength; j++)  {
              if (values[j] == null) continue;
              ReferenceCollection references = (ReferenceCollection) values[j];
              if (references.includes(focusQualifiedNames, null, null)) {
View Full Code Here

        Set aSet = _buildStates.entrySet();
        out.writeInt(aSet.size());
        for (Iterator iter = aSet.iterator(); iter.hasNext();) {
          Map.Entry element = (Map.Entry) iter.next();
          String key = (String) element.getKey();
          State value = (State) element.getValue();
          out.writeUTF(key);
          JavaBuilder.writeState(value, out);
        }
      } finally {
        out.close();
View Full Code Here

      try {
        int stateCount = in.readInt();
        for (int i = 0; i < stateCount; i++) {
          String key = in.readUTF();
          // This is not correct.
          State buildState = JavaBuilder.readState(null, in);
          setBuildStateForKey(buildState, key);
        }
      } finally {
        in.close();
      }
View Full Code Here

      }
    }
  }

  protected IProject[] build(int kind, Map args, IProgressMonitor monitor) throws CoreException {
    State buildState;
    String buldStateKey;
    IProject[] result = null;

    IProject project = getProject();
View Full Code Here

    for (int i = 0, max = elements.length; i < max; i++) {
      // collect all the java project
      IJavaElement element = elements[i];
      IJavaProject javaProject = element.getJavaProject();
      IProject project = javaProject.getProject();
      State state = null;
      State currentState = (State) projectsStates.get(project);
      if (currentState != null) {
        state = currentState;
      } else {
        state = (State) JavaModelManager.getJavaModelManager().getLastBuiltState(project, null);
        if (state != null) {
View Full Code Here

    for (int i = 0, max = elements.length; i < max; i++) {
      // collect all the java project
      IJavaElement element = elements[i];
      IJavaProject javaProject = element.getJavaProject();
      IProject project = javaProject.getProject();
      State state = null;
      State currentState = (State) projectsStates.get(project);
      if (currentState != null) {
        state = currentState;
      } else {
        state = (State) JavaModelManager.getJavaModelManager().getLastBuiltState(project, null);
        if (state != null) {
View Full Code Here

    IClasspathEntry[] entries = javaProject.getExpandedClasspath();
    for (int i = 0, length = entries.length; i < length; i++) {
      IClasspathEntry entry = entries[i];
      if (entry.getEntryKind() == IClasspathEntry.CPE_PROJECT && entry.getPath().equals(focusPath)) {
        if (focusQualifiedNames != null) { // builder state is usable, hence use it to try to reduce project which can see the focus...
          State projectState = (State) JavaModelManager.getJavaModelManager().getLastBuiltState(javaProject.getProject(), null);
          if (projectState != null) {
            Object[] values = projectState.getReferences().valueTable;
            int vLength = values.length;
            for (int j=0; j<vLength; j++)  {
              if (values[j] == null) continue;
              ReferenceCollection references = (ReferenceCollection) values[j];
              if (references.includes(focusQualifiedNames, null, null)) {
View Full Code Here

    IClasspathEntry[] entries = javaProject.getExpandedClasspath();
    for (int i = 0, length = entries.length; i < length; i++) {
      IClasspathEntry entry = entries[i];
      if (entry.getEntryKind() == IClasspathEntry.CPE_PROJECT && entry.getPath().equals(focusPath)) {
        if (focusQualifiedNames != null) { // builder state is usable, hence use it to try to reduce project which can see the focus...
          State projectState = (State) JavaModelManager.getJavaModelManager().getLastBuiltState(javaProject.getProject(), null);
          if (projectState != null) {
            Object[] values = projectState.getReferences().valueTable;
            int vLength = values.length;
            for (int j=0; j<vLength; j++)  {
              if (values[j] == null) continue;
              ReferenceCollection references = (ReferenceCollection) values[j];
              if (references.includes(focusQualifiedNames, null, null)) {
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.core.builder.State

Copyright © 2018 www.massapicom. 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.