Polished HTML and JS Wizards.
--- a/org.symbian.tools.wrttools.jseditors/plugin.xml Mon Jan 11 15:10:40 2010 -0800
+++ b/org.symbian.tools.wrttools.jseditors/plugin.xml Mon Jan 11 15:29:46 2010 -0800
@@ -122,23 +122,7 @@
</enablement>
</decorator>
</extension>
- <extension
- point="org.eclipse.ui.importWizards">
- <category
- name="Sample File Import"
- id="org.symbian.tools.wrttools.jseditors.importWizards.sampleCategory">
- </category>
- <wizard
- name="Import File"
- icon="icons/sample.gif"
- category="org.symbian.tools.wrttools.jseditors.importWizards.sampleCategory"
- class="org.symbian.tools.wrttools.jseditors.importWizards.ImportWizard"
- id="org.symbian.tools.wrttools.jseditors.importWizards.ImportWizard">
- <description>
- Import a file from the local file system into the workspace.
- </description>
- </wizard>
- </extension>
+
<extension
point="org.eclipse.ui.intro.configExtension">
<configExtension
--- a/org.symbian.tools.wrttools.jseditors/src/org/symbian/tools/wrttools/jseditors/wizards/NewHTMLWizardPage.java Mon Jan 11 15:10:40 2010 -0800
+++ b/org.symbian.tools.wrttools.jseditors/src/org/symbian/tools/wrttools/jseditors/wizards/NewHTMLWizardPage.java Mon Jan 11 15:29:46 2010 -0800
@@ -128,7 +128,7 @@
containerText.setText(container.getFullPath().toString());
}
}
- fileText.setText("index.html");
+ fileText.setText("main.html");
}
/**
--- a/org.symbian.tools.wrttools.jseditors/src/org/symbian/tools/wrttools/jseditors/wizards/NewJSWizard.java Mon Jan 11 15:10:40 2010 -0800
+++ b/org.symbian.tools.wrttools.jseditors/src/org/symbian/tools/wrttools/jseditors/wizards/NewJSWizard.java Mon Jan 11 15:29:46 2010 -0800
@@ -146,7 +146,7 @@
*/
private InputStream openContentStream() {
- String contents = "// This is a sample JavaScript Class\rmain { \r}";
+ String contents = "// This is a sample JavaScript File\rfunction init()\r{\r// Add your code here\r}";
return new ByteArrayInputStream(contents.getBytes());
}