directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r557557 - in /directory/studio/trunk/studio-apacheds-schemaeditor: ./ resources/icons/ src/main/java/org/apache/directory/studio/apacheds/schemaeditor/ src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/
Date Thu, 19 Jul 2007 10:23:10 GMT
Author: pamarcelot
Date: Thu Jul 19 03:23:07 2007
New Revision: 557557

URL: http://svn.apache.org/viewvc?view=rev&rev=557557
Log:
Added the CommitChangesWizard

Added:
    directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/commit_changes.gif
  (with props)
    directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/difference_add.gif
  (with props)
    directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/difference_modify.gif
  (with props)
    directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/difference_remove.gif
  (with props)
    directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/CommitChangesDifferencesWizardPage.java
    directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/CommitChangesInformationWizardPage.java
    directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/CommitChangesWizard.java
Removed:
    directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/difference_add.png
    directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/difference_modify.png
    directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/difference_remove.png
Modified:
    directory/studio/trunk/studio-apacheds-schemaeditor/plugin.xml
    directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/PluginConstants.java

Modified: directory/studio/trunk/studio-apacheds-schemaeditor/plugin.xml
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/plugin.xml?view=diff&rev=557557&r1=557556&r2=557557
==============================================================================
--- directory/studio/trunk/studio-apacheds-schemaeditor/plugin.xml (original)
+++ directory/studio/trunk/studio-apacheds-schemaeditor/plugin.xml Thu Jul 19 03:23:07 2007
@@ -144,6 +144,13 @@
           id="org.apache.directory.studio.apacheds.schemaeditor.wizards.ExportProjectsWizard"
           name="Schema Projects">
     </wizard>
+	<wizard
+          category="org.apache.directory.studio.apacheds.schemaeditor.exportWizardCategory"
+          class="org.apache.directory.studio.apacheds.schemaeditor.view.wizards.CommitChangesWizard"
+          icon="resources/icons/commit_changes.gif"
+          id="org.apache.directory.studio.apacheds.schemaeditor.wizards.CommitChangesWizard"
+          name="Commit Changes">
+    </wizard>
  </extension>
  <extension
        point="org.eclipse.ui.importWizards">

Added: directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/commit_changes.gif
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/commit_changes.gif?view=auto&rev=557557
==============================================================================
Binary file - no diff available.

Propchange: directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/commit_changes.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/difference_add.gif
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/difference_add.gif?view=auto&rev=557557
==============================================================================
Binary file - no diff available.

Propchange: directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/difference_add.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/difference_modify.gif
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/difference_modify.gif?view=auto&rev=557557
==============================================================================
Binary file - no diff available.

Propchange: directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/difference_modify.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/difference_remove.gif
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/difference_remove.gif?view=auto&rev=557557
==============================================================================
Binary file - no diff available.

Propchange: directory/studio/trunk/studio-apacheds-schemaeditor/resources/icons/difference_remove.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/PluginConstants.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/PluginConstants.java?view=diff&rev=557557&r1=557556&r2=557557
==============================================================================
--- directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/PluginConstants.java
(original)
+++ directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/PluginConstants.java
Thu Jul 19 03:23:07 2007
@@ -36,12 +36,13 @@
     public static final String IMG_ATTRIBUTE_TYPE_NEW = "resources/icons/attribute_type_new.gif";
     public static final String IMG_ATTRIBUTE_TYPE_NEW_WIZARD = "resources/icons/attribute_type_new_wizard.png";
     public static final String IMG_CONNECT = "resources/icons/connect.gif";
+    public static final String IMG_COMMIT_CHANGES_WIZARD = "resources/icons/commit_changes_wizard.png";
     public static final String IMG_COLLAPSE_ALL = "resources/icons/collapse_all.gif";
     public static final String IMG_DELETE = "resources/icons/delete.gif";
     public static final String IMG_DISCONNECT = "resources/icons/disconnect.gif";
