/** * Close BluePrints. */ public static void closeBluePrints(){ new TopComponentOperator(Bundle.getStringTrimmed("org.netbeans.modules.j2ee.blueprints.Bundle","LBL_Tab_Title")).close(); }
/** * Creates new NewJspFileNameStepOperator that can handle it. */ public NewJspFileNameStepOperator() { super(Bundle.getStringTrimmed( "org.netbeans.modules.project.ui.Bundle", "LBL_NewFileWizard_MessageFormat", new Object[] {NEW, JSP_FILE})); }
public static NewWebFreeFormNameStepOperator invoke() { NewProjectWizardOperator projectWizard = NewProjectWizardOperator.invoke(); String web = Bundle.getStringTrimmed( "org.netbeans.modules.web.core.Bundle", "Templates/JSP_Servlet"); projectWizard.selectCategory(web); String webFreeForm = Bundle.getStringTrimmed( "org.netbeans.modules.web.freeform.resources.Bundle", "Templates/Project/Web/webfreeform.xml"); projectWizard.selectProject(webFreeForm); projectWizard.next(); return new NewWebFreeFormNameStepOperator(); }
/** Performs verification by accessing all sub-components */ public void verify() { lblWebPagesFolder(); txtWebPagesFolder(); lblLibrariesFolder(); txtLibrariesFolder(); btBrowseWebPages(); btBrowseLibraries(); btAddSourceFolder(); btRemoveSourceFolder(); btAddTestFolder(); btRemoveTestFolder(); } }
/** Invokes dialog from main menu "File|New..." and selects Web/JSP template. * @return instance of NewJspFileNameStepOperator */ public static NewJspFileNameStepOperator invoke() { NewFileWizardOperator wizarOperator = NewFileWizardOperator.invoke(); wizarOperator.selectCategory(Bundle.getStringTrimmed( "org.netbeans.modules.web.core.Bundle", "Templates/JSP_Servlet")); wizarOperator.selectFileType(Bundle.getStringTrimmed( "org.netbeans.modules.web.core.Bundle", "Templates/JSP_Servlet/JSP.jsp")); wizarOperator.next(); return new NewJspFileNameStepOperator(); }
/** * Edit file and type there a text * @param filename file that will be eddited * @param line line where put the text * @param text write the text * @param save save at the and */ public static void insertToFile(String filename, int line, String text, boolean save) { EditorOperator editorOperator = new EditorOperator(filename); editorOperator.setCaretPositionToLine(line); editorOperator.insert(text); if (save) editorOperator.save(); }
/** Performs verification by accessing all sub-components */ public void verify() { lblObjectName(); txtObjectName(); lblCreatedFile(); txtCreatedFile(); cboLocation(); lblFolder(); txtFolder(); } }
/** * creates new WebPagesNode * @param projectName project name */ public WebPagesNode(String projectName) { super(new ProjectsTabOperator().getProjectRootNode(projectName), treePath); }
public static void maximizeWholeNetbeansWindow() { MainWindowOperator.getDefault().maximize(); }
/** Creates new instance of J2eeServerNode with given name * @param serverName display name of project */ public J2eeServerNode(String serverName) { super(new RuntimeTabOperator().getRootNode(), SERVERS + "|" + serverName); }
/** * Close All Documents. */ public static void closeAllDocuments(){ EditorOperator.closeDiscardAll(); }
public GlassFishV3ServerNode() { super(Bundle.getString("org.netbeans.modules.glassfish.common.Bundle", "STR_V3_SERVER_NAME")); }
/** * Close BluePrints. */ public static void closeBluePrints(){ new TopComponentOperator(Bundle.getStringTrimmed("org.netbeans.modules.j2ee.blueprints.Bundle","LBL_Tab_Title")).close(); }
/** * Edit file and type there a text * @param filename file that will be eddited * @param line line where put the text * @param text write the text * @param save save at the and */ public static void insertToFile(String filename, int line, String text, boolean save) { EditorOperator editorOperator = new EditorOperator(filename); editorOperator.setCaretPositionToLine(line); editorOperator.insert(text); if (save) editorOperator.save(); }
/** Returns the "New Web Application with Existing Ant Script" wizard title. */ public static String freeFormWizardTitle() { String newLbl = Bundle.getStringTrimmed( "org.netbeans.modules.project.ui.Bundle", "LBL_NewProjectWizard_Subtitle"); String webAppLbl = Bundle.getStringTrimmed( "org.netbeans.modules.web.freeform.ui.Bundle", "TXT_NewWebFreeformProjectWizardIterator_NewProjectWizardTitle"); return Bundle.getStringTrimmed( "org.netbeans.modules.project.ui.Bundle", "LBL_NewProjectWizard_MessageFormat", new Object[] {newLbl, webAppLbl}); } }
public static void maximizeWholeNetbeansWindow() { MainWindowOperator.getDefault().maximize(); }
/** * Close All Documents. */ public static void closeAllDocuments(){ EditorOperator.closeDiscardAll(); }
public GlassFishV2ServerNode() { super(Bundle.getString("org.netbeans.modules.j2ee.sun.ide.j2ee.Bundle", "LBL_GLASSFISH_V2")); }