Home
last modified time | relevance | path

Searched refs:javaProject (Results 1 – 25 of 66) sorted by relevance

123

/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/exportgradle/
DProjectSetupBuilder.java106 for (IJavaProject javaProject : selectedProjects) { in setProject()
109 if (javaProject.getProject().hasNature(AdtConstants.NATURE_DEFAULT)) { in setProject()
110 module = processAndroidProject(javaProject); in setProject()
112 module = processJavaProject(javaProject); in setProject()
142 public GradleModule getModule(IJavaProject javaProject) { in getModule() argument
143 return mModules.get(javaProject); in getModule()
146 public boolean isOriginalProject(@NonNull IJavaProject javaProject) { in isOriginalProject() argument
147 GradleModule module = mModules.get(javaProject); in isOriginalProject()
197 private GradleModule processAndroidProject(@NonNull IJavaProject javaProject) in processAndroidProject() argument
201 GradleModule module = createModuleOnDemand(javaProject); in processAndroidProject()
[all …]
DGradleModule.java42 GradleModule(@NonNull IJavaProject javaProject) { in GradleModule() argument
43 mJavaProject = javaProject; in GradleModule()
DProjectSelectionPage.java248 for (IJavaProject javaProject : projects) { in getCyclicProjects()
249 if (hasCyclicDependency(javaProject)) { in getCyclicProjects()
250 cyclicProjects.add(javaProject.getProject().getName()); in getCyclicProjects()
261 private static boolean hasCyclicDependency(IJavaProject javaProject) in hasCyclicDependency() argument
263 IMarker[] markers = javaProject.getProject().findMarkers( in hasCyclicDependency()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/mock/
DMocks.java50 IJavaProject javaProject = createMock(IJavaProject.class); in createProject() local
57 expect(javaProject.getProject()).andReturn(project).anyTimes(); in createProject()
58 expect(javaProject.getOutputLocation()).andReturn(capturedOutput.getValue()).anyTimes(); in createProject()
60 expect(javaProject.getRawClasspath()).andAnswer(new IAnswer<IClasspathEntry[]>() { in createProject()
67 javaProject.setRawClasspath(capture(capturedEntries), isA(IProgressMonitor.class)); in createProject()
70 javaProject.setRawClasspath(capture(capturedEntries), capture(capturedOutput), in createProject()
81 expect(javaProject.getOption(JavaCore.COMPILER_COMPLIANCE, true)).andAnswer( in createProject()
88 expect(javaProject.getOption(JavaCore.COMPILER_SOURCE, true)).andAnswer( in createProject()
95 expect(javaProject.getOption(JavaCore.COMPILER_CODEGEN_TARGET_PLATFORM, true)).andAnswer( in createProject()
103 javaProject.setOption(eq(JavaCore.COMPILER_COMPLIANCE), capture(capturedCompliance)); in createProject()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/project/
DProjectHelper.java128 public static void addEntryToClasspath(IJavaProject javaProject, IClasspathEntry newEntry) in addEntryToClasspath() argument
131 IClasspathEntry[] entries = javaProject.getRawClasspath(); in addEntryToClasspath()
133 javaProject.setRawClasspath(entries, new NullProgressMonitor()); in addEntryToClasspath()
144 public static boolean isEntryInClasspath(IJavaProject javaProject, IClasspathEntry newEntry) in isEntryInClasspath() argument
147 IClasspathEntry[] entries = javaProject.getRawClasspath(); in isEntryInClasspath()
295 IJavaProject javaProject = JavaCore.create(project); in fixProject() local
296 fixProjectClasspathEntries(javaProject); in fixProject()
310 public static void fixProjectClasspathEntries(IJavaProject javaProject) in fixProjectClasspathEntries() argument
314 IClasspathEntry[] entries = javaProject.getRawClasspath(); in fixProjectClasspathEntries()
327 IPath outputFolder = javaProject.getOutputLocation(); in fixProjectClasspathEntries()
[all …]
DLibraryClasspathContainerInitializer.java113 IJavaProject javaProject = JavaCore.create(p.getProject()); in updateProject() local
114 if (javaProject != null) { in updateProject()
115 javaProjectList.add(javaProject); in updateProject()
147 private static IClasspathContainer allocateLibraryContainer(IJavaProject javaProject) { in allocateLibraryContainer() argument
148 final IProject iProject = javaProject.getProject(); in allocateLibraryContainer()
197 … return allocateContainer(javaProject, entries, new Path(AdtConstants.CONTAINER_PRIVATE_LIBRARIES), in allocateLibraryContainer()
306 private static IClasspathContainer allocateDependencyContainer(IJavaProject javaProject) { in allocateDependencyContainer() argument
307 final IProject iProject = javaProject.getProject(); in allocateDependencyContainer()
391 return allocateContainer(javaProject, entries, new Path(CONTAINER_DEPENDENCIES), in allocateDependencyContainer()
396 private static IClasspathContainer allocateContainer(IJavaProject javaProject, in allocateContainer() argument
[all …]
DBaseProjectHelper.java82 public static List<IPath> getSourceClasspaths(IJavaProject javaProject) { in getSourceClasspaths() argument
84 IClasspathEntry[] classpaths = javaProject.readRawClasspath(); in getSourceClasspaths()
102 IJavaProject javaProject = JavaCore.create(project); in getSourceClasspaths() local
103 return getSourceClasspaths(javaProject); in getSourceClasspaths()
238 public final static String testClassForManifest(IJavaProject javaProject, String className, in testClassForManifest() argument
245 IType type = javaProject.findType(javaClassName); in testClassForManifest()
364 IJavaProject javaProject = JavaCore.create(project); in revealSource() local
368 IType result = javaProject.findType(className); in revealSource()
443 for (IJavaProject javaProject : javaProjectList) { in getAndroidProjects()
445 IProject project = javaProject.getProject(); in getAndroidProjects()
[all …]
DProjectChooserHelper.java147 IJavaProject javaProject = null; in chooseJavaProject() local
149 javaProject = javaModel.getJavaProject(projectName); in chooseJavaProject()
153 if (javaProject != null) { in chooseJavaProject()
154 dialog.setInitialSelections(new Object[] { javaProject }); in chooseJavaProject()
197 for (IJavaProject javaProject : javaProjects) { in getAndroidProject()
198 if (javaProject.getElementName().equals(projectName)) { in getAndroidProject()
199 iproject = javaProject.getProject(); in getAndroidProject()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/junit/
DInstrumentationRunnerValidator.java48 InstrumentationRunnerValidator(IJavaProject javaProject) { in InstrumentationRunnerValidator() argument
49 mJavaProject = javaProject; in InstrumentationRunnerValidator()
50 ManifestData manifestData = AndroidManifestHelper.parseForData(javaProject.getProject()); in InstrumentationRunnerValidator()
70 InstrumentationRunnerValidator(IJavaProject javaProject, ManifestData manifestData) { in InstrumentationRunnerValidator() argument
71 mJavaProject = javaProject; in InstrumentationRunnerValidator()
DAndroidJUnitLaunchConfigurationTab.java555 IJavaProject javaProject = getJavaProject(); in handleSearchButtonSelected() local
565 types = TestSearchEngine.findTests(getLaunchConfigurationDialog(), javaProject, in handleSearchButtonSelected()
593 javaProject = type.getJavaProject(); in handleSearchButtonSelected()
594 mProjText.setText(javaProject.getElementName()); in handleSearchButtonSelected()
670 IJavaProject javaProject = getJavaModel().getJavaProject(projText); in testModeChanged() local
671 if (javaProject != null && javaProject.exists()) { in testModeChanged()
672 setContainerElement(javaProject); in testModeChanged()
713 IJavaProject javaProject = JavaCore.create(project); in validatePage() local
714 validateJavaProject(javaProject); in validatePage()
727 if (javaProject.findType(className) == null) { in validatePage()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/project/
DProjectHelperTest.java49 IJavaProject javaProject = Mocks.createProject( in testFixProjectClasspathEntriesFromOldContainer() local
58 ProjectHelper.fixProjectClasspathEntries(javaProject); in testFixProjectClasspathEntriesFromOldContainer()
60 IClasspathEntry[] fixedEntries = javaProject.getRawClasspath(); in testFixProjectClasspathEntriesFromOldContainer()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/manifest/
DManifestInfo.java590 IJavaProject javaProject = BaseProjectHelper.getJavaProject(mProject); in getPackageFragment() local
591 if (javaProject != null) { in getPackageFragment()
592 IPackageFragmentRoot root = ManifestInfo.getSourcePackageRoot(javaProject); in getPackageFragment()
657 IJavaProject javaProject = BaseProjectHelper.getJavaProject(project); in guessActivities() local
658 if (javaProject == null) { in guessActivities()
670 IType type = javaProject.findType(typeFqcn); in guessActivities()
676 search(requestor, javaProject, pattern); in guessActivities()
701 final IJavaProject javaProject = BaseProjectHelper.getJavaProject(project); in getProjectActivities() local
702 if (javaProject != null) { in getProjectActivities()
704 IType activityType = javaProject.findType(CLASS_ACTIVITY); in getProjectActivities()
[all …]
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/wizards/exportgradle/
DExportGradleTest.java66 final IJavaProject javaProject = BaseProjectHelper.getJavaProject(project); in testSimpleAndroidApp() local
69 builder.setProject(Collections.singletonList(javaProject)); in testSimpleAndroidApp()
76 File buildfile = new File(javaProject.getResource().getLocation().toString(), in testSimpleAndroidApp()
147 IJavaProject javaProject = BaseProjectHelper.getJavaProject(project); in testSimpleAndroidLib()
150 builder.setProject(Collections.singletonList(javaProject)); in testSimpleAndroidLib()
153 File buildfile = new File(javaProject.getResource().getLocation().toString(), in testSimpleAndroidLib()
211 final IJavaProject javaProject = BaseProjectHelper.getJavaProject(project); in testPlainJavaProject() local
214 builder.setProject(Collections.singletonList(javaProject)); in testPlainJavaProject()
221 … File buildfile = new File(javaProject.getResource().getLocation().toString(), "build.gradle"); in testPlainJavaProject()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/refactorings/core/
DAndroidTypeRenameParticipantTest.java143 IJavaProject javaProject = BaseProjectHelper.getJavaProject(project); in renameType() local
144 assertNotNull(javaProject); in renameType()
145 IType type = javaProject.findType(typeFqcn); in renameType()
DAndroidTypeMoveParticipantTest.java110 IJavaProject javaProject = BaseProjectHelper.getJavaProject(project); in moveType() local
111 assertNotNull(javaProject); in moveType()
112 IType type = javaProject.findType(typeFqcn); in moveType()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/launch/
DMainLaunchConfigTab.java301 IJavaProject javaProject = mProjectChooserHelper.chooseJavaProject( in handleProjectButtonSelected() local
304 if (javaProject == null) { in handleProjectButtonSelected()
307 String projectName = javaProject.getElementName(); in handleProjectButtonSelected()
311 IProject project = javaProject.getProject(); in handleProjectButtonSelected()
401 IJavaProject javaProject = getJavaProject(javaModel); in mapResources() local
403 if (javaProject != null) { in mapResources()
404 resources = AndroidLaunchController.getResourcesToMap(javaProject.getProject()); in mapResources()
471 for (IJavaProject javaProject : projects) { in checkParameters()
472 if (javaProject.getProject().getName().equals(text)) { in checkParameters()
473 found = javaProject.getProject(); in checkParameters()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/sourcelookup/
DAdtSourceLookupDirector.java68 IJavaProject javaProject = JavaCore.create(project); in initializeDefaults() local
69 if (javaProject != null && javaProject.isOpen()) { in initializeDefaults()
70 IClasspathEntry[] entries = javaProject.getResolvedClasspath(true); in initializeDefaults()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/builders/
DResourceManagerBuilder.java84 IJavaProject javaProject = JavaCore.create(project); in build() local
92 abortOnBadSetup(javaProject, null); in build()
164 IClasspathEntry[] classpaths = javaProject.readRawClasspath(); in build()
208 List<IPath> sourceFolders = BaseProjectHelper.getSourceClasspaths(javaProject); in build()
228 IClasspathEntry[] entries = javaProject.getRawClasspath(); in build()
231 javaProject.setRawClasspath(entries, new SubProgressMonitor(monitor, 10)); in build()
275 javaProject.setOutputLocation(newJavaOutput.getFullPath(), monitor); in build()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/export/
DProjectCheckPage.java109 IJavaProject javaProject = mProjectChooserHelper.chooseJavaProject( in createControl()
113 if (javaProject != null) { in createControl()
114 IProject project = javaProject.getProject(); in createControl()
269 for (IJavaProject javaProject : projects) { in handleProjectNameChange()
270 if (javaProject.getProject().getName().equals(text)) { in handleProjectNameChange()
271 found = javaProject.getProject(); in handleProjectNameChange()
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/src/com/android/ide/eclipse/adt/internal/refactorings/core/
DAndroidPackageRenameParticipantTest.java241 IJavaProject javaProject = BaseProjectHelper.getJavaProject(project); in getPackageFragment() local
242 assertNotNull(javaProject); in getPackageFragment()
243 IPackageFragment[] fragments = javaProject.getPackageFragments(); in getPackageFragment()
DRenameResourceParticipantTest.java239 IJavaProject javaProject = BaseProjectHelper.getJavaProject(project); in testRefactor8() local
240 assertNotNull(javaProject); in testRefactor8()
241 IType type = javaProject.findType("com.example.refactoringtest.R.layout"); in testRefactor8()
243 type = javaProject.findType("com.example.refactoringtest.R$layout"); in testRefactor8()
/sdk/testapps/javaProjectTest/javaProject/src/com/android/tests/javaprojecttest/javaproject/
DJavaProject.txt1 SUCCESS from javaProject
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/
DProjectClassLoader.java97 for (IJavaProject javaProject : referencedJavaProjects) { in findClass()
98 clazz = loadFromProject(javaProject, name); in findClass()
296 IJavaProject javaProject = JavaCore.create(mJavaProject.getProject()); in getExternalJars() local
299 IClasspathEntry[] classpaths = javaProject.readRawClasspath(); in getExternalJars()
314 e.getPath(), javaProject); in getExternalJars()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/build/
DSourceProcessor.java93 @NonNull IJavaProject javaProject, in SourceProcessor()
97 mJavaProject = javaProject; in SourceProcessor()
104 IProject project = javaProject.getProject(); in SourceProcessor()
123 @NonNull IJavaProject javaProject, in SourceProcessor()
126 this(javaProject, buildToolInfo, genFolder, new DefaultSourceChangeHandler()); in SourceProcessor()
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
DClientRulesEngine.java422 final IJavaProject javaProject = BaseProjectHelper.getJavaProject(project);
423 if (javaProject != null) {
424 IType oldFragmentType = javaProject.findType(CLASS_V4_FRAGMENT);
463 IType fragmentType = javaProject.findType(CLASS_FRAGMENT);
498 String fqcn = createNewFragmentClass(javaProject);
553 final IJavaProject javaProject = BaseProjectHelper.getJavaProject(project);
554 if (javaProject != null) {
559 IType fragmentType = javaProject.findType(CLASS_VIEW);
590 String fqcn = createNewCustomViewClass(javaProject);
680 private String createNewFragmentClass(IJavaProject javaProject) {
[all …]

123