public EditorTopComponent(Diagram diagram) {
FilterChain filterChain = null;
FilterChain sequence = null;
FilterChainProvider provider = Lookup.getDefault().lookup(FilterChainProvider.class);
if (provider == null) {
filterChain = new FilterChain();
sequence = new FilterChain();
} else {
filterChain = provider.getFilterChain();
sequence = provider.getSequence();
}
setName(NbBundle.getMessage(EditorTopComponent.class, "CTL_EditorTopComponent"));
setToolTipText(NbBundle.getMessage(EditorTopComponent.class, "HINT_EditorTopComponent"));