Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.QualifiedName


        createFolderOnServer((IFolder)localFolder.members()[j], register);
      }
    }
   
    // Mark the folder as linked
    localFolder.setPersistentProperty(new QualifiedName("org.eclipse.xcde", "linked"), "true");
  }
View Full Code Here


      return false;
   
    IFile file = ((FileEditorInput) editor.getEditorInput()).getFile();
    String linked;
    try {
      linked = file.getPersistentProperty(new QualifiedName("org.eclipse.xcde", "linked"));
    } catch (CoreException e) {
      // This seems to sometimes happen when deleting multiple projects with linked editors in them open. The exception is that the resource does not exist.
      // Convert this into "not linked" semantics.
      return false;
    }
View Full Code Here

    for (int i = 0; i < editors.length; ++i)
      {
      if (editors[i].getEditor(false) instanceof AbstractTextEditor && editors[i].getEditor(false).getEditorInput() instanceof FileEditorInput)
        {
        if (((ITextEditor)editors[i].getEditor(false)).getDocumentProvider() instanceof TextFileDocumentProvider &&
          ((FileEditorInput) editors[i].getEditor(false).getEditorInput()).getFile().getPersistentProperty(new QualifiedName("org.eclipse.xcde", "linked")) != null &&
          ((FileEditorInput) editors[i].getEditor(false).getEditorInput()).getFile().getPersistentProperty(new QualifiedName("org.eclipse.xcde", "linked")).equals("true"))
          {
          if (!((TextFileDocumentProvider)((ITextEditor)editors[i].getEditor(false)).getDocumentProvider()).isConnectedToXCDE(editors[i].getEditor(false).getEditorInput()))
            {
            ((TextFileDocumentProvider)((ITextEditor)editors[i].getEditor(false)).getDocumentProvider()).connectToXCDE(editors[i].getEditor(false).getEditorInput());
            }
          }
        else if (((ITextEditor)editors[i].getEditor(false)).getDocumentProvider() instanceof TextFileDocumentProvider &&
            ((FileEditorInput) editors[i].getEditor(false).getEditorInput()).getFile().getPersistentProperty(new QualifiedName("org.eclipse.xcde", "linked")) == null ||
             (((FileEditorInput) editors[i].getEditor(false).getEditorInput()).getFile().getPersistentProperty(new QualifiedName("org.eclipse.xcde", "linked")) != null &&
                 ((FileEditorInput) editors[i].getEditor(false).getEditorInput()).getFile().getPersistentProperty(new QualifiedName("org.eclipse.xcde", "linked")).equals("false")))
              {
              if (((TextFileDocumentProvider)((ITextEditor)editors[i].getEditor(false)).getDocumentProvider()).isConnectedToXCDE(editors[i].getEditor(false).getEditorInput()))
                {
                _undrawCaretColouring((ITextEditor)editors[i].getEditor(false));
            ((TextFileDocumentProvider)((ITextEditor)editors[i].getEditor(false)).getDocumentProvider()).disconnectFromXCDE(editors[i].getEditor(false).getEditorInput());
View Full Code Here

    }

    public boolean moveFile(IResourceTree tree, IFile source, IFile destination, int updateFlags, IProgressMonitor monitor) {
      try
      {
        if(source.getPersistentProperty(new QualifiedName("org.eclipse.xcde", "linked")) != null
          && source.getPersistentProperty(new QualifiedName("org.eclipse.xcde", "linked")).equals("true"))
        {
          // The source file is linked and we're moving it, so delete it from the server
          XCDEDirWrapper wrapper = XCDERegisterProvider.getProvider().changeDirectory(source.getFullPath().removeLastSegments(1).toString() + "/");
         
          // Do the deleting
          if(wrapper.hasElement(source.getName()))
            wrapper.notifyOfFileDelete(source.getName(), false);
         
          // Unlink -- if the user wants to relink, that's their job
          source.setPersistentProperty(new QualifiedName("org.eclipse.xcde", "linked"), "false");
           
          /*
          if(destination.getProject().getPersistentProperty(new QualifiedName("org.eclipse.team.core", "repository")) != null
            && destination.getProject().getPersistentProperty(new QualifiedName("org.eclipse.team.core", "repository")).equals("ca.uwaterloo.fydp.XCDERepositoryProvider"))
          {
View Full Code Here

    public void setProject(IProject project) {
        boolean refreshRequired = false;

        try {
            Boolean value = (Boolean) project.getSessionProperty(
                    new QualifiedName(null, "device.repository.refresh.required"));
            if (value != null && value.equals(new Boolean(true))) {
                refreshRequired = true;
            }
        } catch (CoreException e) {
            EclipseCommonPlugin.handleError(BuilderPlugin.getDefault(), e);
        }

        // If the project has actually changed, pass this on to the tabs.
        if (!ObjectHelper.equals(this.project, project) || refreshRequired) {
            try {
                project.setSessionProperty(
                        new QualifiedName(null, "device.repository.refresh.required"), null);
            } catch (CoreException e) {
                EclipseCommonPlugin.handleError(BuilderPlugin.getDefault(), e);
            }
            this.project = project;
            Iterator it = projectReceivers.iterator();
View Full Code Here

            // is done in order to let setProject method in TargerSelector class know
            // that repository should be loaded/reloaded to populate DeviceSelectionList
            // and DeviceSelectionTree
            if (currentPage == projectPropertiesPage) {
                project.setSessionProperty(
                        new QualifiedName(null, "device.repository.refresh.required"),
                        new Boolean(true));
            }

            if (currentPage instanceof ProjectProvider || currentPage == projectPropertiesPage) {
                projectChanged(project);
View Full Code Here

        // The latest known DeviceRepositoryDetails are stored in the projects
        // session so that multiple projects can have different device
        // repositories.
        synchronized (context.getProject()) {
            QualifiedName propertyName =
                    new QualifiedName(
                            ProjectDeviceRepositoryAccessor.class.getName(),
                            "Project Device Repository");
            try {
                drd = (DeviceRepositoryDetails) context.getProject()
                        .getSessionProperty(propertyName);
View Full Code Here

        String policyTypeName = extensions[0].getPolicyTypeName();
        PolicyTreeSelectionDialog dialog =
                    new PolicyTreeSelectionDialog(
                                parent.getShell(),
                                createSelectionDialogDetails(value),
                                new QualifiedName(policyTypeName,
                                                  parent.toString()),
                                context.getProject(),
                                policyNameValidator);
        // if cancel is pressed the BrowseAction contract requires the
        // value that was passed in to be returned.
View Full Code Here

        // dialog details (for appearance) and the validator (for the extensions)
        this.treeSelectionDialog =
            new PolicyTreeSelectionDialog(
                this.getShell(),
                this.selectionDialogDetails,
                new QualifiedName(
                    null,
                    SESSION_PROPERTY_PREFIX
                        + this.selectionDialogDetails.entityId),
                projectProvider,
                this.policyNameValidator);
View Full Code Here

                new PolicyNameValidator(null, fileExtensions, false);

        PolicyTreeSelectionDialog dialog = new PolicyTreeSelectionDialog(
                this.getShell(),
                selectionDialogDetails,
                new QualifiedName(getClass().toString(),
                        RESOURCE_PREFIX + selectionDialogDetails.entityId),
                projectProvider.getProject(),
                policyNameValidator);
        return dialog;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.QualifiedName

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.