From: khartlage <khartlage> Date: Tue, 20 Jan 2004 22:47:15 +0000 (+0000) Subject: changes to install phpeclipse under wampp distribution X-Git-Url: http://secure.phpeclipse.com changes to install phpeclipse under wampp distribution --- diff --git a/archive/net.sourceforge.phpeclipse.sql/.classpath b/archive/net.sourceforge.phpeclipse.sql/.classpath index 33c942c..676dc38 100644 --- a/archive/net.sourceforge.phpeclipse.sql/.classpath +++ b/archive/net.sourceforge.phpeclipse.sql/.classpath @@ -2,13 +2,13 @@ <classpath> <classpathentry kind="src" path="src/"/> <classpathentry kind="var" - path="ECLIPSE_HOME/plugins/org.eclipse.core.boot_2.1.1/boot.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.boot_2.1.1/bootsrc.zip"/> + path="ECLIPSE_HOME/plugins/org.eclipse.core.boot_2.1.3/boot.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.boot_2.1.3/bootsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.core.runtime_2.1.1/runtime.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.runtime_2.1.1/runtimesrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.core.resources_2.1.1/resources.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.resources_2.1.1/resourcessrc.zip"/> <classpathentry kind="var" - path="ECLIPSE_HOME/plugins/org.eclipse.swt.win32_2.1.1/ws/win32/swt.jar" sourcepath="ORG_ECLIPSE_PLATFORM_WIN32_SOURCE_SRC/org.eclipse.swt.win32_2.1.1/ws/win32/swtsrc.zip"/> + path="ECLIPSE_HOME/plugins/org.eclipse.swt.win32_2.1.2/ws/win32/swt.jar" sourcepath="ORG_ECLIPSE_PLATFORM_WIN32_SOURCE_SRC/org.eclipse.swt.win32_2.1.2/ws/win32/swtsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui_2.1.1/ui.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui_2.1.1/uisrc.zip"/> <classpathentry kind="var" @@ -27,6 +27,8 @@ path="ECLIPSE_HOME/plugins/org.eclipse.ui.workbench.texteditor_2.1.0/texteditor.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.workbench.texteditor_2.1.0/texteditorsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.editors_2.1.0/editors.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.editors_2.1.0/editorssrc.zip"/> + <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.apache.xerces_4.0.13/xmlParserAPIs.jar"/> + <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.apache.xerces_4.0.13/xercesImpl.jar"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="output" path="bin"/> </classpath> diff --git a/archive/net.sourceforge.phpeclipse.sql/build.xml b/archive/net.sourceforge.phpeclipse.sql/build.xml index 129f91e..0e7630a 100644 --- a/archive/net.sourceforge.phpeclipse.sql/build.xml +++ b/archive/net.sourceforge.phpeclipse.sql/build.xml @@ -5,10 +5,13 @@ <property name="ws" value="win32"/> <property name="os" value="win32"/> <property name="arch" value="x86"/> + <property name="javacFailOnError" value="false"/> + <property name="javacDebugInfo" value="on"/> + <property name="javacVerbose" value="true"/> <target name="init" depends="properties"> <property name="plugin" value="net.sourceforge.phpeclipse.sql"/> - <property name="version.suffix" value="_1.0.1"/> + <property name="version.suffix" value="_1.0.2"/> <property name="full.name" value="${plugin}${version.suffix}"/> <property name="temp.folder" value="${basedir}/temp.folder"/> <property name="plugin.destination" value="${basedir}"/> @@ -19,14 +22,14 @@ <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/> </target> - <target name="build.update.jar" depends="init"> + <target name="build.update.jar" depends="init" description="Build the plug-in: net.sourceforge.phpeclipse.sql for an update site."> <delete dir="${temp.folder}"/> <mkdir dir="${temp.folder}"/> <antcall target="build.jars"/> <antcall target="gather.bin.parts"> <param name="destination.temp.folder" value="${temp.folder}/"/> </antcall> - <zip zipfile="${plugin.destination}/${full.name}.jar" basedir="${temp.folder}/${full.name}" filesonly="false"/> + <zip zipfile="${plugin.destination}/${full.name}.jar" basedir="${temp.folder}/${full.name}" filesonly="false" update="no"/> <delete dir="${temp.folder}"/> </target> @@ -35,12 +38,12 @@ <copy file="${build.result.folder}/phpeclipsesql.jar" todir="${destination.temp.folder}/${full.name}"/> </target> - <target name="phpeclipsesql.jar" depends="init" unless="phpeclipsesql.jar"> + <target name="phpeclipsesql.jar" depends="init" unless="phpeclipsesql.jar" description="Create jar: phpeclipsesql.jar."> <property name="destdir" value="${temp.folder}/phpeclipsesql.jar.bin"/> <delete dir="${temp.folder}/phpeclipsesql.jar.bin"/> <mkdir dir="${temp.folder}/phpeclipsesql.jar.bin"/> <!-- compile the source code --> - <javac destdir="${temp.folder}/phpeclipsesql.jar.bin" failonerror="false" verbose="true" debug="on" includeAntRuntime="no" bootclasspath="${bootclasspath}" classpath="../../plugins/org.eclipse.ui.win32_2.1.0/workbenchwin32.jar;../../plugins/org.eclipse.jface.text_2.1.0/jfacetext.jar;../../plugins/org.eclipse.ui.workbench_2.1.0/workbench.jar;../../plugins/org.eclipse.swt_2.1.0/ws/${ws}/swt.jar;../../plugins/org.eclipse.core.resources_2.1.0/bin;../../plugins/org.eclipse.swt_2.1.0/bin;../../plugins/org.eclipse.core.runtime_2.1.0/runtime.jar;../../plugins/org.eclipse.ui.win32_2.1.0/workbench.jar;../../plugins/org.eclipse.core.runtime_2.1.0/bin;../../plugins/org.eclipse.ui.workbench.texteditor_2.1.0/bin;../../plugins/org.eclipse.ui_2.1.0/bin;../../plugins/org.eclipse.ui.editors_2.1.0/bin;../../plugins/org.eclipse.jface.text_2.1.0/bin;../../plugins/org.eclipse.ui.views_2.1.0/bin;../../plugins/org.eclipse.ui_2.1.0/ui.jar;../../plugins/org.eclipse.jface_2.1.0/jface.jar;../../plugins/org.eclipse.core.boot_2.1.0/bin;../../plugins/org.eclipse.core.resources.win32_2.1.0/resources.jar;../../plugins/org.eclipse.ui.workbench.texteditor_2.1.0/texteditor.jar;../../plugins/org.eclipse.ui.views_2.1.0/views.jar;../../plugins/org.eclipse.core.boot_2.1.0/boot.jar;../../plugins/org.eclipse.core.resources_2.1.0/resources.jar;../../plugins/org.eclipse.text_2.1.0/bin;../../plugins/org.eclipse.jface_2.1.0/bin;../../plugins/org.eclipse.ui.workbench_2.1.0/bin;../../plugins/org.eclipse.swt.win32_2.1.0/ws/${ws}/swt.jar;../../plugins/org.eclipse.ui.editors_2.1.0/editors.jar;../../plugins/org.eclipse.text_2.1.0/text.jar"> + <javac destdir="${temp.folder}/phpeclipsesql.jar.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bootclasspath}" classpath="../../plugins/org.eclipse.core.boot_2.1.3/bin;../../plugins/org.eclipse.core.boot_2.1.3/boot.jar;../../plugins/org.eclipse.core.runtime_2.1.1/bin;../../plugins/org.eclipse.core.runtime_2.1.1/runtime.jar;../../plugins/org.apache.xerces_4.0.13/bin;../../plugins/org.apache.xerces_4.0.13/xmlParserAPIs.jar;../../plugins/org.apache.xerces_4.0.13/xercesImpl.jar;../../plugins/org.eclipse.core.resources_2.1.1/bin;../../plugins/org.eclipse.core.resources_2.1.1/resources.jar;../../plugins/org.eclipse.core.resources.win32_2.1.0/resources.jar;../../plugins/org.eclipse.swt_2.1.3/bin;../../plugins/org.eclipse.swt_2.1.3/ws/${ws}/swt.jar;../../plugins/org.eclipse.swt.win32_2.1.2/ws/${ws}/swt.jar;../../plugins/org.eclipse.ui_2.1.1/bin;../../plugins/org.eclipse.ui_2.1.1/ui.jar;../../plugins/org.eclipse.update.core_2.1.0/bin;../../plugins/org.eclipse.update.core_2.1.0/updatecore.jar;../../plugins/org.eclipse.update.core.win32_2.1.0/updatecore.jar;../../plugins/org.eclipse.help_2.1.2/bin;../../plugins/org.eclipse.help_2.1.2/help.jar;../../plugins/org.apache.lucene_1.2.1/bin;../../plugins/org.apache.lucene_1.2.1/parser.jar;../../plugins/org.apache.lucene_1.2.1/lucene-1.2.jar;../../plugins/org.eclipse.help.appserver_2.1.0/bin;../../plugins/org.eclipse.help.appserver_2.1.0/appserver.jar;../../plugins/org.eclipse.text_2.1.0/bin;../../plugins/org.eclipse.text_2.1.0/text.jar;../../plugins/org.eclipse.jface_2.1.1/bin;../../plugins/org.eclipse.jface_2.1.1/jface.jar;../../plugins/org.eclipse.jface.text_2.1.0/bin;../../plugins/org.eclipse.jface.text_2.1.0/jfacetext.jar;../../plugins/org.eclipse.ui.views_2.1.0/bin;../../plugins/org.eclipse.ui.views_2.1.0/views.jar;../../plugins/org.eclipse.ui.workbench_2.1.1/bin;../../plugins/org.eclipse.ui.workbench_2.1.1/workbench.jar;../../plugins/org.eclipse.ui.win32_2.1.0/workbench.jar;../../plugins/org.eclipse.ui.win32_2.1.0/bin;../../plugins/org.eclipse.ui.win32_2.1.0/workbenchwin32.jar;../../plugins/org.eclipse.ui.workbench.texteditor_2.1.0/bin;../../plugins/org.eclipse.ui.workbench.texteditor_2.1.0/texteditor.jar;../../plugins/org.eclipse.ui.editors_2.1.0/bin;../../plugins/org.eclipse.ui.editors_2.1.0/editors.jar"> <src path="src/"/> </javac> <!-- copy necessary resources --> @@ -52,14 +55,14 @@ <delete dir="${temp.folder}/phpeclipsesql.jar.bin"/> </target> - <target name="phpeclipsesqlsrc.zip" depends="init" unless="phpeclipsesqlsrc.zip"> + <target name="phpeclipsesqlsrc.zip" depends="init" unless="phpeclipsesql.jar"> <mkdir dir="${build.result.folder}"/> - <zip zipfile="${build.result.folder}/phpeclipsesqlsrc.zip" filesonly="false"> + <zip zipfile="${build.result.folder}/phpeclipsesqlsrc.zip" filesonly="false" update="no"> <fileset dir="src/" includes="**/*.java"/> </zip> </target> - <target name="build.jars" depends="init"> + <target name="build.jars" depends="init" description="Build all the jars for the plug-in: net.sourceforge.phpeclipse.sql."> <available property="phpeclipsesql.jar" file="${build.result.folder}/phpeclipsesql.jar"/> <antcall target="phpeclipsesql.jar"/> </target> @@ -82,7 +85,7 @@ <copy file="${temp.folder}/phpeclipsesql.jar.bin.log" todir="${destination.temp.folder}/${full.name}"/> </target> - <target name="clean" depends="init"> + <target name="clean" depends="init" description="Clean the plug-in: net.sourceforge.phpeclipse.sql of all the zips, jars and logs created."> <delete file="${build.result.folder}/phpeclipsesql.jar"/> <delete file="${build.result.folder}/phpeclipsesqlsrc.zip"/> <delete file="${plugin.destination}/${full.name}.jar"/> @@ -91,10 +94,11 @@ </target> <target name="refresh" depends="init" if="eclipse.running"> - <eclipse.refreshLocal resource="${plugin}" depth="infinite"/> + <eclipse.convertPath fileSystemPath="C:\eclipse213\workspace\net.sourceforge.phpeclipse.sql\" property="resourcePath"/> + <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/> </target> - <target name="zip.plugin" depends="init"> + <target name="zip.plugin" depends="init" description="Create a zip containing all the elements for the plug-in: net.sourceforge.phpeclipse.sql."> <delete dir="${temp.folder}"/> <mkdir dir="${temp.folder}"/> <antcall target="build.jars"/> @@ -108,8 +112,11 @@ <delete> <fileset dir="${temp.folder}" includes="**/*.bin.log"/> </delete> - <zip zipfile="${plugin.destination}/${full.name}.zip" basedir="${temp.folder}" filesonly="true"/> + <antcall target="zip.folder"/> <delete dir="${temp.folder}"/> </target> + <target name="zip.folder" depends="init"> + <zip zipfile="${plugin.destination}/${full.name}.zip" basedir="${temp.folder}" filesonly="true" update="no" excludes="**/*.bin.log"/> + </target> </project> diff --git a/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/PHPEclipseSQLPlugin.java b/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/PHPEclipseSQLPlugin.java index 9fbd506..5926e37 100644 --- a/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/PHPEclipseSQLPlugin.java +++ b/archive/net.sourceforge.phpeclipse.sql/src/net/sourceforge/phpdt/sql/PHPEclipseSQLPlugin.java @@ -41,280 +41,232 @@ import net.sourceforge.phpdt.sql.view.bookmark.SubsetContentProvider; /** * @author */ -public class PHPEclipseSQLPlugin -extends AbstractUIPlugin -implements IConstants { +public class PHPEclipseSQLPlugin extends AbstractUIPlugin implements IConstants { - private static PHPEclipseSQLPlugin plugin; - public final static String PLUGIN_ID = "net.sourceforge.phpeclipse.sql"; + private static PHPEclipseSQLPlugin plugin; + public final static String PLUGIN_ID = "net.sourceforge.phpeclipse.sql"; - public PHPEclipseSQLPlugin(IPluginDescriptor descriptor) { - super(descriptor); - plugin = this; - } + public PHPEclipseSQLPlugin(IPluginDescriptor descriptor) { + super(descriptor); + plugin = this; + } - public static PHPEclipseSQLPlugin getDefault() { - return plugin; - } - /** - * Reads the PHPEclipseSQL Plugin state from a file. The file has been created with writeImportantState - * @param target - */ - protected void readStateFrom(File target) { - String fileName = target.getName(); -// if (!fileName.endsWith("ext")) { //$NON-NLS-1$ -// // It's the 2.0 format for preferences -// BookmarkContentProvider.getInstance().load(target); -// } else { - //It's the 2.1 format for preferences and subsets - XmlDocument doc = new XmlDocument(); - FileInputStream source = null; - try { - source = new FileInputStream(target); - } catch (FileNotFoundException e1) { - e1.printStackTrace(); - return; - } - DocumentBuilderFactory factory = - DocumentBuilderFactory.newInstance(); - DocumentBuilder parser; - try { - parser = factory.newDocumentBuilder(); - doc = (XmlDocument) parser.parse(source); - } catch (ParserConfigurationException e) { - e.printStackTrace(); - return; - } catch (SAXException e) { - e.printStackTrace(); - return; - } catch (IOException e) { - e.printStackTrace(); - return; - } - Element root = doc.getDocumentElement(); - BookmarkContentProvider.getInstance().importXML(root); - SubsetContentProvider.getInstance().importXML(root); -// } - } + public static PHPEclipseSQLPlugin getDefault() { + return plugin; + } + /** + * Reads the PHPEclipseSQL Plugin state from a file. The file has been created with writeImportantState + * @param target + */ + protected void readStateFrom(File target) { + String fileName = target.getName(); + // if (!fileName.endsWith("ext")) { //$NON-NLS-1$ + // // It's the 2.0 format for preferences + // BookmarkContentProvider.getInstance().load(target); + // } else { + //It's the 2.1 format for preferences and subsets + XmlDocument doc = new XmlDocument(); + FileInputStream source = null; + try { + source = new FileInputStream(target); + } catch (FileNotFoundException e1) { + e1.printStackTrace(); + return; + } + DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); + DocumentBuilder parser; + try { + parser = factory.newDocumentBuilder(); + doc = (XmlDocument) parser.parse(source); + } catch (ParserConfigurationException e) { + e.printStackTrace(); + return; + } catch (SAXException e) { + e.printStackTrace(); + return; + } catch (IOException e) { + e.printStackTrace(); + return; + } + Element root = doc.getDocumentElement(); + BookmarkContentProvider.getInstance().importXML(root); + SubsetContentProvider.getInstance().importXML(root); + // } + } - public void startup() throws CoreException { - super.startup(); - ISaveParticipant saveParticipant = new PHPSQLSaveParticipant(); - ISavedState lastState = - ResourcesPlugin.getWorkspace().addSaveParticipant( - this, - saveParticipant); - if (lastState == null) - return; - IPath location = lastState.lookup(new Path("save")); - if (location == null) - return; - // the plugin instance should read any important state from the file. - File f = getStateLocation().append(location).toFile(); - readStateFrom(f); - } + public void startup() throws CoreException { + super.startup(); + ISaveParticipant saveParticipant = new PHPSQLSaveParticipant(); + ISavedState lastState = ResourcesPlugin.getWorkspace().addSaveParticipant(this, saveParticipant); + if (lastState == null) + return; + IPath location = lastState.lookup(new Path("save")); + if (location == null) + return; + // the plugin instance should read any important state from the file. + File f = getStateLocation().append(location).toFile(); + readStateFrom(f); + } - protected void writeImportantState(File target) { - XmlDocument doc = new XmlDocument(); - FileOutputStream out = null; - try { - out = new FileOutputStream(target); - } catch (FileNotFoundException e1) { - e1.printStackTrace(); - return; - } - Element root = (Element) doc.appendChild(doc.createElement(Messages.getString("ExportXMLAction.SavedData"))); //$NON-NLS-1$ + protected void writeImportantState(File target) { + XmlDocument doc = new XmlDocument(); + FileOutputStream out = null; + try { + out = new FileOutputStream(target); + } catch (FileNotFoundException e1) { + e1.printStackTrace(); + return; + } + Element root = (Element) doc.appendChild(doc.createElement(Messages.getString("ExportXMLAction.SavedData"))); //$NON-NLS-1$ - BookmarkContentProvider.getInstance().exportXML(root); - SubsetContentProvider.getInstance().exportXML(root); + BookmarkContentProvider.getInstance().exportXML(root); + SubsetContentProvider.getInstance().exportXML(root); - try { - doc.write(out); - out.close(); - } catch (IOException e) { - e.printStackTrace(); - } + try { + doc.write(out); + out.close(); + } catch (IOException e) { + e.printStackTrace(); + } - } + } - /** - * Gets an image descriptof from a file in the icons directory - * @param name of the file to get - * @return ImageDescriptor or null if not found - */ - public static ImageDescriptor getImageDescriptor(String name) { - ImageDescriptor descriptor = null; - try { - URL installURL = - PHPEclipseSQLPlugin - .getDefault() - .getDescriptor() - .getInstallURL(); - URL url = new URL(installURL, "icons/" + name); - descriptor = ImageDescriptor.createFromURL(url); - } catch (Exception e) { - e.printStackTrace(); - } - return descriptor; - } - public static Image getImage(String name) { - return getImageDescriptor(name).createImage(); - } + /** + * Gets an image descriptof from a file in the icons directory + * @param name of the file to get + * @return ImageDescriptor or null if not found + */ + public static ImageDescriptor getImageDescriptor(String name) { + ImageDescriptor descriptor = null; + try { + URL installURL = PHPEclipseSQLPlugin.getDefault().getDescriptor().getInstallURL(); + URL url = new URL(installURL, "icons/" + name); + descriptor = ImageDescriptor.createFromURL(url); + } catch (Exception e) { + e.printStackTrace(); + } + return descriptor; + } + public static Image getImage(String name) { + return getImageDescriptor(name).createImage(); + } - public void dispose() throws CoreException { - } + public void dispose() throws CoreException { + } - protected void initializeDefaultPluginPreferences() { - RGB BACKGROUND = new RGB(255, 255, 255); - RGB COMMENT = new RGB(88, 148, 64); - RGB KEYWORD = new RGB(126, 0, 75); - RGB STRING = new RGB(0, 0, 255); - RGB NUMERIC = new RGB(255, 0, 0); - RGB DEFAULT = new RGB(0, 0, 0); - IPreferenceStore store = getPreferenceStore(); - PreferenceConverter.setDefault( - store, - "phpeclipse.sql.background.color", - BACKGROUND); - PreferenceConverter.setDefault( - store, - "phpeclipse.sql.text.color", - DEFAULT); - PreferenceConverter.setDefault( - store, - "phpeclipse.sql.keyword.color", - KEYWORD); - PreferenceConverter.setDefault( - store, - "phpeclipse.sql.comment.color", - COMMENT); - PreferenceConverter.setDefault( - store, - "phpeclipse.sql.string.color", - STRING); - PreferenceConverter.setDefault( - store, - "phpeclipse.sql.numeric.color", - NUMERIC); - getPreferenceStore().setDefault("phpeclipse.sql.text.bold", false); - getPreferenceStore().setDefault("phpeclipse.sql.keyword.bold", true); - getPreferenceStore().setDefault("phpeclipse.sql.string.bold", false); - getPreferenceStore().setDefault("phpeclipse.sql.comment.bold", false); - getPreferenceStore().setDefault("phpeclipse.sql.numeric.bold", false); - PreferenceConverter.setDefault(getPreferenceStore(), "phpeclipsesql.font", (FontData) null); //$NON-NLS-1$ - } + protected void initializeDefaultPluginPreferences() { + RGB BACKGROUND = new RGB(255, 255, 255); + RGB COMMENT = new RGB(88, 148, 64); + RGB KEYWORD = new RGB(126, 0, 75); + RGB STRING = new RGB(0, 0, 255); + RGB NUMERIC = new RGB(255, 0, 0); + RGB DEFAULT = new RGB(0, 0, 0); + IPreferenceStore store = getPreferenceStore(); + PreferenceConverter.setDefault(store, "phpeclipse.sql.background.color", BACKGROUND); + PreferenceConverter.setDefault(store, "phpeclipse.sql.text.color", DEFAULT); + PreferenceConverter.setDefault(store, "phpeclipse.sql.keyword.color", KEYWORD); + PreferenceConverter.setDefault(store, "phpeclipse.sql.comment.color", COMMENT); + PreferenceConverter.setDefault(store, "phpeclipse.sql.string.color", STRING); + PreferenceConverter.setDefault(store, "phpeclipse.sql.numeric.color", NUMERIC); + getPreferenceStore().setDefault("phpeclipse.sql.text.bold", false); + getPreferenceStore().setDefault("phpeclipse.sql.keyword.bold", true); + getPreferenceStore().setDefault("phpeclipse.sql.string.bold", false); + getPreferenceStore().setDefault("phpeclipse.sql.comment.bold", false); + getPreferenceStore().setDefault("phpeclipse.sql.numeric.bold", false); + PreferenceConverter.setDefault(getPreferenceStore(), "phpeclipsesql.font", (FontData) null); //$NON-NLS-1$ + getPreferenceStore().setDefault( + "phpeclipse.sql.select.template", + "$results = mysql_query(\"SELECT {0} FROM {1} WHERE {2} \");"); - public boolean showView(String view) { - IWorkbench workbench = getWorkbench(); - IWorkbenchWindow window = workbench.getActiveWorkbenchWindow(); - IWorkbenchPage page = window.getActivePage(); - IViewPart viewPart = null; - try { - viewPart = page.showView(view); - } catch (PartInitException e) { - e.printStackTrace(); - return false; - } + getPreferenceStore().setDefault( + "phpeclipse.sql.insert.template", + "$results = mysql_query(\"INSERT INTO {0} ({1}) VALUES {2} \");"); - getPreferenceStore().setDefault( - "phpeclipse.sql.select.template", - "$results = mysql_query(\"SELECT {0} FROM {1} WHERE {2} \");"); + getPreferenceStore().setDefault("phpeclipse.sql.update.template", "$results = mysql_query(\"UPDATE {0} SET {1} WHERE {2} \");"); - getPreferenceStore().setDefault( - "phpeclipse.sql.insert.template", - "$results = mysql_query(\"INSERT INTO {0} ({1}) VALUES {2} \");"); + getPreferenceStore().setDefault("phpeclipse.sql.delete.template", "$results = mysql_query(\"DELETE FROM {0} WHERE {1} \");"); - getPreferenceStore().setDefault( - "phpeclipse.sql.update.template", - "$results = mysql_query(\"UPDATE {0} SET {1} WHERE {2} \");"); + getPreferenceStore().setDefault("phpeclipse.sql.username.connect", "root"); - getPreferenceStore().setDefault( - "phpeclipse.sql.delete.template", - "$results = mysql_query(\"DELETE FROM {0} WHERE {1} \");"); + getPreferenceStore().setDefault("phpeclipse.sql.connect.connect", "jdbc:mysql://localhost/mysql"); - getPreferenceStore().setDefault( - "phpeclipse.sql.username.connect", - "root"); + getPreferenceStore().setDefault("phpeclipse.sql.driver.connect", "com.mysql.jdbc.Driver"); - getPreferenceStore().setDefault( - "phpeclipse.sql.connect.connect", - "jdbc:mysql://localhost/test"); + getPreferenceStore().setDefault("phpeclipse.sql.type.connect", "MySQL"); - getPreferenceStore().setDefault( - "phpeclipse.sql.driver.connect", - "com.mysql.jdbc.Driver"); + getPreferenceStore().setDefault( + "phpeclipse.sql.filename.connect", + "C:\\wampp2\\mysql\\lib\\mysql-connector.jar"); + } - getPreferenceStore().setDefault("phpeclipse.sql.type.connect", "MySQL"); + public boolean showView(String view) { + IWorkbench workbench = getWorkbench(); + IWorkbenchWindow window = workbench.getActiveWorkbenchWindow(); + IWorkbenchPage page = window.getActivePage(); + IViewPart viewPart = null; + try { + viewPart = page.showView(view); + } catch (PartInitException e) { + e.printStackTrace(); + return false; + } - getPreferenceStore().setDefault( - "phpeclipse.sql.filename.connect", - "C:\\apache\\mysql\\lib\\mysql-connector-java-2.0.14-bin.jar"); - - PreferenceConverter.setDefault( - getPreferenceStore(), - "phpeclipse.sql.font", - (FontData) null); - return(viewPart != null); - } + PreferenceConverter.setDefault(getPreferenceStore(), "phpeclipse.sql.font", (FontData) null); + return (viewPart != null); + } } class PHPSQLSaveParticipant implements ISaveParticipant, IConstants { - /** - * @see org.eclipse.core.resources.ISaveParticipant#doneSaving(ISaveContext) - */ - public void doneSaving(ISaveContext context) { - } + /** + * @see org.eclipse.core.resources.ISaveParticipant#doneSaving(ISaveContext) + */ + public void doneSaving(ISaveContext context) { + } - /** - * @see org.eclipse.core.resources.ISaveParticipant#prepareToSave(ISaveContext) - */ - public void prepareToSave(ISaveContext context) throws CoreException { - } + /** + * @see org.eclipse.core.resources.ISaveParticipant#prepareToSave(ISaveContext) + */ + public void prepareToSave(ISaveContext context) throws CoreException { + } - /** - * @see org.eclipse.core.resources.ISaveParticipant#rollback(ISaveContext) - */ - public void rollback(ISaveContext context) { - } + /** + * @see org.eclipse.core.resources.ISaveParticipant#rollback(ISaveContext) + */ + public void rollback(ISaveContext context) { + } - /** - * @see org.eclipse.core.resources.ISaveParticipant#saving(ISaveContext) - */ - public void saving(ISaveContext context) throws CoreException { - switch (context.getKind()) { - case ISaveContext.FULL_SAVE : - PHPEclipseSQLPlugin sqlPluginInstance = - PHPEclipseSQLPlugin.getDefault(); - // save the plug in state - if (BookmarkContentProvider.getInstance().hasChanged()) { - int saveNumber = context.getSaveNumber(); - String saveFileName = - "save " + Integer.toString(saveNumber); - File f = - sqlPluginInstance - .getStateLocation() - .append(saveFileName) - .toFile(); - // if we fail to write, an exception is thrown and we do not update the path - sqlPluginInstance.writeImportantState(f); - context.map(new Path("save"), new Path(saveFileName)); - context.needSaveNumber(); - } else { - if (DEBUG) { - System.out.println("Not saving unchanged bookmarks"); - } - } - break; - case ISaveContext.PROJECT_SAVE : - // get the project related to this save operation - //IProject project = context.getProject(); - // save its information, if necessary - break; - case ISaveContext.SNAPSHOT : - // This operation needs to be really fast because - // snapshots can be requested frequently by the - // workspace. - break; - } - } + /** + * @see org.eclipse.core.resources.ISaveParticipant#saving(ISaveContext) + */ + public void saving(ISaveContext context) throws CoreException { + switch (context.getKind()) { + case ISaveContext.FULL_SAVE : + PHPEclipseSQLPlugin sqlPluginInstance = PHPEclipseSQLPlugin.getDefault(); + // save the plug in state + if (BookmarkContentProvider.getInstance().hasChanged()) { + int saveNumber = context.getSaveNumber(); + String saveFileName = "save " + Integer.toString(saveNumber); + File f = sqlPluginInstance.getStateLocation().append(saveFileName).toFile(); + // if we fail to write, an exception is thrown and we do not update the path + sqlPluginInstance.writeImportantState(f); + context.map(new Path("save"), new Path(saveFileName)); + context.needSaveNumber(); + } else { + if (DEBUG) { + System.out.println("Not saving unchanged bookmarks"); + } + } + break; + case ISaveContext.PROJECT_SAVE : + // get the project related to this save operation + //IProject project = context.getProject(); + // save its information, if necessary + break; + case ISaveContext.SNAPSHOT : + // This operation needs to be really fast because + // snapshots can be requested frequently by the + // workspace. + break; + } + } } diff --git a/net.sourceforge.phpeclipse.phphelp/.classpath b/net.sourceforge.phpeclipse.phphelp/.classpath index 6696591..35bb74e 100644 --- a/net.sourceforge.phpeclipse.phphelp/.classpath +++ b/net.sourceforge.phpeclipse.phphelp/.classpath @@ -2,21 +2,21 @@ <classpath> <classpathentry kind="src" path="src/"/> <classpathentry kind="var" - path="ECLIPSE_HOME/plugins/org.eclipse.core.resources_2.1.0/resources.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.resources_2.1.0/resourcessrc.zip"/> + path="ECLIPSE_HOME/plugins/org.eclipse.core.resources_2.1.1/resources.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.resources_2.1.1/resourcessrc.zip"/> <classpathentry kind="var" - path="ECLIPSE_HOME/plugins/org.eclipse.ui_2.1.0/ui.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui_2.1.0/uisrc.zip"/> + path="ECLIPSE_HOME/plugins/org.eclipse.ui_2.1.1/ui.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui_2.1.1/uisrc.zip"/> <classpathentry kind="var" - path="ECLIPSE_HOME/plugins/org.eclipse.swt.win32_2.1.0/ws/win32/swt.jar" sourcepath="ORG_ECLIPSE_PLATFORM_WIN32_SOURCE_SRC/org.eclipse.swt.win32_2.1.0/ws/win32/swtsrc.zip"/> + path="ECLIPSE_HOME/plugins/org.eclipse.swt.win32_2.1.2/ws/win32/swt.jar" sourcepath="ORG_ECLIPSE_PLATFORM_WIN32_SOURCE_SRC/org.eclipse.swt.win32_2.1.2/ws/win32/swtsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.text_2.1.0/text.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.text_2.1.0/textsrc.zip"/> <classpathentry kind="var" - path="ECLIPSE_HOME/plugins/org.eclipse.jface_2.1.0/jface.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.jface_2.1.0/jfacesrc.zip"/> + path="ECLIPSE_HOME/plugins/org.eclipse.jface_2.1.1/jface.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.jface_2.1.1/jfacesrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jface.text_2.1.0/jfacetext.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.jface.text_2.1.0/jfacetextsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.views_2.1.0/views.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.views_2.1.0/viewssrc.zip"/> <classpathentry kind="var" - path="ECLIPSE_HOME/plugins/org.eclipse.ui.workbench_2.1.0/workbench.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.workbench_2.1.0/workbenchsrc.zip"/> + path="ECLIPSE_HOME/plugins/org.eclipse.ui.workbench_2.1.1/workbench.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.workbench_2.1.1/workbenchsrc.zip"/> <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.win32_2.1.0/workbenchwin32.jar" sourcepath="ORG_ECLIPSE_PLATFORM_WIN32_SOURCE_SRC/org.eclipse.ui.win32_2.1.0/workbenchwin32src.zip"/> <classpathentry kind="var" @@ -24,12 +24,12 @@ <classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.ui.editors_2.1.0/editors.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.ui.editors_2.1.0/editorssrc.zip"/> <classpathentry kind="var" - path="ECLIPSE_HOME/plugins/org.eclipse.help_2.1.0/help.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.help_2.1.0/helpsrc.zip"/> - <classpathentry kind="src" path="/net.sourceforge.phpeclipse"/> + path="ECLIPSE_HOME/plugins/org.eclipse.help_2.1.2/help.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.help_2.1.2/helpsrc.zip"/> + <classpathentry kind="src" path="/net.sourceforge.phpeclipse213"/> <classpathentry kind="var" - path="ECLIPSE_HOME/plugins/org.eclipse.core.runtime_2.1.0/runtime.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.runtime_2.1.0/runtimesrc.zip"/> + path="ECLIPSE_HOME/plugins/org.eclipse.core.boot_2.1.3/boot.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.boot_2.1.3/bootsrc.zip"/> <classpathentry kind="var" - path="ECLIPSE_HOME/plugins/org.eclipse.core.boot_2.1.0/boot.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.boot_2.1.0/bootsrc.zip"/> - <classpathentry kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/> + path="ECLIPSE_HOME/plugins/org.eclipse.core.runtime_2.1.1/runtime.jar" sourcepath="ORG_ECLIPSE_PLATFORM_SOURCE_SRC/org.eclipse.core.runtime_2.1.1/runtimesrc.zip"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="output" path="bin"/> </classpath> diff --git a/net.sourceforge.phpeclipse.phphelp/.project b/net.sourceforge.phpeclipse.phphelp/.project index 39448c4..ceb9e2c 100644 --- a/net.sourceforge.phpeclipse.phphelp/.project +++ b/net.sourceforge.phpeclipse.phphelp/.project @@ -3,7 +3,7 @@ <name>net.sourceforge.phpeclipse.phphelp</name> <comment></comment> <projects> - <project>net.sourceforge.phpeclipse</project> + <project>net.sourceforge.phpeclipse213</project> </projects> <buildSpec> <buildCommand> diff --git a/net.sourceforge.phpeclipse.phphelp/build.xml b/net.sourceforge.phpeclipse.phphelp/build.xml index feaefb6..8f6a806 100644 --- a/net.sourceforge.phpeclipse.phphelp/build.xml +++ b/net.sourceforge.phpeclipse.phphelp/build.xml @@ -36,9 +36,6 @@ <target name="gather.bin.parts" depends="init" if="destination.temp.folder"> <mkdir dir="${destination.temp.folder}/${full.name}"/> <copy file="${build.result.folder}/phphelp.jar" todir="${destination.temp.folder}/${full.name}"/> - <copy file="${basedir}/phphelp.xml" todir="${destination.temp.folder}/${full.name}"/> - <copy file="${basedir}/plugin.properties" todir="${destination.temp.folder}/${full.name}"/> - <copy file="${basedir}/plugin.xml" todir="${destination.temp.folder}/${full.name}"/> </target> <target name="phphelp.jar" depends="init" unless="phphelp.jar" description="Create jar: phphelp.jar."> @@ -46,7 +43,7 @@ <delete dir="${temp.folder}/phphelp.jar.bin"/> <mkdir dir="${temp.folder}/phphelp.jar.bin"/> <!-- compile the source code --> - <javac destdir="${temp.folder}/phphelp.jar.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bootclasspath}" classpath="../../plugins/org.eclipse.core.boot_2.1.0/bin;../../plugins/org.eclipse.core.boot_2.1.0/boot.jar;../../plugins/org.eclipse.core.runtime_2.1.0/bin;../../plugins/org.eclipse.core.runtime_2.1.0/runtime.jar;../../plugins/org.apache.xerces_4.0.7/bin;../../plugins/org.apache.xerces_4.0.7/xmlParserAPIs.jar;../../plugins/org.apache.xerces_4.0.7/xercesImpl.jar;../../plugins/org.eclipse.core.resources_2.1.0/bin;../../plugins/org.eclipse.core.resources_2.1.0/resources.jar;../../plugins/org.eclipse.core.resources.win32_2.1.0/resources.jar;../../plugins/org.eclipse.ui_2.1.0/bin;../../plugins/org.eclipse.ui_2.1.0/ui.jar;../../plugins/org.eclipse.update.core_2.1.0/bin;../../plugins/org.eclipse.update.core_2.1.0/updatecore.jar;../../plugins/org.eclipse.update.core.win32_2.1.0/updatecore.jar;../../plugins/org.eclipse.help_2.1.0/bin;../../plugins/org.eclipse.help_2.1.0/help.jar;../../plugins/org.apache.lucene_1.2.1/bin;../../plugins/org.apache.lucene_1.2.1/parser.jar;../../plugins/org.apache.lucene_1.2.1/lucene-1.2.jar;../../plugins/org.eclipse.help.appserver_2.1.0/bin;../../plugins/org.eclipse.help.appserver_2.1.0/appserver.jar;../../plugins/org.eclipse.swt_2.1.0/bin;../../plugins/org.eclipse.swt_2.1.0/ws/${ws}/swt.jar;../../plugins/org.eclipse.swt.win32_2.1.0/ws/${ws}/swt.jar;../../plugins/org.eclipse.text_2.1.0/bin;../../plugins/org.eclipse.text_2.1.0/text.jar;../../plugins/org.eclipse.jface_2.1.0/bin;../../plugins/org.eclipse.jface_2.1.0/jface.jar;../../plugins/org.eclipse.jface.text_2.1.0/bin;../../plugins/org.eclipse.jface.text_2.1.0/jfacetext.jar;../../plugins/org.eclipse.ui.views_2.1.0/bin;../../plugins/org.eclipse.ui.views_2.1.0/views.jar;../../plugins/org.eclipse.ui.workbench_2.1.0/bin;../../plugins/org.eclipse.ui.workbench_2.1.0/workbench.jar;../../plugins/org.eclipse.ui.win32_2.1.0/workbench.jar;../../plugins/org.eclipse.ui.win32_2.1.0/bin;../../plugins/org.eclipse.ui.win32_2.1.0/workbenchwin32.jar;../../plugins/org.eclipse.ui.workbench.texteditor_2.1.0/bin;../../plugins/org.eclipse.ui.workbench.texteditor_2.1.0/texteditor.jar;../../plugins/org.eclipse.ui.editors_2.1.0/bin;../../plugins/org.eclipse.ui.editors_2.1.0/editors.jar;../net.sourceforge.phpeclipse/bin;../net.sourceforge.phpeclipse/phpeclipse.jar;../../plugins/org.eclipse.debug.ui_2.1.0/bin;../../plugins/org.eclipse.debug.ui_2.1.0/dtui.jar;../../plugins/org.eclipse.debug.core_2.1.0/bin;../../plugins/org.eclipse.debug.core_2.1.0/dtcore.jar;../../plugins/org.junit_3.8.1/bin;../../plugins/org.junit_3.8.1/junit.jar;../../plugins/org.eclipse.update.ui_2.1.0/bin;../../plugins/org.eclipse.update.ui_2.1.0/updateui.jar;../../plugins/org.eclipse.update.ui.win32_2.1.0/updateui.jar;../../plugins/org.eclipse.update.ui.win32_2.1.0/bin;../../plugins/org.eclipse.update.ui.win32_2.1.0/updateui32.jar;../../plugins/org.eclipse.update.ui.forms_2.1.0/bin;../../plugins/org.eclipse.update.ui.forms_2.1.0/forms.jar"> + <javac destdir="${temp.folder}/phphelp.jar.bin" failonerror="${javacFailOnError}" verbose="${javacVerbose}" debug="${javacDebugInfo}" includeAntRuntime="no" bootclasspath="${bootclasspath}" classpath="../../plugins/org.eclipse.core.boot_2.1.3/bin;../../plugins/org.eclipse.core.boot_2.1.3/boot.jar;../../plugins/org.eclipse.core.runtime_2.1.1/bin;../../plugins/org.eclipse.core.runtime_2.1.1/runtime.jar;../../plugins/org.apache.xerces_4.0.13/bin;../../plugins/org.apache.xerces_4.0.13/xmlParserAPIs.jar;../../plugins/org.apache.xerces_4.0.13/xercesImpl.jar;../../plugins/org.eclipse.core.resources_2.1.1/bin;../../plugins/org.eclipse.core.resources_2.1.1/resources.jar;../../plugins/org.eclipse.core.resources.win32_2.1.0/resources.jar;../../plugins/org.eclipse.ui_2.1.1/bin;../../plugins/org.eclipse.ui_2.1.1/ui.jar;../../plugins/org.eclipse.update.core_2.1.0/bin;../../plugins/org.eclipse.update.core_2.1.0/updatecore.jar;../../plugins/org.eclipse.update.core.win32_2.1.0/updatecore.jar;../../plugins/org.eclipse.help_2.1.2/bin;../../plugins/org.eclipse.help_2.1.2/help.jar;../../plugins/org.apache.lucene_1.2.1/bin;../../plugins/org.apache.lucene_1.2.1/parser.jar;../../plugins/org.apache.lucene_1.2.1/lucene-1.2.jar;../../plugins/org.eclipse.help.appserver_2.1.0/bin;../../plugins/org.eclipse.help.appserver_2.1.0/appserver.jar;../../plugins/org.eclipse.swt_2.1.3/bin;../../plugins/org.eclipse.swt_2.1.3/ws/${ws}/swt.jar;../../plugins/org.eclipse.swt.win32_2.1.2/ws/${ws}/swt.jar;../../plugins/org.eclipse.text_2.1.0/bin;../../plugins/org.eclipse.text_2.1.0/text.jar;../../plugins/org.eclipse.jface_2.1.1/bin;../../plugins/org.eclipse.jface_2.1.1/jface.jar;../../plugins/org.eclipse.jface.text_2.1.0/bin;../../plugins/org.eclipse.jface.text_2.1.0/jfacetext.jar;../../plugins/org.eclipse.ui.views_2.1.0/bin;../../plugins/org.eclipse.ui.views_2.1.0/views.jar;../../plugins/org.eclipse.ui.workbench_2.1.1/bin;../../plugins/org.eclipse.ui.workbench_2.1.1/workbench.jar;../../plugins/org.eclipse.ui.win32_2.1.0/workbench.jar;../../plugins/org.eclipse.ui.win32_2.1.0/bin;../../plugins/org.eclipse.ui.win32_2.1.0/workbenchwin32.jar;../../plugins/org.eclipse.ui.workbench.texteditor_2.1.0/bin;../../plugins/org.eclipse.ui.workbench.texteditor_2.1.0/texteditor.jar;../../plugins/org.eclipse.ui.editors_2.1.0/bin;../../plugins/org.eclipse.ui.editors_2.1.0/editors.jar;../net.sourceforge.phpeclipse213/bin;../net.sourceforge.phpeclipse213/phpeclipse.jar;../../plugins/org.eclipse.ui.externaltools_2.1.1/bin;../../plugins/org.eclipse.ui.externaltools_2.1.1/externaltools.jar;../../plugins/org.apache.ant_1.5.3/bin;../../plugins/org.apache.ant_1.5.3/ant.jar;../../plugins/org.apache.ant_1.5.3/optional.jar;../../plugins/org.eclipse.ant.core_2.1.3/bin;../../plugins/org.eclipse.ant.core_2.1.3/antsupport.jar;../../plugins/org.eclipse.debug.core_2.1.2/bin;../../plugins/org.eclipse.debug.core_2.1.2/dtcore.jar;../../plugins/org.eclipse.debug.ui_2.1.2.1/bin;../../plugins/org.eclipse.debug.ui_2.1.2.1/dtui.jar;../../plugins/org.eclipse.search_2.1.1/bin;../../plugins/org.eclipse.search_2.1.1/search.jar;../../plugins/org.eclipse.update.ui_2.1.2/bin;../../plugins/org.eclipse.update.ui_2.1.2/updateui.jar;../../plugins/org.eclipse.update.ui.win32_2.1.0/updateui.jar;../../plugins/org.eclipse.update.ui.win32_2.1.0/bin;../../plugins/org.eclipse.update.ui.win32_2.1.0/updateui32.jar;../../plugins/org.eclipse.update.ui.forms_2.1.0/bin;../../plugins/org.eclipse.update.ui.forms_2.1.0/forms.jar"> <src path="src/"/> </javac> <!-- copy necessary resources --> @@ -97,7 +94,7 @@ </target> <target name="refresh" depends="init" if="eclipse.running"> - <eclipse.convertPath fileSystemPath="D:\eclipse_21\workspace\net.sourceforge.phpeclipse.phphelp\" property="resourcePath"/> + <eclipse.convertPath fileSystemPath="C:\eclipse213\workspace\net.sourceforge.phpeclipse.phphelp\" property="resourcePath"/> <eclipse.refreshLocal resource="${resourcePath}" depth="infinite"/> </target> diff --git a/net.sourceforge.phpeclipse.phphelp/src/net/sourceforge/phpdt/phphelp/PHPHelpPlugin.java b/net.sourceforge.phpeclipse.phphelp/src/net/sourceforge/phpdt/phphelp/PHPHelpPlugin.java index f12c1f9..9ddc55a 100644 --- a/net.sourceforge.phpeclipse.phphelp/src/net/sourceforge/phpdt/phphelp/PHPHelpPlugin.java +++ b/net.sourceforge.phpeclipse.phphelp/src/net/sourceforge/phpdt/phphelp/PHPHelpPlugin.java @@ -121,7 +121,7 @@ public class PHPHelpPlugin extends AbstractUIPlugin { if (windowsSystem.equals(BootLoader.WS_WIN32)) { store.setDefault(PHP_CHM_ENABLED, "false"); - store.setDefault(PHP_CHM_FILE, ""); + store.setDefault(PHP_CHM_FILE, "c:\\wampp2\\php\\php_manual_en.chm"); store.setDefault(PHP_CHM_COMMAND, "hh.exe \"mk:@MSITStore:{0}::/en/function.{1}.html\""); } else { store.setDefault(PHP_CHM_ENABLED, "false");