Examples of AddNoteToEntityAction


Examples of edu.stanford.bmir.protege.web.shared.notes.AddNoteToEntityAction



    private void doPost(NoteContent content) {
        ProjectId projectId = Application.get().getActiveProject().get();
        DispatchServiceManager.get().execute(new AddNoteToEntityAction(projectId, entity.get(), content), new AsyncCallback<AddNoteToEntityResult>() {
            @Override
            public void onFailure(Throwable caught) {
                GWT.log("Post failed", caught);
            }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.notes.AddNoteToEntityAction

            NoteEditorDialogController controller = new NoteEditorDialogController(new NoteContentEditorHandler() {
                @Override
                public void handleAccept(Optional<NoteContent> noteContent) {
                    if (noteContent.isPresent()) {
                        OWLEntity entity = DataFactory.getOWLClass(value);
                        DispatchServiceManager.get().execute(new AddNoteToEntityAction(getProjectId(), entity, noteContent.get()), new AsyncCallback<AddNoteToEntityResult>() {
                            @Override
                            public void onFailure(Throwable caught) {
                            }

                            @Override
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.notes.AddNoteToEntityAction

        NoteContent.Builder builder = NoteContent.builder();
        builder.setSubject("Reason for change: " + opDesc);
        builder.setBody(reasonForChange);
        final OWLClass cls = DataFactory.getOWLClass(newClass.getName());
        DispatchServiceManager.get().execute(new AddNoteToEntityAction(projectId, cls, builder.build()), new EmptySuccessWebProtegeCallback<AddNoteToEntityResult>());
    }
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.