* Contributors:
* Igor Malinin - initial contribution
*
- * $Id: OuterDocumentView.java,v 1.2 2004-09-22 18:51:51 jsurfer Exp $
+ * $Id: OuterDocumentView.java,v 1.3 2004-09-25 22:42:52 jsurfer Exp $
*/
package net.sourceforge.phpeclipse.ui.text.rules;
// TODO: move to a better place
getTracker().replace(event.getOffset(), event.getLength(),
event.getText());
+ } catch (IndexOutOfBoundsException x) {
+
} catch (BadLocationException x) {
}
public void setUrl(final String url) {
if (instance != null) {
- try {
- ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
- public void run(IProgressMonitor monitor) throws CoreException {
- instance.setURL(url);
- }
- }, null);
- } catch (CoreException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
+ instance.setURL(url);
+// try {
+// ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
+// public void run(IProgressMonitor monitor) throws CoreException {
+// instance.setURL(url);
+// }
+// }, null);
+// } catch (CoreException e) {
+// // TODO Auto-generated catch block
+// e.printStackTrace();
+// }
}
}
public void refresh() {
if (instance != null) {
- try {
- ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
- public void run(IProgressMonitor monitor) throws CoreException {
- instance.refresh();
- }
- }, null);
- } catch (CoreException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
+ instance.refresh();
+// try {
+// ResourcesPlugin.getWorkspace().run(new IWorkspaceRunnable() {
+// public void run(IProgressMonitor monitor) throws CoreException {
+// instance.refresh();
+// }
+// }, null);
+// } catch (CoreException e) {
+// // TODO Auto-generated catch block
+// e.printStackTrace();
+// }
}
}
}
\ No newline at end of file