summaryrefslogtreecommitdiff
path: root/plugins/structuralsearch/source/com/intellij/structuralsearch/plugin/ui/SearchConfiguration.java
blob: afb2f9451bbe531f96f68dc8f4e41fa526a916ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.intellij.structuralsearch.plugin.ui;

import com.intellij.structuralsearch.MatchOptions;
import com.intellij.openapi.actionSystem.AnAction;
import org.jdom.Element;
import org.jdom.Attribute;
import org.jdom.DataConversionException;

/**
 * Configuration of the search
 */
public class SearchConfiguration extends Configuration {
  private MatchOptions matchOptions;

  public SearchConfiguration() {
    matchOptions = new MatchOptions();
  }

  public MatchOptions getMatchOptions() {
    return matchOptions;
  }

  public void setMatchOptions(MatchOptions matchOptions) {
    this.matchOptions = matchOptions;
  }

  public void readExternal(Element element) {
    super.readExternal(element);

    matchOptions.readExternal(element);
  }

  public void writeExternal(Element element) {
    super.writeExternal(element);

    matchOptions.writeExternal(element);
  }

}