Java Code Examples for org.netbeans.modules.php.api.util.UiUtils#warnBrokenProject()
The following examples show how to use
org.netbeans.modules.php.api.util.UiUtils#warnBrokenProject() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: GoToTest.java From netbeans with Apache License 2.0 | 6 votes |
private LocationResult findOpposite0(FileObject fo) { PhpProject project = PhpProjectUtils.getPhpProject(fo); if (project == null) { // XXX what to do now?? LOGGER.log(Level.INFO, "PHP project was not found for file {0}", fo); return null; } if (PhpProjectValidator.isFatallyBroken(project)) { UiUtils.warnBrokenProject(project.getPhpModule()); return null; } if (CommandUtils.isUnderTests(project, fo, false)) { return findSource(project, fo); } else if (CommandUtils.isUnderSources(project, fo)) { return findTest(project, fo); } return null; }
Example 2
Source File: GenerateDocumentationActionFactory.java From netbeans with Apache License 2.0 | 6 votes |
@Override public void actionPerformed(ActionEvent e) { if (phpModule.isBroken()) { // broken project UiUtils.warnBrokenProject(phpModule); return; } RP.post(new Runnable() { @Override public void run() { LifecycleManager.getDefault().saveAll(); if (remember) { // remember curent provider docProvider.notifyEnabled(phpModule, true); } docProvider.generateDocumentation(phpModule); } }); }
Example 3
Source File: CustomizerProviderImpl.java From netbeans with Apache License 2.0 | 5 votes |
@Override public void showCustomizer(final String preselectedCategory, String preselectedSubCategory) { if (PhpProjectValidator.isFatallyBroken(project)) { // metadata corrupted UiUtils.warnBrokenProject(project.getPhpModule()); return; } Mutex.EVENT.readAccess(new Runnable() { @Override public void run() { Dialog dialog = PROJECT_2_DIALOG.get(project); if (dialog != null) { dialog.setVisible(true); return; } IncludePathSupport includePathSupport = new IncludePathSupport(ProjectPropertiesSupport.getPropertyEvaluator(project), project.getRefHelper(), project.getHelper()); IgnorePathSupport ignorePathSupport = new IgnorePathSupport(ProjectPropertiesSupport.getPropertyEvaluator(project), project.getRefHelper(), project.getHelper()); TestDirectoriesPathSupport testDirectoriesPathSupport = new TestDirectoriesPathSupport(ProjectPropertiesSupport.getPropertyEvaluator(project), project.getRefHelper(), project.getHelper()); SeleniumTestDirectoriesPathSupport seleniumTestDirectoriesPathSupport = new SeleniumTestDirectoriesPathSupport(ProjectPropertiesSupport.getPropertyEvaluator(project), project.getRefHelper(), project.getHelper()); PhpProjectProperties uiProperties = new PhpProjectProperties(project, includePathSupport, ignorePathSupport, testDirectoriesPathSupport, seleniumTestDirectoriesPathSupport); Lookup context = Lookups.fixed(project, uiProperties); OptionListener optionListener = new OptionListener(project); StoreListener storeListener = new StoreListener(uiProperties); dialog = ProjectCustomizer.createCustomizerDialog(CUSTOMIZER_FOLDER_PATH, context, preselectedCategory, optionListener, storeListener, null); dialog.addWindowListener(optionListener); dialog.setTitle(MessageFormat.format( NbBundle.getMessage(CustomizerProviderImpl.class, "LBL_Customizer_Title"), ProjectUtils.getInformation(project).getDisplayName())); PROJECT_2_DIALOG.put(project, dialog); dialog.setVisible(true); } }); }
Example 4
Source File: Command.java From netbeans with Apache License 2.0 | 5 votes |
protected boolean validateInvokeAction(Lookup context) { if (PhpProjectValidator.isFatallyBroken(project)) { UiUtils.warnBrokenProject(project.getPhpModule()); return false; } return true; }
Example 5
Source File: NewFileWizardIterator.java From netbeans with Apache License 2.0 | 5 votes |
private void checkPhpProject() { if (phpProject == null) { // not php project return; } if (PhpProjectValidator.isFatallyBroken(phpProject)) { UiUtils.warnBrokenProject(phpProject.getPhpModule()); } }