Update of /cvsroot/easystruts/net.sf.easystruts/src/com/cross/generator/jdt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6376/src/com/cross/generator/jdt
Modified Files:
JdtSimpleResource.java
Log Message:
Fixed a lot of compilation errors. Still ~ 400 of them (was 650 before). This requires the plugin "org.eclipse.update.ui.forms", which is not in 3.0 or 3.1 anymore. A solution is to take it from CVS (tag R2_1_3).
Index: JdtSimpleResource.java
===================================================================
RCS file: /cvsroot/easystruts/net.sf.easystruts/src/com/cross/generator/jdt/JdtSimpleResource.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** JdtSimpleResource.java 15 Apr 2005 04:26:12 -0000 1.1
--- JdtSimpleResource.java 27 Apr 2005 05:46:57 -0000 1.2
***************
*** 59,62 ****
--- 59,63 ----
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IResourceStatus;
+ import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
***************
*** 74,77 ****
--- 75,79 ----
import org.eclipse.ui.actions.WorkspaceModifyOperation;
import org.eclipse.ui.dialogs.ContainerGenerator;
+ import org.eclipse.ui.ide.IDE;
import org.eclipse.ui.internal.WorkbenchMessages;
import org.eclipse.ui.internal.WorkbenchPlugin;
***************
*** 121,126 ****
try {
IWorkbenchPage page = dw.getActivePage();
if (page != null)
! page.openEditor(file);
} catch (PartInitException e) {
DialogUtil.openError(dw.getShell(), "Error", //$NON-NLS-1$
--- 123,129 ----
try {
IWorkbenchPage page = dw.getActivePage();
+
if (page != null)
! IDE.openEditor(page, file);
} catch (PartInitException e) {
DialogUtil.openError(dw.getShell(), "Error", //$NON-NLS-1$
***************
*** 171,175 ****
}
protected IFile createFileHandle(IPath filePath) {
! return WorkbenchPlugin.getPluginWorkspace().getRoot().getFile(filePath);
}
protected InputStream getInitialContents() {
--- 174,178 ----
}
protected IFile createFileHandle(IPath filePath) {
! return ResourcesPlugin.getWorkspace().getRoot().getFile(filePath);
}
protected InputStream getInitialContents() {
|