/** * Returns the location in the local file system of the plug-in * state area for the given plug-in. * The platform must be running. * <p> * The plug-in state area is a file directory within the * platform's metadata area where a plug-in is free to create files. * The content and structure of this area is defined by the plug-in, * and the particular plug-in is solely responsible for any files * it puts there. It is recommended for plug-in preference settings. * </p> * * @param plugin the plug-in whose state location is returned * @return a local file system path * @deprecated clients should call {@link #getStateLocation(Bundle)} instead */ @Deprecated public static IPath getPluginStateLocation(Plugin plugin) { return plugin.getStateLocation(); }
private IPath getJavaPluginWorkingLocation() { if (this.javaPluginLocation != null) return this.javaPluginLocation; IPath stateLocation = JavaCore.getPlugin().getStateLocation(); return this.javaPluginLocation = stateLocation; } private File getSavedIndexesDirectory() {
private IPath getJavaPluginWorkingLocation() { if (this.javaPluginLocation != null) return this.javaPluginLocation; IPath stateLocation = JavaCore.getPlugin().getStateLocation(); return this.javaPluginLocation = stateLocation; } private File getSavedIndexesDirectory() {
private IPath getJavaPluginWorkingLocation() { if (this.javaPluginLocation != null) return this.javaPluginLocation; IPath stateLocation = JavaCore.getPlugin().getStateLocation(); return this.javaPluginLocation = stateLocation; } private File getSavedIndexesDirectory() {
private IPath getJavaPluginWorkingLocation() { if (this.javaPluginLocation != null) return this.javaPluginLocation; IPath stateLocation = JavaCore.getPlugin().getStateLocation(); return this.javaPluginLocation = stateLocation; } private File getSavedIndexesDirectory() {
private IPath getJavaPluginWorkingLocation() { if (this.javaPluginLocation != null) return this.javaPluginLocation; IPath stateLocation = JavaCore.getPlugin().getStateLocation(); return this.javaPluginLocation = stateLocation; } private File getSavedIndexesDirectory() {
private void dumpDiskIndex() { File jdtMetadata = JavaCore.getPlugin().getStateLocation().toFile(); String[] files = jdtMetadata.list(); System.out.println("Disk index: " + (files == null ? '0' : files.length) + " files."); }
private IPath getJavaPluginWorkingLocation() { if (this.javaPluginLocation != null) return this.javaPluginLocation; IPath stateLocation = JavaCore.getPlugin().getStateLocation(); return this.javaPluginLocation = stateLocation; } private File getSavedIndexesDirectory() {
static File getDBFile() { IPath stateLocation = JavaCore.getPlugin().getStateLocation(); return stateLocation.append(INDEX_FILENAME).toFile(); }
private File getTimeStampsFile() { return JavaCore.getPlugin().getStateLocation().append("externalLibsTimeStamps").toFile(); //$NON-NLS-1$ }
static File getDBFile() { IPath stateLocation = JavaCore.getPlugin().getStateLocation(); return stateLocation.append(INDEX_FILENAME).toFile(); }
private File getVariableAndContainersFile() { return JavaCore.getPlugin().getStateLocation().append("variablesAndContainers.dat").toFile(); //$NON-NLS-1$ }
private File getClasspathListFile(String fileName) { return JavaCore.getPlugin().getStateLocation().append(fileName).toFile(); }
private File getTimeStampsFile() { return JavaCore.getPlugin().getStateLocation().append("externalLibsTimeStamps").toFile(); //$NON-NLS-1$ }
private void createExternalFoldersProject(IProject project, IProgressMonitor monitor) throws CoreException { IProjectDescription desc = project.getWorkspace().newProjectDescription(project.getName()); IPath stateLocation = JavaCore.getPlugin().getStateLocation(); desc.setLocation(stateLocation.append(EXTERNAL_PROJECT_NAME)); project.create(desc, IResource.HIDDEN, monitor); }
private void createExternalFoldersProject(IProject project, IProgressMonitor monitor) throws CoreException { IProjectDescription desc = project.getWorkspace().newProjectDescription(project.getName()); IPath stateLocation = JavaCore.getPlugin().getStateLocation(); desc.setLocation(stateLocation.append(EXTERNAL_PROJECT_NAME)); project.create(desc, IResource.HIDDEN, monitor); }
private void createExternalFoldersProject(IProject project, IProgressMonitor monitor) throws CoreException { IProjectDescription desc = project.getWorkspace().newProjectDescription(project.getName()); IPath stateLocation = JavaCore.getPlugin().getStateLocation(); desc.setLocation(stateLocation.append(EXTERNAL_PROJECT_NAME)); project.create(desc, IResource.HIDDEN, monitor); }
private void createExternalFoldersProject(IProject project, IProgressMonitor monitor) throws CoreException { IProjectDescription desc = project.getWorkspace().newProjectDescription(project.getName()); IPath stateLocation = JavaCore.getPlugin().getStateLocation(); desc.setLocation(stateLocation.append(EXTERNAL_PROJECT_NAME)); project.create(desc, IResource.HIDDEN, monitor); }
private void createExternalFoldersProject(IProject project, IProgressMonitor monitor) throws CoreException { IProjectDescription desc = project.getWorkspace().newProjectDescription(project.getName()); IPath stateLocation = JavaCore.getPlugin().getStateLocation(); desc.setLocation(stateLocation.append(EXTERNAL_PROJECT_NAME)); try { project.create(desc, IResource.HIDDEN, monitor); } catch (CoreException e) { // If we managed to create the project in the meantime, don't complain if (!project.exists()) { throw e; } } }
private void createExternalFoldersProject(IProject project, IProgressMonitor monitor) throws CoreException { IProjectDescription desc = project.getWorkspace().newProjectDescription(project.getName()); IPath stateLocation = JavaCore.getPlugin().getStateLocation(); desc.setLocation(stateLocation.append(EXTERNAL_PROJECT_NAME)); try { project.create(desc, IResource.HIDDEN, monitor); } catch (CoreException e) { // If we managed to create the project in the meantime, don't complain if (!project.exists()) { throw e; } } }