import org.eclipse.core.runtime.Path;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.IDocument;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.swt.widgets.Shell;
import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.ide.IDE;
import org.eclipse.ui.texteditor.IDocumentProvider;
import org.eclipse.ui.texteditor.ITextEditor;
-
import org.tizen.dynamicanalysis.ide.eplugin.DALog;
public class OpenEditManager implements Runnable
}
getEditor().setHighlightRange(offset, 0, true); //move cursor
- FocusManager fm = new FocusManager();
- fm.start();
+// FocusManager fm = new FocusManager();
+// fm.start();
+ Display.getCurrent().syncExec(new Runnable() {
+ @Override
+ public void run() {
+ Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
+ if (null == shell.getDisplay().getActiveShell()) {
+ shell.open();
+ shell.setFullScreen(true);
+ shell.setFullScreen(false);
+ shell.setFocus();
+ shell.forceActive();
+ }
+ }
+ });
}
catch (IOException e)
{