public abstract class ProjectOpenProcessor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<ProjectOpenProcessor> |
EXTENSION_POINT_NAME |
Constructor and Description |
---|
ProjectOpenProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
askConfirmationForOpeningProject(VirtualFile file,
Project project)
If known that a user tries to open some project, ask if the user wants to open it as a plain file or as a project.
|
boolean |
canImportProjectAfterwards()
Returns true if this processor is able to import the project after it has been opened in IDEA.
|
abstract boolean |
canOpenProject(VirtualFile file) |
abstract Project |
doOpenProject(VirtualFile virtualFile,
Project projectToClose,
boolean forceOpenInNewFrame) |
javax.swing.Icon |
getIcon() |
javax.swing.Icon |
getIcon(VirtualFile file) |
static ProjectOpenProcessor |
getImportProvider(VirtualFile file) |
static ProjectOpenProcessor |
getImportProvider(VirtualFile file,
boolean onlyIfExistingProjectFile) |
abstract java.lang.String |
getName() |
void |
importProjectAfterwards(Project project,
VirtualFile file)
Import the project after it has already been opened in IDEA.
|
boolean |
isProjectFile(VirtualFile file) |
boolean |
isStrongProjectInfoHolder() |
boolean |
lookForProjectsInDirectory()
Allow opening a directory directly if the project files are located in that directory.
|
public static final ExtensionPointName<ProjectOpenProcessor> EXTENSION_POINT_NAME
public abstract java.lang.String getName()
public javax.swing.Icon getIcon()
public javax.swing.Icon getIcon(VirtualFile file)
public abstract boolean canOpenProject(VirtualFile file)
public boolean isProjectFile(VirtualFile file)
public int askConfirmationForOpeningProject(VirtualFile file, Project project)
public abstract Project doOpenProject(VirtualFile virtualFile, Project projectToClose, boolean forceOpenInNewFrame)
public boolean lookForProjectsInDirectory()
public boolean canImportProjectAfterwards()
public void importProjectAfterwards(Project project, VirtualFile file)
canImportProjectAfterwards()
public static ProjectOpenProcessor getImportProvider(VirtualFile file)
public static ProjectOpenProcessor getImportProvider(VirtualFile file, boolean onlyIfExistingProjectFile)
onlyIfExistingProjectFile
- when true, doesn't return 'generic' providers that can open any non-project directory/text file
(e.g. PlatformProjectOpenProcessor)public boolean isStrongProjectInfoHolder()