Examples of validateEdit()


Examples of org.eclipse.compare.IEditableContentExtension.validateEdit()

        @Override
        public IStatus validateEdit(final Shell shell) {
            if (fInput instanceof IEditableContentExtension) {
                final IEditableContentExtension ext = (IEditableContentExtension) fInput;
                return ext.validateEdit(shell);
            }
            return super.validateEdit(shell);
        }

        @Override
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace.validateEdit()

      FileInfo info= (FileInfo) getElementInfo(input);
      if (info != null) {
        IFile file= input.getFile();
        if (file.isReadOnly()) { // do not use cached state here
          IWorkspace workspace= file.getWorkspace();
          info.fStatus= workspace.validateEdit(new IFile[] { file }, computationContext);
        }
        if (isDerived(file)) {
          IStatus status= new Status(IStatus.WARNING, EditorsUI.PLUGIN_ID, EditorsUI.DERIVED_FILE, TextEditorMessages.FileDocumentProvider_warning_fileIsDerived, null);
          if (info.fStatus == null || info.fStatus.isOK())
            info.fStatus= status;
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace.validateEdit()

    @Override
    public void validateSave()
    {
        final IWorkspace ws = ResourcesPlugin.getWorkspace();

        if( ! ws.validateEdit( new IFile[] { this.file }, IWorkspace.VALIDATE_PROMPT ).isOK() )
        {
            throw new ValidateEditException();
        }
    }
View Full Code Here

Examples of org.eclipse.core.resources.IWorkspace.validateEdit()

        collectExistingReadonlyFiles(destination.getFullPath(), sourceResources, copyFiles);
        if (copyFiles.size() > 0) {
            IFile[] files = (IFile[]) copyFiles.toArray(new IFile[copyFiles.size()]);
            IWorkspace workspace = ResourcesPlugin.getWorkspace();
            IStatus status = workspace.validateEdit(files, messageShell);

            canceled = status.isOK() == false;
            return status.isOK();
        }
        return true;
View Full Code Here

Examples of org.eclipse.jst.j2ee.model.IModelProvider.validateEdit()

                {
                    throw new JSFFacetException(NLS.bind(
                            Messages.JSFFacetInstallDelegate_ConfigErr,
                            project.getName()));
                }
                else if (!(provider.validateEdit(null, null).isOK()))
                {
                    if (!(provider.validateEdit(null, null).isOK()))
                    {// checks for web.xml file being read-only and allows
                     // user to set writeable
                        throw new JSFFacetException(
View Full Code Here

Examples of org.eclipse.jst.j2ee.model.IModelProvider.validateEdit()

                            Messages.JSFFacetInstallDelegate_ConfigErr,
                            project.getName()));
                }
                else if (!(provider.validateEdit(null, null).isOK()))
                {
                    if (!(provider.validateEdit(null, null).isOK()))
                    {// checks for web.xml file being read-only and allows
                     // user to set writeable
                        throw new JSFFacetException(
                                NLS.bind(
                                        Messages.JSFFacetInstallDelegate_NonUpdateableWebXML,
View Full Code Here

Examples of org.eclipse.jst.j2ee.model.IModelProvider.validateEdit()

          {
            //Before we do any de-configuration, verify that web.xml is available for update
            IModelProvider provider = jsfUtil.getModelProvider();
            if (provider == null ) {       
              throw new JSFFacetException(NLS.bind(Messages.JSFFacetUninstallDelegate_ConfigErr, project.getName()));
            } else if (!(provider.validateEdit(null, null).isOK())){         
              throw new JSFFacetException(NLS.bind(Messages.JSFFacetUninstallDelegate_NonUpdateableWebXML, project.getName()));
            }
          }
         
        // Remove JSF Libraries
View Full Code Here

Examples of org.eclipse.jst.j2ee.model.IModelProvider.validateEdit()

                {
                    throw new JSFFacetException(NLS.bind(
                            Messages.JSFFacetInstallDelegate_ConfigErr,
                            project.getName()));
                }
                else if (!(provider.validateEdit(null, null).isOK()))
                {
                    if (!(provider.validateEdit(null, null).isOK()))
                    {// checks for web.xml file being read-only and allows
                     // user to set writeable
                        throw new JSFFacetException(
View Full Code Here

Examples of org.eclipse.jst.j2ee.model.IModelProvider.validateEdit()

                            Messages.JSFFacetInstallDelegate_ConfigErr,
                            project.getName()));
                }
                else if (!(provider.validateEdit(null, null).isOK()))
                {
                    if (!(provider.validateEdit(null, null).isOK()))
                    {// checks for web.xml file being read-only and allows
                     // user to set writeable
                        throw new JSFFacetException(
                                NLS.bind(
                                        Messages.JSFFacetInstallDelegate_NonUpdateableWebXML,
View Full Code Here

Examples of org.eclipse.jst.j2ee.model.IModelProvider.validateEdit()

        final IModelProvider provider = tapestryUtil.getModelProvider();
        if (provider == null) {
          throw new TapestryFacetException(NLS.bind(
              Messages.TapestryFacetInstallDelegate_ConfigErr,
              project.getName()));
        } else if (!(provider.validateEdit(null, null).isOK())) {
          if (!(provider.validateEdit(null, null).isOK())) {// checks
                                    // for
                                    // web.xml
                                    // file
                                    // being
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.