-    public static final String IMG_DIFFERENCE_ADD = "resources/icons/difference_add.png";
-    public static final String IMG_DIFFERENCE_MODIFY = "resources/icons/difference_modify.png";
-    public static final String IMG_DIFFERENCE_REMOVE = "resources/icons/difference_remove.png";
+    public static final String IMG_DIFFERENCE_ADD = "resources/icons/difference_add.gif";
+    public static final String IMG_DIFFERENCE_MODIFY = "resources/icons/difference_modify.gif";
+    public static final String IMG_DIFFERENCE_REMOVE = "resources/icons/difference_remove.gif";
     public static final String IMG_FOLDER = "resources/icons/folder.gif";
     public static final String IMG_FOLDER_AT = "resources/icons/folder_at.gif";
     public static final String IMG_FOLDER_OC = "resources/icons/folder_oc.gif";

Added: directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/CommitChangesDifferencesWizardPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/CommitChangesDifferencesWizardPage.java?view=auto&rev=557557
==============================================================================
--- directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/CommitChangesDifferencesWizardPage.java
(added)
+++ directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/CommitChangesDifferencesWizardPage.java
Thu Jul 19 03:23:07 2007
@@ -0,0 +1,163 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.studio.apacheds.schemaeditor.view.wizards;
+
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.apache.directory.shared.ldap.schema.ObjectClassTypeEnum;
+import org.apache.directory.shared.ldap.schema.UsageEnum;
+import org.apache.directory.studio.apacheds.schemaeditor.Activator;
+import org.apache.directory.studio.apacheds.schemaeditor.PluginConstants;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.AddAliasDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.AddDescriptionDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.AddEqualityDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.AddMandatoryATDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.AddOptionalATDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.AddOrderingDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.AddSubstringDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.AddSuperiorATDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.AddSuperiorOCDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.AddSyntaxDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.AddSyntaxLengthDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.Difference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.ModifyClassTypeDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.ModifyCollectiveDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.ModifyDescriptionDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.ModifyEqualityDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.ModifyNoUserModificationDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.ModifyObsoleteDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.ModifyOrderingDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.ModifySingleValueDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.ModifySubstringDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.ModifySuperiorATDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.ModifySyntaxDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.ModifySyntaxLengthDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.ModifyUsageDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.RemoveAliasDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.RemoveDescriptionDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.RemoveEqualityDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.RemoveMandatoryATDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.RemoveOptionalATDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.RemoveOrderingDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.RemoveSubstringDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.RemoveSuperiorATDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.RemoveSuperiorOCDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.RemoveSyntaxDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.model.difference.RemoveSyntaxLengthDifference;
+import org.apache.directory.studio.apacheds.schemaeditor.view.widget.DifferencesWidget;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+
+
+/**
+ * This class represents the WizardPage of the ExportProjectsWizard.
+ * <p>
+ * It is used to let the user enter the informations about the
+ * schemas projects he wants to export and where to export.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class CommitChangesDifferencesWizardPage extends WizardPage
+{
+    /**
+     * Creates a new instance of ExportSchemasAsXmlWizardPage.
+     */
+    protected CommitChangesDifferencesWizardPage()
+    {
+        super( "CommitChangesDifferencesWizardPage" );
+        setTitle( "Commit Changes" );
+        setDescription( "Displays the modifications made on the schema." );
+        setImageDescriptor( AbstractUIPlugin.imageDescriptorFromPlugin( Activator.PLUGIN_ID,
+            PluginConstants.IMG_COMMIT_CHANGES_WIZARD ) );
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
+     */
+    public void createControl( Composite parent )
+    {
+        Composite composite = new Composite( parent, SWT.NULL );
+        GridLayout layout = new GridLayout();
+        composite.setLayout( layout );
+
+        DifferencesWidget differencesWidget = new DifferencesWidget();
+        differencesWidget.createWidget( composite );
+
+        List<Difference> differences = new ArrayList<Difference>();
+        differences.add( new AddAliasDifference( null, null, "alias1" ) );
+        differences.add( new RemoveAliasDifference( null, null, "alias2" ) );
+        differences.add( new AddDescriptionDifference( null, null, "Description" ) );
+        differences.add( new ModifyDescriptionDifference( null, null, "Old description",
"New Description" ) );
+        differences.add( new RemoveDescriptionDifference( null, null, "Description" ) );
+        differences.add( new AddEqualityDifference( null, null, "equality" ) );
+        differences.add( new ModifyEqualityDifference( null, null, "old equality", "new equality"
) );
+        differences.add( new RemoveEqualityDifference( null, null, "equality" ) );
+        differences.add( new AddMandatoryATDifference( null, null, "name" ) );
+        differences.add( new RemoveMandatoryATDifference( null, null, "name2" ) );
+        differences.add( new AddOptionalATDifference( null, null, "name" ) );
+        differences.add( new RemoveOptionalATDifference( null, null, "name2" ) );
+        differences.add( new AddOrderingDifference( null, null, "ordering" ) );
+        differences.add( new ModifyOrderingDifference( null, null, "old ordering", "new ordering"
) );
+        differences.add( new RemoveOrderingDifference( null, null, "ordering" ) );
+        differences.add( new AddSubstringDifference( null, null, "substring" ) );
+        differences.add( new ModifySubstringDifference( null, null, "old substring", "new
substring" ) );
+        differences.add( new RemoveSubstringDifference( null, null, "substring" ) );
+        differences.add( new AddSuperiorATDifference( null, null, "supAT" ) );
+        differences.add( new ModifySuperiorATDifference( null, null, "oldSupAT", "newSupAT"
) );
+        differences.add( new RemoveSuperiorATDifference( null, null, "supAT" ) );
+        differences.add( new AddSuperiorOCDifference( null, null, "supOC" ) );
+        differences.add( new RemoveSuperiorOCDifference( null, null, "supOC" ) );
+        differences.add( new AddSyntaxDifference( null, null, "syntax" ) );
+        differences.add( new ModifySyntaxDifference( null, null, "syntax1", "syntax2" ) );
+        differences.add( new RemoveSyntaxDifference( null, null, "syntax" ) );
+        differences.add( new AddSyntaxLengthDifference( null, null, 1234 ) );
+        differences.add( new ModifySyntaxLengthDifference( null, null, 1234, 12345 ) );
+        differences.add( new RemoveSyntaxLengthDifference( null, null, 1234 ) );
+        differences.add( new ModifyClassTypeDifference( null, null, ObjectClassTypeEnum.AUXILIARY,
+            ObjectClassTypeEnum.ABSTRACT ) );
+        differences.add( new ModifyCollectiveDifference( null, null, false, true ) );
+        differences.add( new ModifyNoUserModificationDifference( null, null, true, false
) );
+        differences.add( new ModifyObsoleteDifference( null, null, true, false ) );
+        differences.add( new ModifySingleValueDifference( null, null, true, false ) );
+        differences.add( new ModifyUsageDifference( null, null, UsageEnum.DISTRIBUTED_OPERATION,
+            UsageEnum.DSA_OPERATION ) );
+        differencesWidget.setInput( differences );
+
+        initFields();
+
+        setControl( composite );
+    }
+
+
+    /**
+     * Initializes the UI Fields.
+     */
+    private void initFields()
+    {
+
+    }
+}

Added: directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/CommitChangesInformationWizardPage.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/CommitChangesInformationWizardPage.java?view=auto&rev=557557
==============================================================================
--- directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/CommitChangesInformationWizardPage.java
(added)
+++ directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/CommitChangesInformationWizardPage.java
Thu Jul 19 03:23:07 2007
@@ -0,0 +1,81 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.studio.apacheds.schemaeditor.view.wizards;
+
+
+import org.apache.directory.studio.apacheds.schemaeditor.Activator;
+import org.apache.directory.studio.apacheds.schemaeditor.PluginConstants;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+
+
+/**
+ * This class represents the InformationWizardPage of the CommitChangesWizard.
+ * <p>
+ * It is used to let the user enter the informations about the
+ * schemas projects he wants to export and where to export.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class CommitChangesInformationWizardPage extends WizardPage
+{
+    // UI Fields
+
+    /**
+     * Creates a new instance of ExportSchemasAsXmlWizardPage.
+     */
+    protected CommitChangesInformationWizardPage()
+    {
+        super( "CommitChangesInformationWizardPage" );
+        setTitle( "Commit Changes" );
+        setDescription( "Please read the following information before committing the changes
made on the schema." );
+        setImageDescriptor( AbstractUIPlugin.imageDescriptorFromPlugin( Activator.PLUGIN_ID,
+            PluginConstants.IMG_COMMIT_CHANGES_WIZARD ) );
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
+     */
+    public void createControl( Composite parent )
+    {
+        Composite composite = new Composite( parent, SWT.NULL );
+        GridLayout layout = new GridLayout();
+        composite.setLayout( layout );
+        composite.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) );
+
+        // Information Label
+        String informationString = "You are about to commit changes to Apache Directory Server."
+ "\n\n"
+            + "Please carefully review the changes made on the schema on the next page."
+ "\n\n"
+            + "Commiting changes with an inconsistent schema may corrupt you server.";
+        Label informationLabel = new Label( composite, SWT.WRAP );
+        informationLabel.setText( informationString );
+        informationLabel.setLayoutData( new GridData( SWT.FILL, SWT.CENTER, true, true )
);
+
+        setControl( composite );
+    }
+
+}

Added: directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/CommitChangesWizard.java
URL: http://svn.apache.org/viewvc/directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/CommitChangesWizard.java?view=auto&rev=557557
==============================================================================
--- directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/CommitChangesWizard.java
(added)
+++ directory/studio/trunk/studio-apacheds-schemaeditor/src/main/java/org/apache/directory/studio/apacheds/schemaeditor/view/wizards/CommitChangesWizard.java
Thu Jul 19 03:23:07 2007
@@ -0,0 +1,84 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.studio.apacheds.schemaeditor.view.wizards;
+
+
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.wizard.IWizardPage;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.ui.IExportWizard;
+import org.eclipse.ui.IWorkbench;
+
+
+/**
+ * This class represents the wizard to commit changes to the Apache Directory Server.
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class CommitChangesWizard extends Wizard implements IExportWizard
+{
+    // The pages of the wizard
+    private CommitChangesInformationWizardPage commitChangesInformation;
+    private CommitChangesDifferencesWizardPage commitChangesDifferences;
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.wizard.Wizard#addPages()
+     */
+    public void addPages()
+    {
+        // Creating pages
+        commitChangesInformation = new CommitChangesInformationWizardPage();
+        commitChangesDifferences = new CommitChangesDifferencesWizardPage();
+
+        // Adding pages
+        addPage( commitChangesInformation );
+        addPage( commitChangesDifferences );
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.wizard.Wizard#performFinish()
+     */
+    public boolean performFinish()
+    {
+        // TODO Implement
+
+        return true;
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.jface.wizard.Wizard#canFinish()
+     */
+    public boolean canFinish()
+    {
+        return ( getContainer().getCurrentPage() instanceof CommitChangesDifferencesWizardPage
);
+    }
+
+
+    /* (non-Javadoc)
+     * @see org.eclipse.ui.IWorkbenchWizard#init(org.eclipse.ui.IWorkbench, org.eclipse.jface.viewers.IStructuredSelection)
+     */
+    public void init( IWorkbench workbench, IStructuredSelection selection )
+    {
+    }
+}



Mime
View raw message