[ooo-build-commit] ooeclipse: Branch 'master'
Cédric Bosdonnat
cbosdo at kemper.freedesktop.org
Thu Jul 30 09:06:59 PDT 2009
build/checkstyle.xml | 1
core/source/org/openoffice/ide/eclipse/core/editors/PackagePropertiesEditor.java | 6 -
core/source/org/openoffice/ide/eclipse/core/editors/main/GeneralSection.java | 45 +++++++-
core/source/org/openoffice/ide/eclipse/core/editors/main/ILocaleListener.java | 30 +++++
core/source/org/openoffice/ide/eclipse/core/editors/main/IntegrationSection.java | 43 ++++++--
core/source/org/openoffice/ide/eclipse/core/editors/main/LicenseSection.java | 46 +++++++--
core/source/org/openoffice/ide/eclipse/core/editors/main/LocaleSelector.java | 34 ++++++
core/source/org/openoffice/ide/eclipse/core/editors/main/LocalizedSection.java | 36 ++++++-
core/source/org/openoffice/ide/eclipse/core/editors/main/MirrorsSection.java | 51 +++++++---
core/source/org/openoffice/ide/eclipse/core/editors/main/PackageOverviewFormPage.java | 24 ----
core/source/org/openoffice/ide/eclipse/core/editors/main/PublisherSection.java | 44 +++++++-
core/source/org/openoffice/ide/eclipse/core/editors/main/ReleaseNotesSection.java | 40 ++++++-
core/source/org/openoffice/ide/eclipse/core/editors/messages.properties | 26 +++++
core/source/org/openoffice/ide/eclipse/core/gui/LocaleDialog.java | 2
core/source/org/openoffice/ide/eclipse/core/gui/messages.properties | 1
core/source/org/openoffice/ide/eclipse/core/model/description/DescriptionHandler.java | 32 ++++++
core/source/org/openoffice/ide/eclipse/core/model/description/DescriptionModel.java | 32 ++++++
core/source/org/openoffice/ide/eclipse/core/model/description/PublisherInfos.java | 30 +++++
core/source/org/openoffice/ide/eclipse/core/model/description/XMLTokens.java | 30 +++++
19 files changed, 471 insertions(+), 82 deletions(-)
New commits:
commit 0e5b1e01536d6f1eb45de35b297a7be76fd4cda2
Author: Cédric Bosdonnat <cedricbosdo at openoffice.org>
Date: Thu Jul 30 18:08:27 2009 +0200
Fixed the new files headers.
diff --git a/build/checkstyle.xml b/build/checkstyle.xml
index 2372b2d..a3a36f9 100644
--- a/build/checkstyle.xml
+++ b/build/checkstyle.xml
@@ -73,6 +73,7 @@
<module name="TabCharacter"/>
<module name="Indentation"/>
<module name="RegexpHeader">
+ <property name="severity" value="info"/>
<property name="headerFile" value="${samedir}/header.txt"/>
</module>
<module name="EmptyBlock">
diff --git a/core/source/org/openoffice/ide/eclipse/core/editors/PackagePropertiesEditor.java b/core/source/org/openoffice/ide/eclipse/core/editors/PackagePropertiesEditor.java
index dd715ca..5aa2650 100644
--- a/core/source/org/openoffice/ide/eclipse/core/editors/PackagePropertiesEditor.java
+++ b/core/source/org/openoffice/ide/eclipse/core/editors/PackagePropertiesEditor.java
@@ -163,10 +163,10 @@ public class PackagePropertiesEditor extends FormEditor {
IProject prj = fileInput.getFile().getProject();
String projectName = prj.getName();
- IFile descrFile = prj.getFile( "description.xml" );
+ IFile descrFile = prj.getFile( "description.xml" ); //$NON-NLS-1$
mDescrEditorInput = new FileEditorInput( descrFile );
- IFile propsFile = prj.getFile( "package.properties" );
+ IFile propsFile = prj.getFile( "package.properties" ); //$NON-NLS-1$
mPropsEditorInput = new FileEditorInput( propsFile );
setPartName(projectName);
@@ -183,7 +183,7 @@ public class PackagePropertiesEditor extends FormEditor {
parser.parse(file, handler);
} catch ( Exception e ) {
- PluginLogger.error( "Error parsing description.xml file", e );
+ PluginLogger.error( Messages.getString("PackagePropertiesEditor.DescriptionParseError"), e ); //$NON-NLS-1$
}
diff --git a/core/source/org/openoffice/ide/eclipse/core/editors/main/GeneralSection.java b/core/source/org/openoffice/ide/eclipse/core/editors/main/GeneralSection.java
index 7ec465f..22064ca 100644
--- a/core/source/org/openoffice/ide/eclipse/core/editors/main/GeneralSection.java
+++ b/core/source/org/openoffice/ide/eclipse/core/editors/main/GeneralSection.java
@@ -1,6 +1,33 @@
-/**
+/*************************************************************************
+ *
+ * The Contents of this file are made available subject to the terms of
+ * the GNU Lesser General Public License Version 2.1
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2009 by Novell, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
*
- */
+ * The Initial Developer of the Original Code is: Cédric Bosdonnat.
+ *
+ * Copyright: 2009 by Novell, Inc.
+ *
+ * All Rights Reserved.
+ *
+ ************************************************************************/
package org.openoffice.ide.eclipse.core.editors.main;
import java.util.HashMap;
@@ -16,16 +43,16 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;
+import org.openoffice.ide.eclipse.core.editors.Messages;
import org.openoffice.ide.eclipse.core.model.description.DescriptionModel;
/**
- * @author cbosdonnat
+ * @author Cédric Bosdonnat
*
*/
public class GeneralSection extends LocalizedSection {
private DescriptionModel mModel;
-// private HashMap<Locale, String> mDisplayNames;
private Text mNameTxt;
private Text mIdTxt;
@@ -38,7 +65,7 @@ public class GeneralSection extends LocalizedSection {
public GeneralSection( Composite pParent, PackageOverviewFormPage pPage ) {
super( pParent, pPage, Section.TITLE_BAR );
- getSection().setText( "General informations" );
+ getSection().setText( Messages.getString("GeneralSection.Title") ); //$NON-NLS-1$
mModel = pPage.getModel();
loadValues( );
@@ -65,14 +92,14 @@ public class GeneralSection extends LocalizedSection {
pParent.setLayout( new GridLayout( 2, false ) );
Label descrLbl = pToolkit.createLabel( pParent,
- "Define the extension localized name and identification informations.",
+ Messages.getString("GeneralSection.Description"), //$NON-NLS-1$
SWT.WRAP );
GridData gd = new GridData( GridData.FILL_HORIZONTAL );
gd.horizontalSpan = 2;
descrLbl.setLayoutData( gd );
// Name controls
- pToolkit.createLabel( pParent, "Name" );
+ pToolkit.createLabel( pParent, Messages.getString("GeneralSection.Name") ); //$NON-NLS-1$
mNameTxt = pToolkit.createText( pParent, new String( ) );
mNameTxt.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
mNameTxt.setEnabled( false );
@@ -83,7 +110,7 @@ public class GeneralSection extends LocalizedSection {
});
// Identifier controls
- pToolkit.createLabel( pParent, "Identifier" );
+ pToolkit.createLabel( pParent, Messages.getString("GeneralSection.Identifier") ); //$NON-NLS-1$
mIdTxt = pToolkit.createText( pParent, new String( ) );
mIdTxt.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
mIdTxt.addModifyListener( new ModifyListener () {
@@ -93,7 +120,7 @@ public class GeneralSection extends LocalizedSection {
});
// Version controls
- pToolkit.createLabel( pParent, "Version" );
+ pToolkit.createLabel( pParent, Messages.getString("GeneralSection.Version") ); //$NON-NLS-1$
mVersionTxt = pToolkit.createText( pParent, new String( ) );
mVersionTxt.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
mVersionTxt.addModifyListener( new ModifyListener () {
diff --git a/core/source/org/openoffice/ide/eclipse/core/editors/main/ILocaleListener.java b/core/source/org/openoffice/ide/eclipse/core/editors/main/ILocaleListener.java
index 5d93772..2144d7e 100644
--- a/core/source/org/openoffice/ide/eclipse/core/editors/main/ILocaleListener.java
+++ b/core/source/org/openoffice/ide/eclipse/core/editors/main/ILocaleListener.java
@@ -1,3 +1,33 @@
+/*************************************************************************
+ *
+ * The Contents of this file are made available subject to the terms of
+ * the GNU Lesser General Public License Version 2.1
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2009 by Novell, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ * The Initial Developer of the Original Code is: Cédric Bosdonnat.
+ *
+ * Copyright: 2009 by Novell, Inc.
+ *
+ * All Rights Reserved.
+ *
+ ************************************************************************/
package org.openoffice.ide.eclipse.core.editors.main;
import java.util.Locale;
diff --git a/core/source/org/openoffice/ide/eclipse/core/editors/main/IntegrationSection.java b/core/source/org/openoffice/ide/eclipse/core/editors/main/IntegrationSection.java
index b83757b..a8507af 100644
--- a/core/source/org/openoffice/ide/eclipse/core/editors/main/IntegrationSection.java
+++ b/core/source/org/openoffice/ide/eclipse/core/editors/main/IntegrationSection.java
@@ -1,6 +1,33 @@
-/**
+/*************************************************************************
+ *
+ * The Contents of this file are made available subject to the terms of
+ * the GNU Lesser General Public License Version 2.1
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2009 by Novell, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
*
- */
+ * The Initial Developer of the Original Code is: Cédric Bosdonnat.
+ *
+ * Copyright: 2009 by Novell, Inc.
+ *
+ * All Rights Reserved.
+ *
+ ************************************************************************/
package org.openoffice.ide.eclipse.core.editors.main;
import java.util.ArrayList;
@@ -36,7 +63,7 @@ import org.openoffice.ide.eclipse.core.model.description.DescriptionModel;
/**
* Section showing the compatibility parts of the description.xml file.
*
- * @author cbosdonnat
+ * @author Cédric Bosdonnat
*
*/
public class IntegrationSection extends SectionPart {
@@ -111,7 +138,7 @@ public class IntegrationSection extends SectionPart {
clientArea.setLayout( new GridLayout( GRID_COLUMS, false ) );
Label descrLbl = toolkit.createLabel( clientArea,
- "Define the dependencies of the extension: OpenOffice.org version and compatible system.",
+ Messages.getString("IntegrationSection.Description"), //$NON-NLS-1$
SWT.WRAP );
GridData gd = new GridData( GridData.FILL_HORIZONTAL );
gd.horizontalSpan = GRID_COLUMS;
@@ -119,7 +146,7 @@ public class IntegrationSection extends SectionPart {
// Min OOo version controls
toolkit.createLabel( clientArea, Messages.getString("IntegrationSection.MinOOoVersion") ); //$NON-NLS-1$
- mMinOOoTxt = toolkit.createText( clientArea, "" ); //$NON-NLS-1$
+ mMinOOoTxt = toolkit.createText( clientArea, new String( ) );
gd = new GridData( GridData.FILL_HORIZONTAL );
gd.horizontalSpan = GRID_COLUMS - 1;
mMinOOoTxt.setLayoutData( gd );
@@ -131,7 +158,7 @@ public class IntegrationSection extends SectionPart {
// Max OOo version controls
toolkit.createLabel( clientArea, Messages.getString("IntegrationSection.MaxOOoVersion") ); //$NON-NLS-1$
- mMaxOOoTxt = toolkit.createText( clientArea, "" ); //$NON-NLS-1$
+ mMaxOOoTxt = toolkit.createText( clientArea, new String( ) );
gd = new GridData( GridData.FILL_HORIZONTAL );
gd.horizontalSpan = GRID_COLUMS - 1;
mMaxOOoTxt.setLayoutData( gd );
@@ -188,7 +215,7 @@ public class IntegrationSection extends SectionPart {
setShellStyle(SWT.RESIZE | SWT.APPLICATION_MODAL);
- String textValue = mPlatformTxt.getText().replace(" ", ""); //$NON-NLS-1$ //$NON-NLS-2$
+ String textValue = mPlatformTxt.getText().replace(" ", new String( ) ); //$NON-NLS-1$
String[ ] selection = textValue.split( SEPARATOR );
mSelected = new ArrayList<String>( Arrays.asList( selection ) );
}
@@ -197,7 +224,7 @@ public class IntegrationSection extends SectionPart {
* @return the selected platforms in a comma-separated string.
*/
public String getSelected( ) {
- String selection = ""; //$NON-NLS-1$
+ String selection = new String( );
for (String selected : mSelected) {
selection += selected + SEPARATOR;
}
diff --git a/core/source/org/openoffice/ide/eclipse/core/editors/main/LicenseSection.java b/core/source/org/openoffice/ide/eclipse/core/editors/main/LicenseSection.java
index 7f04db2..8f3233a 100644
--- a/core/source/org/openoffice/ide/eclipse/core/editors/main/LicenseSection.java
+++ b/core/source/org/openoffice/ide/eclipse/core/editors/main/LicenseSection.java
@@ -1,6 +1,33 @@
-/**
+/*************************************************************************
+ *
+ * The Contents of this file are made available subject to the terms of
+ * the GNU Lesser General Public License Version 2.1
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2009 by Novell, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
*
- */
+ * The Initial Developer of the Original Code is: Cédric Bosdonnat.
+ *
+ * Copyright: 2009 by Novell, Inc.
+ *
+ * All Rights Reserved.
+ *
+ ************************************************************************/
package org.openoffice.ide.eclipse.core.editors.main;
import java.util.Locale;
@@ -19,6 +46,7 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;
+import org.openoffice.ide.eclipse.core.editors.Messages;
import org.openoffice.ide.eclipse.core.gui.ProjectSelectionDialog;
import org.openoffice.ide.eclipse.core.model.description.DescriptionModel;
@@ -73,13 +101,13 @@ public class LicenseSection extends LocalizedSection {
Section section = getSection();
section.setLayoutData(new GridData( GridData.FILL_BOTH ));
- section.setText( "License" );
+ section.setText( Messages.getString("LicenseSection.Title") ); //$NON-NLS-1$
pParent.setLayout( new GridLayout( LAYOUT_COLS, false ) );
// Create the checkboxes
Label descrLbl = pToolkit.createLabel( pParent,
- "License files are TXT files. They are localized and have to be selected here. If no file is selected for any locale, then no license will apply.",
+ Messages.getString("LicenseSection.Description"), //$NON-NLS-1$
SWT.WRAP );
GridData gd = new GridData( GridData.FILL_HORIZONTAL );
gd.horizontalSpan = LAYOUT_COLS;
@@ -89,7 +117,7 @@ public class LicenseSection extends LocalizedSection {
createFileControls( pToolkit, pParent );
mUserAcceptBtn = pToolkit.createButton( pParent,
- "Every user have to accept the license or only the administrator.",
+ Messages.getString("LicenseSection.UserAccept"), //$NON-NLS-1$
SWT.CHECK );
gd = new GridData( GridData.FILL_HORIZONTAL );
gd.horizontalSpan = LAYOUT_COLS;
@@ -102,7 +130,7 @@ public class LicenseSection extends LocalizedSection {
mSuppressUpdateBtn = pToolkit.createButton( pParent,
- "Do not ask to accept the license during an update.",
+ Messages.getString("LicenseSection.SuppressUpdate"), //$NON-NLS-1$
SWT.CHECK );
gd = new GridData( GridData.FILL_HORIZONTAL );
gd.horizontalSpan = LAYOUT_COLS;
@@ -123,20 +151,20 @@ public class LicenseSection extends LocalizedSection {
private void createFileControls(FormToolkit pToolkit, Composite pParent) {
// Create the folder selection controls
- Label pathLbl = pToolkit.createLabel( pParent, "License file" );
+ Label pathLbl = pToolkit.createLabel( pParent, Messages.getString("LicenseSection.LicenseFile") ); //$NON-NLS-1$
pathLbl.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING ) );
mFileTxt = pToolkit.createText( pParent, new String( ) );
mFileTxt.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
- mFileBrowseBtn = pToolkit.createButton( pParent, "...", SWT.PUSH );
+ mFileBrowseBtn = pToolkit.createButton( pParent, "...", SWT.PUSH ); //$NON-NLS-1$
mFileBrowseBtn.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) );
mFileBrowseBtn.addSelectionListener( new SelectionAdapter( ) {
@Override
public void widgetSelected(SelectionEvent pE) {
// Open the folder selection dialog
ProjectSelectionDialog dlg = new ProjectSelectionDialog( mProject,
- "Choose the folder where to place the license files" );
+ Messages.getString("LicenseSection.FileChooserTooltip") ); //$NON-NLS-1$
dlg.setShowOnlyFolders( true );
if ( dlg.open() == ProjectSelectionDialog.OK ) {
diff --git a/core/source/org/openoffice/ide/eclipse/core/editors/main/LocaleSelector.java b/core/source/org/openoffice/ide/eclipse/core/editors/main/LocaleSelector.java
index 8e87bd1..2a6f47f 100644
--- a/core/source/org/openoffice/ide/eclipse/core/editors/main/LocaleSelector.java
+++ b/core/source/org/openoffice/ide/eclipse/core/editors/main/LocaleSelector.java
@@ -1,3 +1,33 @@
+/*************************************************************************
+ *
+ * The Contents of this file are made available subject to the terms of
+ * the GNU Lesser General Public License Version 2.1
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2009 by Novell, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ * The Initial Developer of the Original Code is: Cédric Bosdonnat.
+ *
+ * Copyright: 2009 by Novell, Inc.
+ *
+ * All Rights Reserved.
+ *
+ ************************************************************************/
package org.openoffice.ide.eclipse.core.editors.main;
import java.util.ArrayList;
@@ -21,6 +51,7 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.openoffice.ide.eclipse.core.OOEclipsePlugin;
+import org.openoffice.ide.eclipse.core.editors.Messages;
import org.openoffice.ide.eclipse.core.gui.LocaleDialog;
import org.openoffice.ide.eclipse.core.i18n.ImagesConstants;
@@ -126,7 +157,8 @@ public class LocaleSelector {
* @param pParent the composite parent where to create the label and list.
*/
private void createList(FormToolkit pToolkit, Composite pParent) {
- Label localeLbl = pToolkit.createLabel( pParent, "Selected locale" );
+ Label localeLbl = pToolkit.createLabel( pParent,
+ Messages.getString("LocaleSelector.SelectedLocaleTitle") ); //$NON-NLS-1$
localeLbl.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING ) );
Combo list = new Combo( pParent, SWT.DROP_DOWN | SWT.READ_ONLY );
diff --git a/core/source/org/openoffice/ide/eclipse/core/editors/main/LocalizedSection.java b/core/source/org/openoffice/ide/eclipse/core/editors/main/LocalizedSection.java
index 5e87803..9609e57 100644
--- a/core/source/org/openoffice/ide/eclipse/core/editors/main/LocalizedSection.java
+++ b/core/source/org/openoffice/ide/eclipse/core/editors/main/LocalizedSection.java
@@ -1,21 +1,47 @@
+/*************************************************************************
+ *
+ * The Contents of this file are made available subject to the terms of
+ * the GNU Lesser General Public License Version 2.1
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2009 by Novell, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ * The Initial Developer of the Original Code is: Cédric Bosdonnat.
+ *
+ * Copyright: 2009 by Novell, Inc.
+ *
+ * All Rights Reserved.
+ *
+ ************************************************************************/
package org.openoffice.ide.eclipse.core.editors.main;
-import java.util.ArrayList;
import java.util.Locale;
-import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.forms.SectionPart;
import org.eclipse.ui.forms.editor.FormPage;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;
/**
- * @author cbosdonnat
+ * @author Cédric Bosdonnat
*
*/
public abstract class LocalizedSection extends SectionPart implements ILocaleListener {
diff --git a/core/source/org/openoffice/ide/eclipse/core/editors/main/MirrorsSection.java b/core/source/org/openoffice/ide/eclipse/core/editors/main/MirrorsSection.java
index c027679..d97bb63 100644
--- a/core/source/org/openoffice/ide/eclipse/core/editors/main/MirrorsSection.java
+++ b/core/source/org/openoffice/ide/eclipse/core/editors/main/MirrorsSection.java
@@ -1,6 +1,33 @@
-/**
+/*************************************************************************
+ *
+ * The Contents of this file are made available subject to the terms of
+ * the GNU Lesser General Public License Version 2.1
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2009 by Novell, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
*
- */
+ * The Initial Developer of the Original Code is: Cédric Bosdonnat.
+ *
+ * Copyright: 2009 by Novell, Inc.
+ *
+ * All Rights Reserved.
+ *
+ ************************************************************************/
package org.openoffice.ide.eclipse.core.editors.main;
import org.eclipse.jface.viewers.ArrayContentProvider;
@@ -34,13 +61,14 @@ import org.eclipse.ui.forms.SectionPart;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;
import org.openoffice.ide.eclipse.core.OOEclipsePlugin;
+import org.openoffice.ide.eclipse.core.editors.Messages;
import org.openoffice.ide.eclipse.core.i18n.ImagesConstants;
import org.openoffice.ide.eclipse.core.model.description.DescriptionModel;
/**
* Section showing the update-informations part of the description.xml file.
*
- * @author cbosdonnat
+ * @author Cédric Bosdonnat
*
*/
public class MirrorsSection extends SectionPart {
@@ -83,9 +111,9 @@ public class MirrorsSection extends SectionPart {
clientArea.setLayout( new GridLayout( 2, false ) );
- Label descrLbl = toolkit.createLabel( clientArea, "List the URLs of the update sites " +
- "to use for this extension. The first one is the primary mirror.",
- SWT.WRAP);
+ Label descrLbl = toolkit.createLabel( clientArea,
+ Messages.getString("MirrorsSection.Description"), //$NON-NLS-1$
+ SWT.WRAP);
GridData gd = new GridData( GridData.FILL_HORIZONTAL );
gd.horizontalSpan = 2;
descrLbl.setLayoutData( gd );
@@ -94,7 +122,8 @@ public class MirrorsSection extends SectionPart {
createTable( clientArea );
// Create the add controls
- Label addLbl = toolkit.createLabel( clientArea, "Specify a new mirror URL" );
+ Label addLbl = toolkit.createLabel( clientArea,
+ Messages.getString("MirrorsSection.MirrorTextTitle") ); //$NON-NLS-1$
gd = new GridData( GridData.FILL_HORIZONTAL );
gd.horizontalSpan = 2;
addLbl.setLayoutData( gd );
@@ -108,7 +137,7 @@ public class MirrorsSection extends SectionPart {
}
});
- mAddBtn = toolkit.createButton( clientArea, "Add", SWT.PUSH );
+ mAddBtn = toolkit.createButton( clientArea, Messages.getString("MirrorsSection.Add"), SWT.PUSH ); //$NON-NLS-1$
mAddBtn.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END ) );
mAddBtn.addSelectionListener( new SelectionAdapter( ) {
@Override
@@ -150,7 +179,7 @@ public class MirrorsSection extends SectionPart {
// Create the table context menu
Menu menu = new Menu( table );
mDeleteAction = new MenuItem( menu, SWT.PUSH );
- mDeleteAction.setText( "Remove" );
+ mDeleteAction.setText( Messages.getString("MirrorsSection.Remove") ); //$NON-NLS-1$
mDeleteAction.setImage( OOEclipsePlugin.getImage( ImagesConstants.DELETE ) );
mDeleteAction.setEnabled( false );
mDeleteAction.addSelectionListener( new SelectionAdapter( ) {
@@ -176,7 +205,7 @@ public class MirrorsSection extends SectionPart {
/**
* Label provider for the urls table.
*
- * @author cbosdonnat
+ * @author Cédric Bosdonnat
*
*/
private class UrlLabelProvider extends LabelProvider implements ITableLabelProvider {
@@ -199,7 +228,7 @@ public class MirrorsSection extends SectionPart {
/**
* Class allowing changes from the Urls table viewer on the model.
*
- * @author cbosdonnat
+ * @author Cédric Bosdonnat
*
*/
private class UrlCellModifier implements ICellModifier {
diff --git a/core/source/org/openoffice/ide/eclipse/core/editors/main/PackageOverviewFormPage.java b/core/source/org/openoffice/ide/eclipse/core/editors/main/PackageOverviewFormPage.java
index 9f70a62..f79a16d 100644
--- a/core/source/org/openoffice/ide/eclipse/core/editors/main/PackageOverviewFormPage.java
+++ b/core/source/org/openoffice/ide/eclipse/core/editors/main/PackageOverviewFormPage.java
@@ -43,37 +43,27 @@
************************************************************************/
package org.openoffice.ide.eclipse.core.editors.main;
-import java.util.ArrayList;
-
import org.eclipse.core.resources.IProject;
import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.CTabFolder;
-import org.eclipse.swt.custom.CTabItem;
-import org.eclipse.swt.graphics.Color;
-import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Label;
import org.eclipse.ui.IFileEditorInput;
-import org.eclipse.ui.forms.IFormColors;
import org.eclipse.ui.forms.IManagedForm;
import org.eclipse.ui.forms.editor.FormEditor;
import org.eclipse.ui.forms.editor.FormPage;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.ScrolledForm;
-import org.openoffice.ide.eclipse.core.OOEclipsePlugin;
import org.openoffice.ide.eclipse.core.editors.Messages;
-import org.openoffice.ide.eclipse.core.gui.OverlayImageIcon;
-import org.openoffice.ide.eclipse.core.i18n.ImagesConstants;
import org.openoffice.ide.eclipse.core.model.description.DescriptionModel;
/**
* The form page of the package editor helping to configure the project's
* description and main properties.
*
- * @author cedricbosdo
+ * @author Cédric Bosdonnat
*
*/
public class PackageOverviewFormPage extends FormPage {
@@ -81,8 +71,6 @@ public class PackageOverviewFormPage extends FormPage {
private LocaleSelector mLocaleSel;
private DescriptionModel mModel;
- private ArrayList<Control> mPages;
-
/**
* Constructor.
*
@@ -91,8 +79,6 @@ public class PackageOverviewFormPage extends FormPage {
*/
public PackageOverviewFormPage(FormEditor pEditor, String pId ) {
super(pEditor, pId, Messages.getString("PackageOverviewFormPage.Title")); //$NON-NLS-1$
-
- mPages = new ArrayList<Control>( );
}
/**
@@ -117,7 +103,7 @@ public class PackageOverviewFormPage extends FormPage {
super.createFormContent(pManagedForm);
ScrolledForm form = pManagedForm.getForm();
- form.setText( "Overview" );
+ form.setText( Messages.getString("PackageOverviewFormPage.Title") ); //$NON-NLS-1$
form.getBody().setLayout( new GridLayout( ) );
@@ -125,7 +111,7 @@ public class PackageOverviewFormPage extends FormPage {
toolkit.decorateFormHeading( form.getForm() );
Label descrLbl = toolkit.createLabel( form.getBody(),
- "Some of the fields are localized; they can't be filled when no locale is selected.",
+ Messages.getString("PackageOverviewFormPage.Description"), //$NON-NLS-1$
SWT.WRAP );
descrLbl.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
@@ -178,7 +164,7 @@ public class PackageOverviewFormPage extends FormPage {
GeneralSection generalSection = new GeneralSection( leftColumn, this );
mLocaleSel.addListener( generalSection );
- IntegrationSection integrationSection = new IntegrationSection( leftColumn, this );
+ new IntegrationSection( leftColumn, this );
PublisherSection publisherSection = new PublisherSection( leftColumn, this );
mLocaleSel.addListener( publisherSection );
@@ -186,7 +172,7 @@ public class PackageOverviewFormPage extends FormPage {
ReleaseNotesSection releaseNotesSection = new ReleaseNotesSection( leftColumn, this );
mLocaleSel.addListener( releaseNotesSection );
- MirrorsSection mirrorsSection = new MirrorsSection( rightColumn, this );
+ new MirrorsSection( rightColumn, this );
IFileEditorInput input = (IFileEditorInput)getEditorInput();
IProject project = input.getFile().getProject();
diff --git a/core/source/org/openoffice/ide/eclipse/core/editors/main/PublisherSection.java b/core/source/org/openoffice/ide/eclipse/core/editors/main/PublisherSection.java
index babf60f..0e6bb53 100644
--- a/core/source/org/openoffice/ide/eclipse/core/editors/main/PublisherSection.java
+++ b/core/source/org/openoffice/ide/eclipse/core/editors/main/PublisherSection.java
@@ -1,6 +1,33 @@
-/**
+/*************************************************************************
+ *
+ * The Contents of this file are made available subject to the terms of
+ * the GNU Lesser General Public License Version 2.1
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2009 by Novell, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
*
- */
+ * The Initial Developer of the Original Code is: Cédric Bosdonnat.
+ *
+ * Copyright: 2009 by Novell, Inc.
+ *
+ * All Rights Reserved.
+ *
+ ************************************************************************/
package org.openoffice.ide.eclipse.core.editors.main;
import java.util.Locale;
@@ -15,13 +42,14 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;
+import org.openoffice.ide.eclipse.core.editors.Messages;
import org.openoffice.ide.eclipse.core.model.description.DescriptionModel;
import org.openoffice.ide.eclipse.core.model.description.PublisherInfos;
/**
* Class implementing the publisher form section.
*
- * @author cbosdonnat
+ * @author Cédric Bosdonnat
*
*/
public class PublisherSection extends LocalizedSection {
@@ -38,7 +66,7 @@ public class PublisherSection extends LocalizedSection {
public PublisherSection(Composite pParent, PackageOverviewFormPage pPage) {
super( pParent, pPage, Section.TITLE_BAR );
- getSection().setText( "Provider informations" );
+ getSection().setText( Messages.getString("PublisherSection.Title") ); //$NON-NLS-1$
mModel = pPage.getModel();
}
@@ -51,15 +79,15 @@ public class PublisherSection extends LocalizedSection {
pParent.setLayout( new GridLayout( 2, false ) );
- Label descrLbl = pToolkit.createLabel( pParent, "Define the localized informartions on the " +
- "extension publisher.",
+ Label descrLbl = pToolkit.createLabel( pParent,
+ Messages.getString("PublisherSection.Description"), //$NON-NLS-1$
SWT.WRAP );
GridData gd = new GridData( GridData.FILL_HORIZONTAL );
gd.horizontalSpan = 2;
descrLbl.setLayoutData( gd );
// Name controls
- pToolkit.createLabel( pParent, "Name" );
+ pToolkit.createLabel( pParent, Messages.getString("PublisherSection.Name") ); //$NON-NLS-1$
mNameTxt = pToolkit.createText( pParent, "" ); //$NON-NLS-1$
mNameTxt.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
mNameTxt.setEnabled( false );
@@ -71,7 +99,7 @@ public class PublisherSection extends LocalizedSection {
});
// Url controls
- pToolkit.createLabel( pParent, "Url" );
+ pToolkit.createLabel( pParent, Messages.getString("PublisherSection.Url") ); //$NON-NLS-1$
mUrlTxt = pToolkit.createText( pParent, "" ); //$NON-NLS-1$
mUrlTxt.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
mUrlTxt.setEnabled( false );
diff --git a/core/source/org/openoffice/ide/eclipse/core/editors/main/ReleaseNotesSection.java b/core/source/org/openoffice/ide/eclipse/core/editors/main/ReleaseNotesSection.java
index b2928c6..de83b06 100644
--- a/core/source/org/openoffice/ide/eclipse/core/editors/main/ReleaseNotesSection.java
+++ b/core/source/org/openoffice/ide/eclipse/core/editors/main/ReleaseNotesSection.java
@@ -1,6 +1,33 @@
-/**
+/*************************************************************************
+ *
+ * The Contents of this file are made available subject to the terms of
+ * the GNU Lesser General Public License Version 2.1
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2009 by Novell, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
*
- */
+ * The Initial Developer of the Original Code is: Cédric Bosdonnat.
+ *
+ * Copyright: 2009 by Novell, Inc.
+ *
+ * All Rights Reserved.
+ *
+ ************************************************************************/
package org.openoffice.ide.eclipse.core.editors.main;
import java.util.Locale;
@@ -15,12 +42,13 @@ import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.Section;
+import org.openoffice.ide.eclipse.core.editors.Messages;
import org.openoffice.ide.eclipse.core.model.description.DescriptionModel;
/**
* Section displaying the release notes part of the descriptions.xml file.
*
- * @author cbosdonnat
+ * @author Cédric Bosdonnat
*
*/
public class ReleaseNotesSection extends LocalizedSection implements
@@ -37,7 +65,7 @@ public class ReleaseNotesSection extends LocalizedSection implements
public ReleaseNotesSection(Composite pParent, PackageOverviewFormPage pPage) {
super( pParent, pPage, Section.TITLE_BAR );
- getSection().setText( "Release notes" );
+ getSection().setText( Messages.getString("ReleaseNotesSection.Title") ); //$NON-NLS-1$
mModel = pPage.getModel();
}
@@ -50,14 +78,14 @@ public class ReleaseNotesSection extends LocalizedSection implements
pParent.setLayout( new GridLayout( 2, false ) );
Label descrLbl = pToolkit.createLabel( pParent,
- "Defines the localized release notes web pages for this version.",
+ Messages.getString("ReleaseNotesSection.Description"), //$NON-NLS-1$
SWT.WRAP );
GridData gd = new GridData( GridData.FILL_HORIZONTAL );
gd.horizontalSpan = 2;
descrLbl.setLayoutData( gd );
// Url controls
- pToolkit.createLabel( pParent, "Url" );
+ pToolkit.createLabel( pParent, Messages.getString("ReleaseNotesSection.Url") ); //$NON-NLS-1$
mUrlTxt = pToolkit.createText( pParent, new String( ) );
mUrlTxt.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
mUrlTxt.setEnabled( false );
diff --git a/core/source/org/openoffice/ide/eclipse/core/editors/messages.properties b/core/source/org/openoffice/ide/eclipse/core/editors/messages.properties
index 4b2d1d6..796902a 100644
--- a/core/source/org/openoffice/ide/eclipse/core/editors/messages.properties
+++ b/core/source/org/openoffice/ide/eclipse/core/editors/messages.properties
@@ -1,12 +1,15 @@
RegDocumentProvider.DocumentCreationError=Document creation error
RegDocumentProvider.RegviewError=Error while reading regview output
+PackagePropertiesEditor.DescriptionParseError=Error parsing description.xml file
PackagePropertiesFormPage.PackagePropertiesText=Contents
ContentsSection.Title=Package content
+IntegrationSection.Description=Define the dependencies of the extension: OpenOffice.org version and compatible system.
IntegrationSection.MaxOOoVersion=Maximum OOo version
IntegrationSection.MinOOoVersion=Minimum OOo version
IntegrationSection.Platforms=Platforms
IntegrationSection.Title=Compatibility
PackageDescriptionSection.Title=Package descriptions
+PackageOverviewFormPage.Description=Some of the fields are localized; they can't be filled when no locale is selected.
PackageOverviewFormPage.Title=Overview
PackageDescriptionSection.AddButton=Add
PackageDescriptionSection.AddDescription=Select the description file to add
@@ -17,3 +20,26 @@ LibsSection.DialogLibrary=Dialog library
LibsSection.AddButton=Add
LibsSection.AddDescription=Select the library directory
LibsSection.DelButton=Del
+LocaleSelector.SelectedLocaleTitle=Selected locale
+GeneralSection.Description=Define the extension localized name and identification informations.
+GeneralSection.Identifier=Identifier
+GeneralSection.Name=Name
+GeneralSection.Title=General informations
+GeneralSection.Version=Version
+LicenseSection.Description=License files are TXT files. They are localized and have to be selected here. If no file is selected for any locale, then no license will apply.
+LicenseSection.FileChooserTooltip=Choose the folder where to place the license files
+LicenseSection.LicenseFile=License file
+LicenseSection.SuppressUpdate=Do not ask to accept the license during an update.
+LicenseSection.Title=License
+LicenseSection.UserAccept=Every user have to accept the license or only the administrator.
+MirrorsSection.Add=Add
+MirrorsSection.Description=List the URLs of the update sites to use for this extension. The first one is the primary mirror.
+MirrorsSection.MirrorTextTitle=Specify a new mirror URL
+MirrorsSection.Remove=Remove
+PublisherSection.1=Define the localized informartions on the extension publisher.
+PublisherSection.Name=Name
+PublisherSection.Title=Provider informations
+PublisherSection.Url=Url
+ReleaseNotesSection.Description=Defines the localized release notes web pages for this version.
+ReleaseNotesSection.Title=Release notes
+ReleaseNotesSection.Url=Url
diff --git a/core/source/org/openoffice/ide/eclipse/core/gui/LocaleDialog.java b/core/source/org/openoffice/ide/eclipse/core/gui/LocaleDialog.java
index aed90d0..7239ae6 100644
--- a/core/source/org/openoffice/ide/eclipse/core/gui/LocaleDialog.java
+++ b/core/source/org/openoffice/ide/eclipse/core/gui/LocaleDialog.java
@@ -71,7 +71,7 @@ public class LocaleDialog extends Dialog {
// Language
Label langLbl = new Label( body, SWT.NONE );
- langLbl.setText( "Locale" );
+ langLbl.setText( Messages.getString("LocaleDialog.Title") ); //$NON-NLS-1$
langLbl.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING ) );
Combo list = new Combo( body, SWT.READ_ONLY | SWT.DROP_DOWN );
diff --git a/core/source/org/openoffice/ide/eclipse/core/gui/messages.properties b/core/source/org/openoffice/ide/eclipse/core/gui/messages.properties
index 7fc2f67..7dd2bbf 100644
--- a/core/source/org/openoffice/ide/eclipse/core/gui/messages.properties
+++ b/core/source/org/openoffice/ide/eclipse/core/gui/messages.properties
@@ -1,5 +1,6 @@
AbstractTable.Add=Add
AbstractTable.Del=Del
+LocaleDialog.Title=Locale
OOoTable.Title=Available OpenOffice.org installations
OOoTable.NameTitle=Name
OOoTable.PathTitle=Path to OOo installation
diff --git a/core/source/org/openoffice/ide/eclipse/core/model/description/DescriptionHandler.java b/core/source/org/openoffice/ide/eclipse/core/model/description/DescriptionHandler.java
index c7d2426..cca35b1 100644
--- a/core/source/org/openoffice/ide/eclipse/core/model/description/DescriptionHandler.java
+++ b/core/source/org/openoffice/ide/eclipse/core/model/description/DescriptionHandler.java
@@ -1,3 +1,33 @@
+/*************************************************************************
+ *
+ * The Contents of this file are made available subject to the terms of
+ * the GNU Lesser General Public License Version 2.1
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2009 by Novell, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ * The Initial Developer of the Original Code is: Cédric Bosdonnat.
+ *
+ * Copyright: 2009 by Novell, Inc.
+ *
+ * All Rights Reserved.
+ *
+ ************************************************************************/
package org.openoffice.ide.eclipse.core.model.description;
import java.util.ArrayList;
@@ -13,7 +43,7 @@ import org.xml.sax.helpers.DefaultHandler;
/**
* Class handling the SAX events for the description.xml file.
*
- * @author cbosdonnat
+ * @author Cédric Bosdonnat
*
*/
public class DescriptionHandler extends DefaultHandler {
diff --git a/core/source/org/openoffice/ide/eclipse/core/model/description/DescriptionModel.java b/core/source/org/openoffice/ide/eclipse/core/model/description/DescriptionModel.java
index 6b481ed..bb3aaf2 100644
--- a/core/source/org/openoffice/ide/eclipse/core/model/description/DescriptionModel.java
+++ b/core/source/org/openoffice/ide/eclipse/core/model/description/DescriptionModel.java
@@ -1,3 +1,33 @@
+/*************************************************************************
+ *
+ * The Contents of this file are made available subject to the terms of
+ * the GNU Lesser General Public License Version 2.1
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2009 by Novell, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ * The Initial Developer of the Original Code is: Cédric Bosdonnat.
+ *
+ * Copyright: 2009 by Novell, Inc.
+ *
+ * All Rights Reserved.
+ *
+ ************************************************************************/
package org.openoffice.ide.eclipse.core.model.description;
import java.util.ArrayList;
@@ -9,7 +39,7 @@ import java.util.Set;
/**
* Class representing the description.xml file.
*
- * @author cbosdonnat
+ * @author Cédric Bosdonnat
*
*/
public class DescriptionModel {
diff --git a/core/source/org/openoffice/ide/eclipse/core/model/description/PublisherInfos.java b/core/source/org/openoffice/ide/eclipse/core/model/description/PublisherInfos.java
index bd84df2..9dbbcc3 100644
--- a/core/source/org/openoffice/ide/eclipse/core/model/description/PublisherInfos.java
+++ b/core/source/org/openoffice/ide/eclipse/core/model/description/PublisherInfos.java
@@ -1,3 +1,33 @@
+/*************************************************************************
+ *
+ * The Contents of this file are made available subject to the terms of
+ * the GNU Lesser General Public License Version 2.1
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2009 by Novell, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ * The Initial Developer of the Original Code is: Cédric Bosdonnat.
+ *
+ * Copyright: 2009 by Novell, Inc.
+ *
+ * All Rights Reserved.
+ *
+ ************************************************************************/
package org.openoffice.ide.eclipse.core.model.description;
/**
diff --git a/core/source/org/openoffice/ide/eclipse/core/model/description/XMLTokens.java b/core/source/org/openoffice/ide/eclipse/core/model/description/XMLTokens.java
index 8109b5b..336adc4 100644
--- a/core/source/org/openoffice/ide/eclipse/core/model/description/XMLTokens.java
+++ b/core/source/org/openoffice/ide/eclipse/core/model/description/XMLTokens.java
@@ -1,3 +1,33 @@
+/*************************************************************************
+ *
+ * The Contents of this file are made available subject to the terms of
+ * the GNU Lesser General Public License Version 2.1
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2009 by Novell, Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ * The Initial Developer of the Original Code is: Cédric Bosdonnat.
+ *
+ * Copyright: 2009 by Novell, Inc.
+ *
+ * All Rights Reserved.
+ *
+ ************************************************************************/
package org.openoffice.ide.eclipse.core.model.description;
/**
More information about the ooo-build-commit
mailing list