Author: sletellier Date: 2010-11-02 15:06:00 +0100 (Tue, 02 Nov 2010) New Revision: 288 Url: http://nuiton.org/repositories/revision/nuiton-widgets/288 Log: - Update header licences - Evol 963 : Add menu to allow to copy content from a FocusableTip - Depreciate date picker class Added: trunk/src/main/resources/copy.png Modified: trunk/pom.xml trunk/src/license/THIRD-PARTY.properties trunk/src/main/assembly/deps.xml trunk/src/main/assembly/full.xml trunk/src/main/java/org/nuiton/widget/AboutFrame.java trunk/src/main/java/org/nuiton/widget/ApplicationAction.java trunk/src/main/java/org/nuiton/widget/ApplicationMonitor.java trunk/src/main/java/org/nuiton/widget/CustomFocusTraversalPolicy.java trunk/src/main/java/org/nuiton/widget/DatePicker.java trunk/src/main/java/org/nuiton/widget/GridFlowLayout.java trunk/src/main/java/org/nuiton/widget/IconFactory.java trunk/src/main/java/org/nuiton/widget/InvalidDateException.java trunk/src/main/java/org/nuiton/widget/JComboBoxAutoCompletionKit.java trunk/src/main/java/org/nuiton/widget/Mailor.java trunk/src/main/java/org/nuiton/widget/MessageDialog.java trunk/src/main/java/org/nuiton/widget/Settings.java trunk/src/main/java/org/nuiton/widget/SimpleInternalFrame.java trunk/src/main/java/org/nuiton/widget/SplashScreen.java trunk/src/main/java/org/nuiton/widget/StatusBar.java trunk/src/main/java/org/nuiton/widget/SwingUtil.java trunk/src/main/java/org/nuiton/widget/SwingWidgetFactory.java trunk/src/main/java/org/nuiton/widget/SwitchPane.java trunk/src/main/java/org/nuiton/widget/UIFSplitPane.java trunk/src/main/java/org/nuiton/widget/WidgetUtil.java trunk/src/main/java/org/nuiton/widget/XMLGridLayout.java trunk/src/main/java/org/nuiton/widget/XMLGridParseConstraints.java trunk/src/main/java/org/nuiton/widget/datatips/DataTipCell.java trunk/src/main/java/org/nuiton/widget/datatips/DataTipComponent.java trunk/src/main/java/org/nuiton/widget/datatips/DataTipListener.java trunk/src/main/java/org/nuiton/widget/datatips/DataTipManager.java trunk/src/main/java/org/nuiton/widget/datatips/DataTipPopup.java trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipCell.java trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipListener.java trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipCell.java trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipListener.java trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipCell.java trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipListener.java trunk/src/main/java/org/nuiton/widget/datatips/package-info.java trunk/src/main/java/org/nuiton/widget/editor/DefaultEditor.java trunk/src/main/java/org/nuiton/widget/editor/Editor.java trunk/src/main/java/org/nuiton/widget/editor/EditorHelper.java trunk/src/main/java/org/nuiton/widget/editor/EditorInterface.java trunk/src/main/java/org/nuiton/widget/editor/JEditEditor.java trunk/src/main/java/org/nuiton/widget/editor/NullEditor.java trunk/src/main/java/org/nuiton/widget/editor/RSyntaxEditor.java trunk/src/main/java/org/nuiton/widget/editor/SDocEditor.java trunk/src/main/java/org/nuiton/widget/package.html trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip.java trunk/src/main/java/org/nuiton/widget/tooltip/SizeGrip.java trunk/src/main/java/org/nuiton/widget/tooltip/TipUtil.java trunk/src/main/java/org/nuiton/widget/tooltip/TipWindow.java trunk/src/main/java/org/nuiton/widget/tooltip/package-info.java trunk/src/main/java/org/nuiton/widget/tree/FilterTreeModel.java trunk/src/main/java/org/nuiton/widget/tree/TreeFilter.java trunk/src/main/java/org/nuiton/widget/tree/package-info.java trunk/src/main/resources/i18n/nuiton-widgets-en_GB.properties trunk/src/main/resources/i18n/nuiton-widgets-fr_FR.properties trunk/src/site/rst/Todo.rst trunk/src/site/rst/components/focusabletooltips.rst trunk/src/site/rst/components/treefilters.rst trunk/src/site/rst/index.rst trunk/src/site/site_fr.xml trunk/src/test/java/org/nuiton/widget/AboutFrameTest.java trunk/src/test/java/org/nuiton/widget/AbstractTestCase.java trunk/src/test/java/org/nuiton/widget/IconFactoryTest.java trunk/src/test/java/org/nuiton/widget/WidgetUtilTest.java trunk/src/test/java/org/nuiton/widget/XMLGridLayoutTest.java trunk/src/test/java/org/nuiton/widget/editor/EditorTest.java trunk/src/test/resources/log4j.properties Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/pom.xml 2010-11-02 14:06:00 UTC (rev 288) @@ -73,6 +73,11 @@ <scope>test</scope> </dependency> + <dependency> + <groupId>commons-lang</groupId> + <artifactId>commons-lang</artifactId> + </dependency> + </dependencies> <!-- ************************************************************* --> Modified: trunk/src/license/THIRD-PARTY.properties =================================================================== --- trunk/src/license/THIRD-PARTY.properties 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/license/THIRD-PARTY.properties 2010-11-02 14:06:00 UTC (rev 288) @@ -1,3 +1,27 @@ +### +# #%L +# Graphical Widget +# +# $Id$ +# $HeadURL$ +# %% +# Copyright (C) 2004 - 2010 CodeLutin +# %% +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Lesser Public License for more details. +# +# You should have received a copy of the GNU General Lesser Public +# License along with this program. If not, see +# <http://www.gnu.org/licenses/lgpl-3.0.html>. +# #L% +### # Generated by org.nuiton.license.plugin.AddThirdPartyMojo #------------------------------------------------------------------------------- # Already used licenses in project : Modified: trunk/src/main/assembly/deps.xml =================================================================== --- trunk/src/main/assembly/deps.xml 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/assembly/deps.xml 2010-11-02 14:06:00 UTC (rev 288) @@ -1,3 +1,27 @@ +<!-- + #%L + Graphical Widget + + $Id$ + $HeadURL$ + %% + Copyright (C) 2004 - 2010 CodeLutin + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Lesser Public License for more details. + + You should have received a copy of the GNU General Lesser Public + License along with this program. If not, see + <http://www.gnu.org/licenses/lgpl-3.0.html>. + #L% + --> <assembly> <id>deps</id> <formats> Modified: trunk/src/main/assembly/full.xml =================================================================== --- trunk/src/main/assembly/full.xml 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/assembly/full.xml 2010-11-02 14:06:00 UTC (rev 288) @@ -1,3 +1,27 @@ +<!-- + #%L + Graphical Widget + + $Id$ + $HeadURL$ + %% + Copyright (C) 2004 - 2010 CodeLutin + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Lesser Public License for more details. + + You should have received a copy of the GNU General Lesser Public + License along with this program. If not, see + <http://www.gnu.org/licenses/lgpl-3.0.html>. + #L% + --> <assembly> <id>full</id> <formats> Modified: trunk/src/main/java/org/nuiton/widget/AboutFrame.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/AboutFrame.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/AboutFrame.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,28 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ + package org.nuiton.widget; import static org.nuiton.i18n.I18n._; Modified: trunk/src/main/java/org/nuiton/widget/ApplicationAction.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/ApplicationAction.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/ApplicationAction.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * ApplicationAction.java Modified: trunk/src/main/java/org/nuiton/widget/ApplicationMonitor.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/ApplicationMonitor.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/ApplicationMonitor.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,26 +1,34 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /******************************************************************************* * ApplicationMontior.java * * Created: Jul 29, 2004 * - * @author C�dric Pineau <pineau@codelutin.com> + * @author Cedric Pineau <pineau@codelutin.com> * * @version $Revision$ * Modified: trunk/src/main/java/org/nuiton/widget/CustomFocusTraversalPolicy.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/CustomFocusTraversalPolicy.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/CustomFocusTraversalPolicy.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/*##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * Created on 16 mai 2005 Modified: trunk/src/main/java/org/nuiton/widget/DatePicker.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/DatePicker.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/DatePicker.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,20 +1,28 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% */ + package org.nuiton.widget; import java.text.DateFormat; @@ -23,6 +31,7 @@ import javax.swing.JTextField; +@Deprecated public class DatePicker extends JTextField { private static final long serialVersionUID = 1L; @@ -39,7 +48,7 @@ } public Date getDate() throws InvalidDateException { - Date date = null; + Date date; try { date = dateFormat.parse(super.getText()); } catch (ParseException e) { Modified: trunk/src/main/java/org/nuiton/widget/GridFlowLayout.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/GridFlowLayout.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/GridFlowLayout.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * GridFlowLayout.java Modified: trunk/src/main/java/org/nuiton/widget/IconFactory.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/IconFactory.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/IconFactory.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * IconFactory.java Modified: trunk/src/main/java/org/nuiton/widget/InvalidDateException.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/InvalidDateException.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/InvalidDateException.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,23 +1,30 @@ -/** - * *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% */ package org.nuiton.widget; +@Deprecated public class InvalidDateException extends Exception { private static final long serialVersionUID = 1L; Modified: trunk/src/main/java/org/nuiton/widget/JComboBoxAutoCompletionKit.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/JComboBoxAutoCompletionKit.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/JComboBoxAutoCompletionKit.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * JComboBoxAutoCompletionKit.java Modified: trunk/src/main/java/org/nuiton/widget/Mailor.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/Mailor.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/Mailor.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,26 +1,34 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * Mailor.java * * Created: Nov 29, 2004 * - * @author C�dric Pineau <pineau@codelutin.com> + * @author Cédric Pineau <pineau@codelutin.com> * @version $Revision$ * * Last update : $Date$ Modified: trunk/src/main/java/org/nuiton/widget/MessageDialog.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/MessageDialog.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/MessageDialog.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * MessageDialog.java Modified: trunk/src/main/java/org/nuiton/widget/Settings.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/Settings.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/Settings.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,20 +1,26 @@ -/** - * *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% */ /* * Copyright (c) 2001-2004 JGoodies Karsten Lentzsch. All Rights Reserved. Modified: trunk/src/main/java/org/nuiton/widget/SimpleInternalFrame.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/SimpleInternalFrame.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/SimpleInternalFrame.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,20 +1,26 @@ -/** - * *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% */ /* * Copyright (c) 2003 JGoodies Karsten Lentzsch. All Rights Reserved. Modified: trunk/src/main/java/org/nuiton/widget/SplashScreen.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/SplashScreen.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/SplashScreen.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * SplashScreen.java Modified: trunk/src/main/java/org/nuiton/widget/StatusBar.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/StatusBar.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/StatusBar.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,28 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ + /* * * StatusBar.java * Modified: trunk/src/main/java/org/nuiton/widget/SwingUtil.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/SwingUtil.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/SwingUtil.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * SwingUtil.java Modified: trunk/src/main/java/org/nuiton/widget/SwingWidgetFactory.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/SwingWidgetFactory.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/SwingWidgetFactory.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,26 +1,34 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * SwingWidgetFactory.java * * Created: Nov 19, 2004 * - * @author C�dric Pineau <pineau@codelutin.com> + * @author Cédric Pineau <pineau@codelutin.com> * @version $Revision$ * * Last update : $Date$ @@ -175,6 +183,7 @@ return menuItem; } + @Deprecated public static DatePicker createDatePicker(DateFormat dateFormat) { return new DatePicker(dateFormat); } Modified: trunk/src/main/java/org/nuiton/widget/SwitchPane.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/SwitchPane.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/SwitchPane.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,21 +1,28 @@ -/** - * *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% */ + /* * Created on 16 mai 2005 * Modified: trunk/src/main/java/org/nuiton/widget/UIFSplitPane.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/UIFSplitPane.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/UIFSplitPane.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,20 +1,26 @@ -/** - * *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% */ /* * Copyright (c) 2003, 2004 JGoodies Karsten Lentzsch. All Rights Reserved. Modified: trunk/src/main/java/org/nuiton/widget/WidgetUtil.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/WidgetUtil.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/WidgetUtil.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * WidgetUtil.java Modified: trunk/src/main/java/org/nuiton/widget/XMLGridLayout.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/XMLGridLayout.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/XMLGridLayout.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,21 +1,28 @@ -/** - * *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% */ + package org.nuiton.widget; import java.awt.Component; Modified: trunk/src/main/java/org/nuiton/widget/XMLGridParseConstraints.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/XMLGridParseConstraints.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/XMLGridParseConstraints.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,21 +1,28 @@ -/** - * *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% */ + package org.nuiton.widget; import java.awt.GridBagConstraints; Modified: trunk/src/main/java/org/nuiton/widget/datatips/DataTipCell.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/datatips/DataTipCell.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/datatips/DataTipCell.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,6 @@ /* + * %%License-Ignore + * * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, Modified: trunk/src/main/java/org/nuiton/widget/datatips/DataTipComponent.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/datatips/DataTipComponent.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/datatips/DataTipComponent.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,6 @@ /* + * %%License-Ignore + * * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, Modified: trunk/src/main/java/org/nuiton/widget/datatips/DataTipListener.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/datatips/DataTipListener.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/datatips/DataTipListener.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,6 @@ /* + * %%License-Ignore + * * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, Modified: trunk/src/main/java/org/nuiton/widget/datatips/DataTipManager.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/datatips/DataTipManager.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/datatips/DataTipManager.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,6 @@ /* + * %%License-Ignore + * * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, Modified: trunk/src/main/java/org/nuiton/widget/datatips/DataTipPopup.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/datatips/DataTipPopup.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/datatips/DataTipPopup.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,6 @@ /* + * %%License-Ignore + * * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, Modified: trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipCell.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipCell.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipCell.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,6 @@ /* + * %%License-Ignore + * * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, @@ -26,8 +28,6 @@ */ package org.nuiton.widget.datatips; -import org.nuiton.widget.datatips.DataTipCell; - import javax.swing.*; import java.awt.*; Modified: trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipListener.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipListener.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/datatips/ListDataTipListener.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,6 @@ /* + * %%License-Ignore + * * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, @@ -26,10 +28,6 @@ */ package org.nuiton.widget.datatips; -import org.nuiton.widget.datatips.DataTipCell; -import org.nuiton.widget.datatips.DataTipListener; -import org.nuiton.widget.datatips.ListDataTipCell; - import javax.swing.*; import java.awt.*; Modified: trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipCell.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipCell.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipCell.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,6 @@ /* + * %%License-Ignore + * * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, Modified: trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipListener.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipListener.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/datatips/TableDataTipListener.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,6 @@ /* + * %%License-Ignore + * * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, Modified: trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipCell.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipCell.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipCell.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,6 @@ /* + * %%License-Ignore + * * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, Modified: trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipListener.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipListener.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/datatips/TreeDataTipListener.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,6 @@ /* + * %%License-Ignore + * * Copyright (c) 2002 - 2005, Stephen Kelvin Friedrich. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, Modified: trunk/src/main/java/org/nuiton/widget/datatips/package-info.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/datatips/package-info.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/datatips/package-info.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,3 +1,27 @@ +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /** * Add data tips to your Swing table, tree or list. * Modified: trunk/src/main/java/org/nuiton/widget/editor/DefaultEditor.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/editor/DefaultEditor.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/editor/DefaultEditor.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * DefaultEditor.java Modified: trunk/src/main/java/org/nuiton/widget/editor/Editor.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/editor/Editor.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/editor/Editor.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * Editor.java Modified: trunk/src/main/java/org/nuiton/widget/editor/EditorHelper.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/editor/EditorHelper.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/editor/EditorHelper.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,22 +1,28 @@ -/*##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ - - package org.nuiton.widget.editor; import java.awt.Event; Modified: trunk/src/main/java/org/nuiton/widget/editor/EditorInterface.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/editor/EditorInterface.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/editor/EditorInterface.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2009 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ package org.nuiton.widget.editor; Modified: trunk/src/main/java/org/nuiton/widget/editor/JEditEditor.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/editor/JEditEditor.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/editor/JEditEditor.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,20 +1,27 @@ -/* *##% - * Copyright (C) 2009 Code Lutin - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - *##%*/ + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ package org.nuiton.widget.editor; Modified: trunk/src/main/java/org/nuiton/widget/editor/NullEditor.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/editor/NullEditor.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/editor/NullEditor.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2009 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ package org.nuiton.widget.editor; Modified: trunk/src/main/java/org/nuiton/widget/editor/RSyntaxEditor.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/editor/RSyntaxEditor.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/editor/RSyntaxEditor.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,20 +1,27 @@ -/* *##% - * Copyright (C) 2009 Code Lutin - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - *##%*/ + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ package org.nuiton.widget.editor; Modified: trunk/src/main/java/org/nuiton/widget/editor/SDocEditor.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/editor/SDocEditor.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/editor/SDocEditor.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,6 +1,12 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin +/* + * #%L + * Graphical Widget * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation, either version 3 of the @@ -13,7 +19,9 @@ * * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ package org.nuiton.widget.editor; Modified: trunk/src/main/java/org/nuiton/widget/package.html =================================================================== --- trunk/src/main/java/org/nuiton/widget/package.html 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/package.html 2010-11-02 14:06:00 UTC (rev 288) @@ -1,3 +1,27 @@ +<!-- + #%L + Graphical Widget + + $Id$ + $HeadURL$ + %% + Copyright (C) 2004 - 2010 CodeLutin + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Lesser Public License for more details. + + You should have received a copy of the GNU General Lesser Public + License along with this program. If not, see + <http://www.gnu.org/licenses/lgpl-3.0.html>. + #L% + --> <html> <body> <h1>Nuiton-Widgets</h1> Modified: trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/tooltip/FocusableTip.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,6 @@ /* + * %%License-Ignore + * * 07/29/2009 * * FocusableTip.java - A focusable tool tip, like those in Eclipse. @@ -36,10 +38,8 @@ import java.awt.event.KeyListener; import java.awt.event.MouseEvent; import java.net.URL; -import java.util.ResourceBundle; import javax.swing.JComponent; -//import javax.swing.JTextArea; import javax.swing.SwingUtilities; import javax.swing.ToolTipManager; import javax.swing.event.CaretEvent; @@ -57,12 +57,13 @@ */ public class FocusableTip { - private JComponent attachedComponent; - private TipWindow tipWindow; - private URL imageBase; - private AttachedComponentListener attachedComponentListener; - private HyperlinkListener hyperlinkListener; - private String lastText; + protected JComponent attachedComponent; + protected TipWindow tipWindow; + protected URL imageBase; + protected AttachedComponentListener attachedComponentListener; + protected HyperlinkListener hyperlinkListener; + protected String lastText; + protected boolean showCopyContextMenu; /** Width with default value. */ protected int width = 320; @@ -74,22 +75,55 @@ * The screen bounds in which the mouse has to stay for the currently * displayed tip to stay visible. */ - private Rectangle tipVisibleBounds; + protected Rectangle tipVisibleBounds; /** * Margin from mouse cursor at which to draw focusable tip. */ - private static final int MARGIN = 10; + protected static final int MARGIN = 10; - //private static final String MSG = "org.nuiton.widget.tooltip.FocusableTip"; - //private static final ResourceBundle msg = ResourceBundle.getBundle(MSG); + /** + * FocusableTip constructor + * + * @param attachedComponent component to attach + */ + public FocusableTip(JComponent attachedComponent) { + this(attachedComponent, null); + } + /** + * FocusableTip constructor + * + * @param attachedComponent component to attach + * @param listener hyper link listener to add + */ + public FocusableTip(JComponent attachedComponent, HyperlinkListener listener) { + this(attachedComponent, listener, false); + } - public FocusableTip(JComponent attachedComponent, HyperlinkListener listener) { + /** + * FocusableTip constructor + * + * @param attachedComponent component to attach + * @param showCopyContextMenu to show copy context menu + */ + public FocusableTip(JComponent attachedComponent, boolean showCopyContextMenu) { + this(attachedComponent, null, showCopyContextMenu); + } + + /** + * FocusableTip constructor + * + * @param attachedComponent component to attach + * @param listener hyper link listener to add + * @param showCopyContextMenu to show copy context menu + */ + public FocusableTip(JComponent attachedComponent, HyperlinkListener listener, boolean showCopyContextMenu) { setAttachedComponent(attachedComponent); this.hyperlinkListener = listener; attachedComponentListener = new AttachedComponentListener(); tipVisibleBounds = new Rectangle(); + this.showCopyContextMenu = showCopyContextMenu; } /** @@ -103,11 +137,20 @@ this.height = height; } + /** + * Get {@link TipWindow} displayed + * + * @return TipWindow displayed + */ + public TipWindow getTipWindows() { + return tipWindow; + } + /** * Compute the bounds in which the user can move the mouse without the * tip window disappearing. */ - private void computeTipVisibleBounds() { + protected void computeTipVisibleBounds() { // Compute area that the mouse can move in without hiding the // tip window. Note that Java 1.4 can only detect mouse events // in Java windows, not globally. @@ -119,7 +162,7 @@ } - private void createAndShowTipWindow(final MouseEvent e, final String text) { + protected void createAndShowTipWindow(final MouseEvent e, final String text) { Window owner = SwingUtilities.getWindowAncestor(attachedComponent); tipWindow = new TipWindow(owner, this, text); @@ -142,6 +185,11 @@ return; } + // Add copy context menu + if (showCopyContextMenu) { + TipUtil.addCopyContextMenu(tipWindow); + } + tipWindow.fixSize(width, height); ComponentOrientation o = attachedComponent.getComponentOrientation(); @@ -228,7 +276,7 @@ } - private void setAttachedComponent(JComponent attachedComponent) { + protected void setAttachedComponent(JComponent attachedComponent) { this.attachedComponent = attachedComponent; // Is okay to do multiple times. ToolTipManager.sharedInstance().registerComponent(attachedComponent); @@ -252,7 +300,7 @@ } - private class AttachedComponentListener extends MouseInputAdapter implements + protected class AttachedComponentListener extends MouseInputAdapter implements CaretListener, ComponentListener, FocusListener, KeyListener { public void caretUpdate(CaretEvent e) { @@ -295,7 +343,7 @@ } } - private void handleComponentEvent(ComponentEvent e) { + protected void handleComponentEvent(ComponentEvent e) { possiblyDisposeOfTipWindow(); } Modified: trunk/src/main/java/org/nuiton/widget/tooltip/SizeGrip.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/tooltip/SizeGrip.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/tooltip/SizeGrip.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,6 @@ /* + * %%License-Ignore + * * 12/23/2008 * * SizeGrip.java - A size grip component that sits at the bottom of the window, @@ -50,12 +52,12 @@ * @author Robert Futrell * @version 1.0 */ -class SizeGrip extends JPanel { +public class SizeGrip extends JPanel { /** * The size grip to use if we're on OS X. */ - private Image osxSizeGrip; + protected Image osxSizeGrip; public SizeGrip() { @@ -83,7 +85,7 @@ * * @return The OS X size grip. */ - private Image createOSXSizeGrip() { + protected Image createOSXSizeGrip() { ClassLoader cl = getClass().getClassLoader(); URL url = cl.getResource("org/fife/ui/autocomplete/osx_sizegrip.png"); if (url==null) { @@ -217,9 +219,9 @@ * buggy - stretch the window too wide and some kind of arithmetic error * started happening somewhere - our window would grow way too large. */ - private class MouseHandler extends MouseInputAdapter { + protected class MouseHandler extends MouseInputAdapter { - private Point origPos; + protected Point origPos; public void mouseDragged(MouseEvent e) { Point newPos = e.getPoint(); Modified: trunk/src/main/java/org/nuiton/widget/tooltip/TipUtil.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/tooltip/TipUtil.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/tooltip/TipUtil.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,6 @@ /* + * %%License-Ignore + * * 08/13/2009 * * TipUtil.java - Utility methods for homemade tool tips. @@ -25,12 +27,26 @@ import java.awt.Color; import java.awt.Font; import java.awt.SystemColor; +import java.awt.Toolkit; +import java.awt.datatransfer.Clipboard; +import java.awt.datatransfer.StringSelection; +import java.awt.event.ActionEvent; +import java.awt.event.ActionListener; +import java.awt.event.MouseAdapter; +import java.awt.event.MouseEvent; + import javax.swing.BorderFactory; +import javax.swing.Icon; import javax.swing.JEditorPane; +import javax.swing.JMenuItem; +import javax.swing.JPopupMenu; import javax.swing.UIManager; import javax.swing.plaf.ColorUIResource; import javax.swing.text.html.HTMLDocument; +import org.apache.commons.lang.StringUtils; +import org.nuiton.util.Resource; +import static org.nuiton.i18n.I18n._; /** * Static utility methods for focusable tips. @@ -38,9 +54,10 @@ * @author Robert Futrell * @version 1.0 */ -class TipUtil { +public class TipUtil { + + protected static final String COPY_ICON_PATH = "copy.png"; - private TipUtil() { } @@ -110,8 +127,57 @@ doc.getStyleSheet().addRule( "body { font-family: " + font.getFamily() + "; font-size: " + font.getSize() + "pt; }"); - } + /** + * Add context menu for paste selected content + * + * @param focusableTip to add copy context menu + */ + public static void addCopyContextMenu(FocusableTip focusableTip) { + if (focusableTip == null) { + throw new NullPointerException("Focusable tip must be non null"); + } + TipWindow tipWindows = focusableTip.getTipWindows(); + addCopyContextMenu(tipWindows); + } + + protected static void addCopyContextMenu(TipWindow tipWindows) { + if (tipWindows == null) { + throw new NullPointerException("TipWindows must be non null"); + } + + JEditorPane textArea = tipWindows.getTextArea(); + textArea.addMouseListener(new MouseAdapter(){ + + @Override + public void mouseClicked(MouseEvent e) { + + JEditorPane textArea = (JEditorPane)e.getSource(); + final String selectedText = textArea.getSelectedText(); + if (e.getButton() == MouseEvent.BUTTON3 && !StringUtils.isBlank(selectedText)) { + + JPopupMenu popupMenu = new JPopupMenu(); + + Icon copyIcon = Resource.getIcon(COPY_ICON_PATH); + JMenuItem copyMenuItem = new JMenuItem(_("nuitonwidgets.common.copy"), copyIcon); + copyMenuItem.addActionListener(new ActionListener() { + + @Override + public void actionPerformed(ActionEvent e) { + StringSelection selection = new StringSelection(selectedText); + + Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); + clipboard.setContents(selection, null); + } + }); + + popupMenu.add(copyMenuItem); + popupMenu.show(textArea, e.getX(), e.getY()); + } + } + }); + } + } \ No newline at end of file Modified: trunk/src/main/java/org/nuiton/widget/tooltip/TipWindow.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/tooltip/TipWindow.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/tooltip/TipWindow.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,6 @@ /* + * %%License-Ignore + * * 07/29/2009 * * TipWindow.java - The actual window component representing the tool tip. @@ -64,22 +66,23 @@ * @author Robert Futrell * @version 1.0 */ -class TipWindow extends JWindow implements ActionListener { +public class TipWindow extends JWindow implements ActionListener { - private FocusableTip ft; - private JEditorPane textArea; - private String text; - private TipListener tipListener; - private HyperlinkListener userHyperlinkListener; + protected FocusableTip ft; + protected JEditorPane textArea; + protected String text; + protected TipListener tipListener; + protected HyperlinkListener userHyperlinkListener; - private static TipWindow visibleInstance; + protected static TipWindow visibleInstance; /** * Constructor. * * @param owner The parent window. - * @param msg The text of the tool tip. This can be HTML. + * @param ft Focusable tip + * @param msg The text of the tool tip. This can be HTML. */ public TipWindow(Window owner, FocusableTip ft, String msg) { @@ -137,6 +140,14 @@ } + /** + * Return textArea of TipWindow + * + * @return textArea + */ + public JEditorPane getTextArea() { + return textArea; + } public void actionPerformed(ActionEvent e) { @@ -183,10 +194,10 @@ * @param width min width * @param height min height */ - void fixSize(int width, int height) { + public void fixSize(int width, int height) { Dimension d = textArea.getPreferredSize(); - Rectangle r = null; + Rectangle r; try { r = textArea.modelToView(textArea.getDocument().getLength()-1); @@ -213,7 +224,7 @@ } - private void setBottomPanel() { + protected void setBottomPanel() { final JPanel panel = new JPanel(new BorderLayout()); panel.add(new JSeparator(), BorderLayout.NORTH); @@ -224,7 +235,7 @@ sg.applyComponentOrientation(sg.getComponentOrientation()); // Workaround panel.add(sg, BorderLayout.LINE_END); MouseInputAdapter adapter = new MouseInputAdapter() { - private Point lastPoint; + protected Point lastPoint; public void mouseDragged(MouseEvent e) { Point p = e.getPoint(); SwingUtilities.convertPointToScreen(p, panel); @@ -308,7 +319,7 @@ /** * Listens for events in this window. */ - private class TipListener extends MouseAdapter { + protected class TipListener extends MouseAdapter { public TipListener() { } Modified: trunk/src/main/java/org/nuiton/widget/tooltip/package-info.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/tooltip/package-info.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/tooltip/package-info.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,3 +1,27 @@ +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /** * Focusable tooltip. * Modified: trunk/src/main/java/org/nuiton/widget/tree/FilterTreeModel.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/tree/FilterTreeModel.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/tree/FilterTreeModel.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2010 CodeLutin, Chatellier Eric - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ package org.nuiton.widget.tree; Modified: trunk/src/main/java/org/nuiton/widget/tree/TreeFilter.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/tree/TreeFilter.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/tree/TreeFilter.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2010 CodeLutin, Chatellier Eric - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ package org.nuiton.widget.tree; Modified: trunk/src/main/java/org/nuiton/widget/tree/package-info.java =================================================================== --- trunk/src/main/java/org/nuiton/widget/tree/package-info.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/java/org/nuiton/widget/tree/package-info.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,3 +1,27 @@ +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /** * Tree filtering classes. */ Added: trunk/src/main/resources/copy.png =================================================================== (Binary files differ) Property changes on: trunk/src/main/resources/copy.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Modified: trunk/src/main/resources/i18n/nuiton-widgets-en_GB.properties =================================================================== --- trunk/src/main/resources/i18n/nuiton-widgets-en_GB.properties 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/resources/i18n/nuiton-widgets-en_GB.properties 2010-11-02 14:06:00 UTC (rev 288) @@ -1,6 +1,7 @@ nuitonwidgets.aboutframe.about=About nuitonwidgets.aboutframe.license=License nuitonwidgets.aboutframe.ok=OK +nuitonwidgets.common.copy=Copy nuitonwidgets.editor.saveorcancel=Do you want to save current opened file ? nuitonwidgets.message.file=File nuitonwidgets.message.folder=Folder Modified: trunk/src/main/resources/i18n/nuiton-widgets-fr_FR.properties =================================================================== --- trunk/src/main/resources/i18n/nuiton-widgets-fr_FR.properties 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/main/resources/i18n/nuiton-widgets-fr_FR.properties 2010-11-02 14:06:00 UTC (rev 288) @@ -1,6 +1,7 @@ nuitonwidgets.aboutframe.about=\u00C0 propos nuitonwidgets.aboutframe.license=Licence nuitonwidgets.aboutframe.ok=OK +nuitonwidgets.common.copy=Copier nuitonwidgets.editor.saveorcancel=Voulez vous sauver le fichier modifi\u00E9 ? nuitonwidgets.message.file=Fichier nuitonwidgets.message.folder=R\u00E9pertoire Modified: trunk/src/site/rst/Todo.rst =================================================================== --- trunk/src/site/rst/Todo.rst 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/site/rst/Todo.rst 2010-11-02 14:06:00 UTC (rev 288) @@ -1,3 +1,27 @@ +.. - +.. * #%L +.. * Graphical Widget +.. * +.. * $Id$ +.. * $HeadURL$ +.. * %% +.. * Copyright (C) 2004 - 2010 CodeLutin +.. * %% +.. * This program is free software: you can redistribute it and/or modify +.. * it under the terms of the GNU Lesser General Public License as +.. * published by the Free Software Foundation, either version 3 of the +.. * License, or (at your option) any later version. +.. * +.. * This program is distributed in the hope that it will be useful, +.. * but WITHOUT ANY WARRANTY; without even the implied warranty of +.. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.. * GNU General Lesser Public License for more details. +.. * +.. * You should have received a copy of the GNU General Lesser Public +.. * License along with this program. If not, see +.. * <http://www.gnu.org/licenses/lgpl-3.0.html>. +.. * #L% +.. - TODO ==== Modified: trunk/src/site/rst/components/focusabletooltips.rst =================================================================== --- trunk/src/site/rst/components/focusabletooltips.rst 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/site/rst/components/focusabletooltips.rst 2010-11-02 14:06:00 UTC (rev 288) @@ -1,3 +1,27 @@ +.. - +.. * #%L +.. * Graphical Widget +.. * +.. * $Id$ +.. * $HeadURL$ +.. * %% +.. * Copyright (C) 2004 - 2010 CodeLutin +.. * %% +.. * This program is free software: you can redistribute it and/or modify +.. * it under the terms of the GNU Lesser General Public License as +.. * published by the Free Software Foundation, either version 3 of the +.. * License, or (at your option) any later version. +.. * +.. * This program is distributed in the hope that it will be useful, +.. * but WITHOUT ANY WARRANTY; without even the implied warranty of +.. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.. * GNU General Lesser Public License for more details. +.. * +.. * You should have received a copy of the GNU General Lesser Public +.. * License along with this program. If not, see +.. * <http://www.gnu.org/licenses/lgpl-3.0.html>. +.. * #L% +.. - Focusables tooltips =================== Modified: trunk/src/site/rst/components/treefilters.rst =================================================================== --- trunk/src/site/rst/components/treefilters.rst 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/site/rst/components/treefilters.rst 2010-11-02 14:06:00 UTC (rev 288) @@ -1,3 +1,27 @@ +.. - +.. * #%L +.. * Graphical Widget +.. * +.. * $Id$ +.. * $HeadURL$ +.. * %% +.. * Copyright (C) 2004 - 2010 CodeLutin +.. * %% +.. * This program is free software: you can redistribute it and/or modify +.. * it under the terms of the GNU Lesser General Public License as +.. * published by the Free Software Foundation, either version 3 of the +.. * License, or (at your option) any later version. +.. * +.. * This program is distributed in the hope that it will be useful, +.. * but WITHOUT ANY WARRANTY; without even the implied warranty of +.. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.. * GNU General Lesser Public License for more details. +.. * +.. * You should have received a copy of the GNU General Lesser Public +.. * License along with this program. If not, see +.. * <http://www.gnu.org/licenses/lgpl-3.0.html>. +.. * #L% +.. - Tree filtering ============== Modified: trunk/src/site/rst/index.rst =================================================================== --- trunk/src/site/rst/index.rst 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/site/rst/index.rst 2010-11-02 14:06:00 UTC (rev 288) @@ -1,3 +1,27 @@ +.. - +.. * #%L +.. * Graphical Widget +.. * +.. * $Id$ +.. * $HeadURL$ +.. * %% +.. * Copyright (C) 2004 - 2010 CodeLutin +.. * %% +.. * This program is free software: you can redistribute it and/or modify +.. * it under the terms of the GNU Lesser General Public License as +.. * published by the Free Software Foundation, either version 3 of the +.. * License, or (at your option) any later version. +.. * +.. * This program is distributed in the hope that it will be useful, +.. * but WITHOUT ANY WARRANTY; without even the implied warranty of +.. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.. * GNU General Lesser Public License for more details. +.. * +.. * You should have received a copy of the GNU General Lesser Public +.. * License along with this program. If not, see +.. * <http://www.gnu.org/licenses/lgpl-3.0.html>. +.. * #L% +.. - Nuiton widgets ============== Modified: trunk/src/site/site_fr.xml =================================================================== --- trunk/src/site/site_fr.xml 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/site/site_fr.xml 2010-11-02 14:06:00 UTC (rev 288) @@ -1,4 +1,29 @@ <?xml version="1.0" encoding="UTF-8"?> +<!-- + #%L + Graphical Widget + + $Id$ + $HeadURL$ + %% + Copyright (C) 2004 - 2010 CodeLutin + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Lesser General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Lesser Public License for more details. + + You should have received a copy of the GNU General Lesser Public + License along with this program. If not, see + <http://www.gnu.org/licenses/lgpl-3.0.html>. + #L% + --> + <project name="${project.name}"> <bannerLeft> Modified: trunk/src/test/java/org/nuiton/widget/AboutFrameTest.java =================================================================== --- trunk/src/test/java/org/nuiton/widget/AboutFrameTest.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/test/java/org/nuiton/widget/AboutFrameTest.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,20 +1,27 @@ -/* *##% - * Copyright (C) 2008 Code Lutin - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - *##%*/ + * GNU General Lesser Public License for more details. + * + * You should have received a copy of the GNU General Lesser Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ package org.nuiton.widget; Modified: trunk/src/test/java/org/nuiton/widget/AbstractTestCase.java =================================================================== --- trunk/src/test/java/org/nuiton/widget/AbstractTestCase.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/test/java/org/nuiton/widget/AbstractTestCase.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,21 +1,28 @@ -/** - * *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%* + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% */ + package org.nuiton.widget; import java.io.File; Modified: trunk/src/test/java/org/nuiton/widget/IconFactoryTest.java =================================================================== --- trunk/src/test/java/org/nuiton/widget/IconFactoryTest.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/test/java/org/nuiton/widget/IconFactoryTest.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * IconFactoryTest.java @@ -29,7 +37,6 @@ package org.nuiton.widget; -import org.nuiton.widget.IconFactory; import javax.swing.Icon; import org.junit.Assert; Modified: trunk/src/test/java/org/nuiton/widget/WidgetUtilTest.java =================================================================== --- trunk/src/test/java/org/nuiton/widget/WidgetUtilTest.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/test/java/org/nuiton/widget/WidgetUtilTest.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * WidgetUtilTest.java @@ -30,7 +38,6 @@ package org.nuiton.widget; -import org.nuiton.widget.WidgetUtil; import java.awt.Component; import javax.swing.JLabel; Modified: trunk/src/test/java/org/nuiton/widget/XMLGridLayoutTest.java =================================================================== --- trunk/src/test/java/org/nuiton/widget/XMLGridLayoutTest.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/test/java/org/nuiton/widget/XMLGridLayoutTest.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * XMLGridLayoutTest.java @@ -29,7 +37,6 @@ package org.nuiton.widget; -import org.nuiton.widget.XMLGridLayout; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; Modified: trunk/src/test/java/org/nuiton/widget/editor/EditorTest.java =================================================================== --- trunk/src/test/java/org/nuiton/widget/editor/EditorTest.java 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/test/java/org/nuiton/widget/editor/EditorTest.java 2010-11-02 14:06:00 UTC (rev 288) @@ -1,19 +1,27 @@ -/* *##% Graphical Widget - * Copyright (C) 2004 - 2008 CodeLutin - * +/* + * #%L + * Graphical Widget + * + * $Id$ + * $HeadURL$ + * %% + * Copyright (C) 2004 - 2010 CodeLutin + * %% * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as - * published by the Free Software Foundation, either version 3 of the + * it under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Lesser Public License for more details. - * - * You should have received a copy of the GNU General Lesser Public + * + * You should have received a copy of the GNU General Lesser Public * License along with this program. If not, see - * <http://www.gnu.org/licenses/lgpl-3.0.html>. ##%*/ + * <http://www.gnu.org/licenses/lgpl-3.0.html>. + * #L% + */ /* * * EditorTest.java Modified: trunk/src/test/resources/log4j.properties =================================================================== --- trunk/src/test/resources/log4j.properties 2010-10-29 08:29:27 UTC (rev 287) +++ trunk/src/test/resources/log4j.properties 2010-11-02 14:06:00 UTC (rev 288) @@ -1,3 +1,27 @@ +### +# #%L +# Graphical Widget +# +# $Id$ +# $HeadURL$ +# %% +# Copyright (C) 2004 - 2010 CodeLutin +# %% +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Lesser General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Lesser Public License for more details. +# +# You should have received a copy of the GNU General Lesser Public +# License along with this program. If not, see +# <http://www.gnu.org/licenses/lgpl-3.0.html>. +# #L% +### # Global logging configuration log4j.rootLogger=ERROR, stdout # Console output...