本文整理汇总了Java中org.netbeans.spi.project.ui.support.ProjectChooser.getProjectsFolder方法的典型用法代码示例。如果您正苦于以下问题:Java ProjectChooser.getProjectsFolder方法的具体用法?Java ProjectChooser.getProjectsFolder怎么用?Java ProjectChooser.getProjectsFolder使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.netbeans.spi.project.ui.support.ProjectChooser
的用法示例。
在下文中一共展示了ProjectChooser.getProjectsFolder方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: read
import org.netbeans.spi.project.ui.support.ProjectChooser; //导入方法依赖的package包/类
void read (WizardDescriptor settings) {
File projectLocation = (File) settings.getProperty ("projdir"); //NOI18N
if (projectLocation == null || projectLocation.getParentFile() == null ||
(projectLocation.getParentFile().exists() && !projectLocation.getParentFile().isDirectory ())) {
projectLocation = ProjectChooser.getProjectsFolder();
}
else {
projectLocation = projectLocation.getParentFile();
}
this.projectLocationTextField.setText (projectLocation.getAbsolutePath());
String projectName = (String) settings.getProperty ("name"); //NOI18N
if (projectName == null) {
int baseCount = WizardSettings.getNewProjectCount() + 1;
String formatter = NbBundle.getMessage(PanelProjectLocationVisual.class, "TXT_JavaModuleApplication");
while ((projectName=validFreeProjectName(projectLocation, formatter, baseCount))==null)
baseCount++;
settings.putProperty (NewJ2SEModularProjectWizardIterator.PROP_NAME_INDEX, new Integer(baseCount));
}
this.projectNameTextField.setText (projectName);
this.projectNameTextField.selectAll();
}
示例2: read
import org.netbeans.spi.project.ui.support.ProjectChooser; //导入方法依赖的package包/类
void read (WizardDescriptor settings) {
File projectLocation = (File) settings.getProperty(WizardProperties.PROJECT_DIR);
if (projectLocation == null)
projectLocation = ProjectChooser.getProjectsFolder();
else
projectLocation = projectLocation.getParentFile();
projectLocationTextField.setText(projectLocation.getAbsolutePath());
String formater = null;
String projectName = (String) settings.getProperty(WizardProperties.NAME);
if (projectName == null) {
formater = NbBundle.getMessage(PanelProjectLocationVisual.class, "LBL_NPW1_DefaultProjectName"); //NOI18N
} else {
formater = projectName + "{0}"; //NOI18N
}
if ((projectName == null) || (validFreeProjectName(projectLocation, projectName) == null)) {
int baseCount = FoldersListSettings.getDefault().getNewProjectCount() + 1;
while ((projectName = validFreeProjectName(projectLocation, formater, baseCount)) == null)
baseCount++;
// settings.putProperty(NewWebProjectWizardIterator.PROP_NAME_INDEX, new Integer(baseCount));
}
projectNameTextField.setText(projectName);
projectNameTextField.selectAll();
}
示例3: read
import org.netbeans.spi.project.ui.support.ProjectChooser; //导入方法依赖的package包/类
void read (WizardDescriptor settings) {
File projectLocation = (File) settings.getProperty(WizardProperties.PROJECT_DIR);
if (projectLocation == null)
projectLocation = ProjectChooser.getProjectsFolder();
else
projectLocation = projectLocation.getParentFile();
projectLocationTextField.setText(projectLocation.getAbsolutePath());
String formater = null;
String projectName = (String) settings.getProperty(WizardProperties.NAME);
if (projectName == null) {
formater = NbBundle.getMessage(PanelProjectLocationVisual.class, "LBL_NPW1_DefaultProjectName"); //NOI18N
} else {
formater = projectName + "{0}"; //NOI18N
}
if ((projectName == null) || (validFreeProjectName(projectLocation, projectName) == null)) {
int baseCount = 1;
while ((projectName = validFreeProjectName(projectLocation, formater, baseCount)) == null) {
baseCount++;
}
}
projectNameTextField.setText(projectName);
projectNameTextField.selectAll();
}
示例4: read
import org.netbeans.spi.project.ui.support.ProjectChooser; //导入方法依赖的package包/类
void read(WizardDescriptor settings) {
File projectLocation = (File) settings.getProperty("projdir");
if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
projectLocation = ProjectChooser.getProjectsFolder();
} else {
projectLocation = projectLocation.getParentFile();
}
this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
String projectName = (String) settings.getProperty("name");
if (projectName == null) {
projectName = "JavaBot";
}
this.projectNameTextField.setText(projectName);
this.projectNameTextField.selectAll();
}
示例5: read
import org.netbeans.spi.project.ui.support.ProjectChooser; //导入方法依赖的package包/类
void read(WizardDescriptor settings) {
File projectLocation = (File) settings.getProperty("projdir");
if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
projectLocation = ProjectChooser.getProjectsFolder();
} else {
projectLocation = projectLocation.getParentFile();
}
this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
String projectName = (String) settings.getProperty("name");
if (projectName == null) {
projectName = "ClojureProjectTemplate";
}
this.projectNameTextField.setText(projectName);
this.projectNameTextField.selectAll();
}
示例6: read
import org.netbeans.spi.project.ui.support.ProjectChooser; //导入方法依赖的package包/类
void read(WizardDescriptor settings) {
File projectLocation = (File) settings.getProperty("projdir");
if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
projectLocation = ProjectChooser.getProjectsFolder();
} else {
projectLocation = projectLocation.getParentFile();
}
this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
String projectName = (String) settings.getProperty("name");
if (projectName == null) {
projectName = "FreeMarkerProject";
}
this.projectNameTextField.setText(projectName);
this.projectNameTextField.selectAll();
}
示例7: read
import org.netbeans.spi.project.ui.support.ProjectChooser; //导入方法依赖的package包/类
void read(WizardDescriptor settings) {
File projectLocation = (File) settings.getProperty("projdir");
if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
projectLocation = ProjectChooser.getProjectsFolder();
} else {
projectLocation = projectLocation.getParentFile();
}
this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
String projectName = (String) settings.getProperty("name");
if (projectName == null) {
projectName = "GroovyProject";
}
this.projectNameTextField.setText(projectName);
this.projectNameTextField.selectAll();
}
示例8: read
import org.netbeans.spi.project.ui.support.ProjectChooser; //导入方法依赖的package包/类
void read(WizardDescriptor settings) {
File projectLocation = (File) settings.getProperty("projdir");
if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
projectLocation = ProjectChooser.getProjectsFolder();
} else {
projectLocation = projectLocation.getParentFile();
}
this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
String projectName = (String) settings.getProperty("name");
if (projectName == null) {
projectName = "ThymeleafProject";
}
this.projectNameTextField.setText(projectName);
this.projectNameTextField.selectAll();
}
示例9: read
import org.netbeans.spi.project.ui.support.ProjectChooser; //导入方法依赖的package包/类
void read(WizardDescriptor settings) {
File projectLocation = (File) settings.getProperty("projdir");
if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
projectLocation = ProjectChooser.getProjectsFolder();
} else {
projectLocation = projectLocation.getParentFile();
}
this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
String projectName = (String) settings.getProperty("name");
if (projectName == null) {
projectName = "btraceProject";
}
this.projectNameTextField.setText(projectName);
this.projectNameTextField.selectAll();
}
示例10: read
import org.netbeans.spi.project.ui.support.ProjectChooser; //导入方法依赖的package包/类
void read(WizardDescriptor settings) {
File projectLocation = (File) settings.getProperty(WIZ_PROJ_LOCATION);
if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
projectLocation = ProjectChooser.getProjectsFolder();
} else {
projectLocation = projectLocation.getParentFile();
}
this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
String projectName = (String) settings.getProperty(WIZ_PROJ_NAME);
if (projectName == null) {
projectName = "InitializrSpringbootProject";
}
this.projectNameTextField.setText(projectName);
this.projectNameTextField.selectAll();
this.chUseSBMavenPlugin.setSelected((boolean) settings.getProperty(WIZ_USE_SB_MVN_PLUGIN));
this.chRemoveWrapper.setSelected((boolean) settings.getProperty(WIZ_REMOVE_MVN_WRAPPER));
}
示例11: readSettings
import org.netbeans.spi.project.ui.support.ProjectChooser; //导入方法依赖的package包/类
@Override
public void readSettings(Object settings) {
wizardDescriptor = (WizardDescriptor) settings;
File projectLocation = (File) wizardDescriptor.getProperty("projdir");
if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
projectLocation = ProjectChooser.getProjectsFolder();
} else {
projectLocation = projectLocation.getParentFile();
}
this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
String projectName = (String) wizardDescriptor.getProperty("name");
if (projectName == null) {
projectName = "NewProject";
}
this.projectNameTextField.setText(projectName);
this.projectNameTextField.selectAll();
}
示例12: read
import org.netbeans.spi.project.ui.support.ProjectChooser; //导入方法依赖的package包/类
void read(WizardDescriptor settings) {
File projectLocation = (File) settings.getProperty("projdir");
if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
projectLocation = ProjectChooser.getProjectsFolder();
} else {
projectLocation = projectLocation.getParentFile();
}
this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
String projectName = (String) settings.getProperty("name");
if (projectName == null) {
projectName = "JME3TestsAndroid";
}
this.projectNameTextField.setText(projectName);
this.projectNameTextField.selectAll();
}
示例13: read
import org.netbeans.spi.project.ui.support.ProjectChooser; //导入方法依赖的package包/类
void read(WizardDescriptor settings) {
File projectLocation = (File) settings.getProperty("projdir");
if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
projectLocation = ProjectChooser.getProjectsFolder();
} else {
projectLocation = projectLocation.getParentFile();
}
this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
String projectName = (String) settings.getProperty("name");
if (projectName == null) {
projectName = "JmeTests";
}
this.projectNameTextField.setText(projectName);
this.projectNameTextField.selectAll();
}
示例14: read
import org.netbeans.spi.project.ui.support.ProjectChooser; //导入方法依赖的package包/类
void read(WizardDescriptor settings) {
File projectLocation = (File) settings.getProperty("projdir");
if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
projectLocation = ProjectChooser.getProjectsFolder();
} else {
projectLocation = projectLocation.getParentFile();
}
this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
String projectName = (String) settings.getProperty("name");
if (projectName == null) {
projectName = "BasicGame";
}
this.projectNameTextField.setText(projectName);
this.projectNameTextField.selectAll();
}
示例15: read
import org.netbeans.spi.project.ui.support.ProjectChooser; //导入方法依赖的package包/类
void read(WizardDescriptor settings) {
File projectLocation = (File) settings.getProperty("projdir");
if (projectLocation == null || projectLocation.getParentFile() == null || !projectLocation.getParentFile().isDirectory()) {
projectLocation = ProjectChooser.getProjectsFolder();
} else {
projectLocation = projectLocation.getParentFile();
}
this.projectLocationTextField.setText(projectLocation.getAbsolutePath());
String projectName = (String) settings.getProperty("name");
if (projectName == null) {
projectName = "SalesforceProject";
}
this.projectNameTextField.setText(projectName);
this.projectNameTextField.selectAll();
}