import net.sourceforge.phpeclipse.builder.ExternalStorageDocumentProvider;
import net.sourceforge.phpeclipse.builder.FileStorage;
import net.sourceforge.phpeclipse.builder.IdentifierIndexManager;
-import net.sourceforge.phpeclipse.phpeditor.DocumentAdapter;
+import net.sourceforge.phpeclipse.DocumentAdapter;
import net.sourceforge.phpeclipse.phpeditor.ICompilationUnitDocumentProvider;
import net.sourceforge.phpeclipse.phpeditor.PHPDocumentProvider;
//import net.sourceforge.phpeclipse.phpeditor.PHPSyntaxRdr;
public static final String EDITOR_ID = WebUI.PLUGIN_ID + ".PHPUnitEditor";
- private static final String CUSTOM_TEMPLATES_KEY = "net.sourceforge.phpeclipse.ui.templates"; //$NON-NLS-1$
+
+ /**
+ * The key to store customized templates.
+ *
+ * @since 3.0
+ */
+ private static final String TEMPLATES_KEY = "net.sourceforge.phpdt.ui.text.custom_templates"; //$NON-NLS-1$
/**
* The key to store customized code templates.
* @since 3.0
*/
private static final String CODE_TEMPLATES_KEY = "net.sourceforge.phpdt.ui.text.custom_code_templates"; //$NON-NLS-1$
+
+
+
+
+
+ private static final String CUSTOM_TEMPLATES_KEY = "net.sourceforge.phpeclipse.ui.templates"; //$NON-NLS-1$
+
+ /**
+ * The key to store customized code templates.
+ *
+ * @since 3.0
+ */
+// private static final String CODE_TEMPLATES_KEY = "net.sourceforge.phpdt.ui.text.custom_code_templates"; //$NON-NLS-1$
/**
* The maximum number of allowed proposals by category
*/
*/
public TemplateStore getTemplateStore() {
if (fStore == null) {
- fStore = new ContributionTemplateStore(getContextTypeRegistry(),
- getDefault().getPreferenceStore(), CUSTOM_TEMPLATES_KEY);
+ fStore = new ContributionTemplateStore(/*getContextTypeRegistry()*/getTemplateContextRegistry(),
+ getDefault().getPreferenceStore(), /*CUSTOM_*/TEMPLATES_KEY);
try {
fStore.load();
} catch (IOException e) {
if (textEditor != null) {
// If a line number was given, go to it
if (offset >= 0) {
- IDocument document = textEditor.getDocumentProvider()
- .getDocument(textEditor.getEditorInput());
+// IDocument document = textEditor.getDocumentProvider()
+// .getDocument(textEditor.getEditorInput());
textEditor.selectAndReveal(offset, length);
}
}
| IResourceChangeEvent.PRE_DELETE
| IResourceChangeEvent.PRE_CLOSE);
- ISavedState savedState = workspace.addSaveParticipant(
- /*PHPeclipsePlugin*/WebUI.this, modelManager);
+// ISavedState savedState = workspace.addSaveParticipant(
+// /*PHPeclipsePlugin*/WebUI.this, modelManager);
WorkspaceJob processSavedState = new WorkspaceJob(
Util.bind("savedState.jobName")) { //$NON-NLS-1$