ExceptionUtils.logAndShowError("Cannot commit editor changes", e);
}
});
+ postCommit();
} catch (InvocationTargetException | InterruptedException e) {
LOGGER.error("Unexpected exception", e);
}
}
-
+
+ protected void postCommit() {}
+
protected void commit(WriteGraph graph) throws DatabaseException {
synchronized(syncMutex) {
if (DEBUG) System.out.println("Commit");
import java.util.Set;
import org.eclipse.jface.action.Action;
+import org.eclipse.jface.action.IAction;
import org.eclipse.jface.action.IMenuListener;
import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.MenuManager;
});
}
-
+
protected IMappingSchema<Resource, INode> getSchema(ReadGraph graph) throws DatabaseException {
IMappingSchema<Resource,INode> schema = SchemaBuilder.getSchema(graph);
return schema;
}
}
- private class FitToWindow extends Action {
+ protected class FitToWindow extends Action {
private List<INode> selected;
public FitToWindow(List<INode> selected) {
super("Fit to Window");
}
protected void createFocusMenu(IMenuManager m, List<INode> selected) {
- m.add(new FitToWindow(selected));
+ m.add(createFitToWindowAction(selected));
if (!selected.isEmpty()) {
List<vtkProp3D> actors = new ArrayList<>();
}
}
}
-
+
+ protected IAction createFitToWindowAction(List<INode> selected) {
+ return new FitToWindow(selected);
+ }
+
private IContentOutlinePage createOutline() {
if (rootNode == null || selectionProvider == null)
return null;