Revision 40716 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.symbology/org.gvsig.symbology.swing/org.gvsig.symbology.swing.api/src/main/java/org/gvsig/app/gui/styling/StyleSelector.java

View differences:

StyleSelector.java
123 123
	private static final long serialVersionUID = -7476555713446755512L;
124 124
	private ImageSizePanel isp;
125 125

  
126
	public StyleSelector(IStyle style, int shapeType) {
126
	public StyleSelector(IStyle style, int shapeType)
127
			throws IllegalArgumentException {
128
		
127 129
		this(style, shapeType, new SelectorFilter() {
128 130
			public boolean accepts(Object obj) {
129 131
				return obj instanceof IStyle;
......
137 139
	 * @param shapeType
138 140
	 * @param filter
139 141
	 */
140
	public StyleSelector(IStyle style, int shapeType, SelectorFilter filter) {
142
	public StyleSelector(IStyle style, int shapeType, SelectorFilter filter)
143
	throws IllegalArgumentException {
144
		
141 145
		super(null, shapeType, filter, false);
142 146

  
143 147
		rootDir = new File(
......
151 155
		if (!rootDir.exists())
152 156
			rootDir.mkdir();
153 157

  
154
		try {
155
			initialize(style);
156
		} catch (ClassNotFoundException e) {
157
			throw new Error(e);
158
		}
158
		initialize(style);
159
		
159 160
		lblTitle.setText(Messages.getText("label_styles"));
160 161
		treeRootName = Messages.getText("style_library");
161 162

  
162 163
	}
163 164

  
164 165
	@Override
165
	protected void initialize(Object currentElement) throws ClassNotFoundException {
166
	protected void initialize(Object currentElement) throws IllegalArgumentException {
166 167
    	library = new StyleLibrary(rootDir);
167 168

  
168 169
    	this.setLayout(new BorderLayout());

Also available in: Unified diff