Skip to content
Snippets Groups Projects
Commit 418c6b01 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT Committed by Patrick MADELA
Browse files

minor bug correction

parent 7a259b10
No related branches found
No related tags found
No related merge requests found
......@@ -75,8 +75,7 @@ public abstract class AbstractViewFactory implements IViewFactory {
// this method
}
@Override
public IView addView(IView view) {
protected IView addView(IView view, boolean warnSupport) {
IView added = null;
if (view != null) {
Object id = view.getId();
......@@ -89,7 +88,7 @@ public abstract class AbstractViewFactory implements IViewFactory {
}
}
}
if (added != null) {
if (warnSupport && (added != null)) {
synchronized (support) {
support.firePropertyChange(VIEWS, null, view);
}
......@@ -97,6 +96,11 @@ public abstract class AbstractViewFactory implements IViewFactory {
return added;
}
@Override
public IView addView(IView view) {
return addView(view, true);
}
@Override
public IView removeView(Object id) {
IView toRemove;
......@@ -122,7 +126,7 @@ public abstract class AbstractViewFactory implements IViewFactory {
public IView addView(String title, Icon icon, Component component, Object id, JComponent dockingArea) {
IView view = createView(title, icon, component, id);
updateViewForDockingArea(view, dockingArea);
return addView(view);
return addView(view, false);
}
protected abstract IView createView(String title, Icon icon, Component component, Object id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment