Examples of save()


Examples of org.locationtech.udig.issues.FeatureIssue.save()

        SimpleFeature feature=collection.features().next();
       
        IIssue original=new FeatureIssue(Priority.WARNING, "test description", layer, feature, "groupID"); //$NON-NLS-1$ //$NON-NLS-2$
        XMLMemento memento=XMLMemento.createWriteRoot("memento"); //$NON-NLS-1$
        XMLMemento viewMemento=XMLMemento.createWriteRoot("viewMemento"); //$NON-NLS-1$
        original.save(memento);
        original.getViewMemento(viewMemento);
        FeatureIssue restored=new FeatureIssue();
        restored.init(memento, viewMemento, original.getId(), original.getGroupId(), original.getBounds());
        restored.setDescription(original.getDescription());
        restored.setPriority(original.getPriority());
View Full Code Here

Examples of org.locationtech.udig.issues.IIssue.save()

        SimpleFeature feature=collection.features().next();
       
        IIssue original=new FeatureIssue(Priority.WARNING, "test description", layer, feature, "groupID"); //$NON-NLS-1$ //$NON-NLS-2$
        XMLMemento memento=XMLMemento.createWriteRoot("memento"); //$NON-NLS-1$
        XMLMemento viewMemento=XMLMemento.createWriteRoot("viewMemento"); //$NON-NLS-1$
        original.save(memento);
        original.getViewMemento(viewMemento);
        FeatureIssue restored=new FeatureIssue();
        restored.init(memento, viewMemento, original.getId(), original.getGroupId(), original.getBounds());
        restored.setDescription(original.getDescription());
        restored.setPriority(original.getPriority());
View Full Code Here

Examples of org.locationtech.udig.issues.IIssuesManager.save()

        final IIssuesManager issuesManager = IIssuesManager.defaultInstance;
        final Action action = new Action() {
            @Override
            public void runWithEvent(Event event) {
                try{
                    issuesManager.save(ProgressManager.instance().get());
                } catch (IOException e) {
                    IssuesActivator.log("", e); //$NON-NLS-1$
                }
            }
        };
View Full Code Here

Examples of org.locationtech.udig.issues.IRemoteIssuesList.save()

                        dirtyIssues.addAll(dirtyListener.dirtyIssues);
                        IRemoteIssuesList list = (IRemoteIssuesList) issuesList;
                        for( IIssue issue : dirtyListener.dirtyIssues ) {
                            result[0] = true;
                            try {
                                list.save(issue);
                                monitor.worked(1);
                            } catch (IOException e) {
                                exception[0] = e;
                            }
                        }
View Full Code Here

Examples of org.locationtech.udig.issues.internal.IssuesManager.save()

            assertEquals(IssuesManagerEventType.DIRTY_ISSUE, managerEvent[0].getType());
            assertEquals(Boolean.TRUE, managerEvent[0].getNewValue());
            managerEvent[0] = null;

            m.save(new NullProgressMonitor());

            assertEquals(IssuesManagerEventType.SAVE, managerEvent[0].getType());
            assertNull(managerEvent[0].getNewValue());
            assertEquals(createFeatureIssue, ((Collection) managerEvent[0].getOldValue())
                    .iterator().next());
View Full Code Here

Examples of org.locationtech.udig.printing.model.BoxPrinter.save()

     * @generated NOT
     */
    public String convertBoxPrinterToString(EDataType eDataType, Object instanceValue) {
        BoxPrinter printer=(BoxPrinter) instanceValue;
        XMLMemento memento = XMLMemento.createWriteRoot("boxPrinter"); //$NON-NLS-1$
        printer.save(memento);

        StringWriter writer = new StringWriter();
        writer.getBuffer().append(printer.getExtensionPointID());
        writer.getBuffer().append(SPLIT);
        writer.getBuffer().append(printer.getClass().getName());
View Full Code Here

Examples of org.locationtech.udig.project.StyleContent.save()

            return;
        }
        try {
            // save the state of the style
            XMLMemento memento = XMLMemento.createWriteRoot("styleEntry"); //$NON-NLS-1$
            styleContent.save(memento, style);

            StringWriter writer = new StringWriter();
            memento.save(writer);
            se.setMemento(writer.getBuffer().toString());
View Full Code Here

Examples of org.locationtech.udig.project.element.IGenericProjectElement.save()

     * @generated NO MORE
     */
    public String convertIGenericProjectElementToString(EDataType eDataType, Object instanceValue) {
        IGenericProjectElement elem = (IGenericProjectElement) instanceValue;
        UdigMemento memento = new UdigMemento();
        elem.save(memento);
        memento.putString(EXTENSION_POINT_ID_KEY, elem.getExtensionId());
        return memento.toString();
    }

    /**
 
View Full Code Here

Examples of org.locationtech.udig.project.internal.interceptor.CacheInterceptor.ViewStyleContent.save()

    @Test
    public void testStyleContentTestNulls() throws Exception {
        ViewStyleContent content = new ViewStyleContent();
        XMLMemento memento = XMLMemento.createWriteRoot("root");
        DefaultQuery start = new DefaultQuery();
        content.save(memento, start);
        Query loaded = (Query) content.load(memento);
        assertEquals(start, loaded);
    }

    @Test
View Full Code Here

Examples of org.melonbrew.fe.database.Account.save()

        Player player = event.getPlayer();

        Account account = database.getCachedAccount(player.getName(), player.getUniqueId().toString());

        if (account != null) {
            account.save(account.getMoney());

            database.removeCachedAccount(account);
        }
    }
}
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.