Package org.criticalfailure.torchlight.core.application.editors

Examples of org.criticalfailure.torchlight.core.application.editors.ITorchlightEditorInput


                ExtensionManager extMgr = ExtensionManager.getExtensionManager();

                String editorId = extMgr.findEditor("org.eclipse.ui.editors", item);
                logger.debug("editorId: " + editorId);

                ITorchlightEditorInput input = extMgr.createEditorInput(editorId, item);
                logger.trace("input: " + input);

                PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(input, editorId, true, IWorkbenchPage.MATCH_ID | IWorkbenchPage.MATCH_INPUT);
            }
            catch(Exception e)
View Full Code Here


                if(editorId.equals(id))
                {
                    logger.debug("found a matching editor ID");

                    ITorchlightEditorInput input = (ITorchlightEditorInput)element.createExecutableExtension("input-class");
                    logger.trace("input: " + input);
                    input.setObject(obj);

                    return input;
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.criticalfailure.torchlight.core.application.editors.ITorchlightEditorInput

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.