1 | try {↵ | | 1 | try {↵
|
2 | AbstractFolderOptionsPlugin plugin = (AbstractFolderOptionsPlugin) extension↵ | | 2 | AbstractFolderOptionsPlugin plugin = (AbstractFolderOptionsPlugin) extension↵
|
3 | .instanciateExtension(new Object[] { mediator });↵ | | 3 | .instanciateExtension(new Object[] { mediator });↵
|
|
4 | if ((state == STATE_BEFORE) && (stateString.equals("before"))) {↵ | | 4 | if ((state == STATE_BEFORE) && (stateString.equals("before"))) {↵
|
5 | plugin.loadOptionsFromXml(null);↵ | | 5 | plugin.loadOptionsFromXml(null);↵
|
6 | } else if ((state == STATE_AFTER)↵ | | 6 | } else if ((state == STATE_AFTER)↵
|
7 | && (stateString.equals("after"))) {↵ | | 7 | && (stateString.equals("after"))) {↵
|
8 | plugin.loadOptionsFromXml(folder);↵ | | 8 | plugin.loadOptionsFromXml(null);↵
|
9 | }↵ | | 9 | }↵
|
10 | } catch (PluginException e1) {↵ | | 10 | } catch (Exception e1) {↵
|
11 | ↵ | | 11 | // TODO (@author fdietz): add error dialog↵
|
12 | e1.printStackTrace();↵ | | 12 | e1.printStackTrace();↵
|
13 | | | 13 |
|