Examples of ITorchlightEditorInput


Examples of net.sourceforge.torchlight.core.data.ITorchlightEditorInput

                ExtensionManager extMgr = ExtensionManager.getExtensionManager();

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

                ITorchlightEditorInput input = extMgr.createEditorInput(editorId, (Campaign)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

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

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

                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
Copyright © 2018 www.massapi.com. 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.