Package com.volantis.mcs.eclipse.ab.editors.dom

Examples of com.volantis.mcs.eclipse.ab.editors.dom.ODOMEditorContext


            layoutOverview = new LayoutOverview(editorContext);
            indexOfOverviewPart = addPage(layoutOverview, getEditorInput());
            setPageText(indexOfOverviewPart, EditorMessages.getString(
                    RESOURCE_PREFIX + "overview.label"));

            final ODOMEditorContext odomEditorContext = getODOMEditorContext();
            layoutDesignPart =
                    new LayoutDesignPart(odomEditorContext, editorContext);
            indexOfDesignPart = addPage(layoutDesignPart, getEditorInput());
            setPageText(indexOfDesignPart, EditorMessages.getString(RESOURCE_PREFIX +
                    "design.label"));
View Full Code Here


    // javadoc inherited
    protected ODOMEditorContext createODOMEditorContext(String rootElementName,
                                                        final IFile file) {

        ODOMEditorContext context = null;
        try {
            final JAXPTransformerMetaFactory transformerMetaFactory =
                    new JAXPTransformerMetaFactory();
            MDPRArchiveAccessor archiveAccessor =
                    new MDPRArchiveAccessor(file.getLocation().toOSString(),
                            transformerMetaFactory);

            boolean ok = true;
            if (archiveAccessor.willBeModifiedOnLoad()) {
                // Inform the user that the device repository will need
                // to be modified and have them give permission.
                ok = confirmAndModify(archiveAccessor);
            }
            if (ok) {

                ODOMChangeSupport.ChangeSupportDisabledCommand command =
                        new ODOMChangeSupport.ChangeSupportDisabledCommand() {

                            public Object execute() {

                                ODOMEditorContext context = null;
                                try {
                                    boolean isAdminProject = file.getProject().
                                            hasNature(
                                                    DeviceEditorContext.MCS_ADMIN_NATURE_ID);
View Full Code Here


    // javadoc inherited
    protected void createPartControlImpl(Composite parent) {

        ODOMEditorContext context = getODOMEditorContext();

        context.getODOMSelectionManager().addSelectionListener(listener,
                FILTER);

        createMenu();
        createToolbar();
View Full Code Here

     * the structure in the SINGLE_PANE_RUN constant.
     * @return
     * @throws Exception
     */
    protected ODOMEditorContext createEditorContext() throws Exception {
        ODOMEditorContext context = ODOMEditorContext.
                createODOMEditorContext(null, new MockFile(FILE),
                        NULL_UR_MEMENTO_ORIGINATOR);
        ODOMElement document = createDocument(SINGLE_PANE_RUN);
        context.removeRootElement(context.getRootElement());
        context.addRootElement(document, null);
        return context;
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.ab.editors.dom.ODOMEditorContext

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.