Class AllowNonProjectEditing

java.lang.Object
com.redhat.devtools.intellij.common.editor.AllowNonProjectEditing
All Implemented Interfaces:
com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessExtension

public class AllowNonProjectEditing extends Object implements com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessExtension
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.intellij.openapi.util.Key<Boolean>
    Prevents the dialog "Non-Projects File Protection" when editing files that do not belong the the current project.

    Fields inherited from interface com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessExtension

    EP_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isWritable(@NotNull com.intellij.openapi.vfs.VirtualFile file)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessExtension

    isNotWritable
  • Field Details

    • ALLOW_NON_PROJECT_EDITING

      public static final com.intellij.openapi.util.Key<Boolean> ALLOW_NON_PROJECT_EDITING
      Prevents the dialog "Non-Projects File Protection" when editing files that do not belong the the current project.
  • Constructor Details

    • AllowNonProjectEditing

      public AllowNonProjectEditing()
  • Method Details

    • isWritable

      public boolean isWritable(@NotNull @NotNull com.intellij.openapi.vfs.VirtualFile file)
      Specified by:
      isWritable in interface com.intellij.openapi.fileEditor.impl.NonProjectFileWritingAccessExtension