[cc-commits] [CC SVN] r14575 - ccooo/branches/akila-gsoc-2010/src/org/creativecommons/openoffice/ui/license
webmaster at creativecommons.org
webmaster at creativecommons.org
Fri Jul 16 14:25:11 EDT 2010
Author: akila87
Date: 2010-07-16 18:25:11 +0000 (Fri, 16 Jul 2010)
New Revision: 14575
Modified:
ccooo/branches/akila-gsoc-2010/src/org/creativecommons/openoffice/ui/license/AllowRemixListener.java
Log:
Modified: ccooo/branches/akila-gsoc-2010/src/org/creativecommons/openoffice/ui/license/AllowRemixListener.java
===================================================================
--- ccooo/branches/akila-gsoc-2010/src/org/creativecommons/openoffice/ui/license/AllowRemixListener.java 2010-07-12 18:06:32 UTC (rev 14574)
+++ ccooo/branches/akila-gsoc-2010/src/org/creativecommons/openoffice/ui/license/AllowRemixListener.java 2010-07-16 18:25:11 UTC (rev 14575)
@@ -32,39 +32,39 @@
@Override
public void itemStateChanged(ItemEvent event) {
- XCheckBox allow_Remixing = ((XCheckBox)
- UnoRuntime.queryInterface(XCheckBox.class, event.Source));
- try {
-
- if (allow_Remixing.getState() == (short)0) {
- // if remixing is not allowed, you can't require Share-Alike
- this.getDialog().setCheckboxValue(
- this.getDialog().CHK_REQUIRE_SHAREALIKE, Boolean.FALSE);
-
- ((XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,
- this.getDialog().getNameContainer().getByName(
- this.getDialog().CHK_REQUIRE_SHAREALIKE))).
- setPropertyValue("Enabled", Boolean.FALSE);
-
- } else {
- ((XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,
- this.getDialog().getNameContainer().getByName(
- this.getDialog().CHK_REQUIRE_SHAREALIKE))).
- setPropertyValue("Enabled", Boolean.TRUE);
-
- }
-
- } catch (com.sun.star.lang.IllegalArgumentException ex) {
- ex.printStackTrace();
- } catch (WrappedTargetException ex) {
- ex.printStackTrace();
- } catch (PropertyVetoException ex) {
- ex.printStackTrace();
- } catch (UnknownPropertyException ex) {
- ex.printStackTrace();
- } catch (NoSuchElementException ex) {
- ex.printStackTrace();
- }
+// XCheckBox allow_Remixing = ((XCheckBox)
+// UnoRuntime.queryInterface(XCheckBox.class, event.Source));
+// try {
+//
+// if (allow_Remixing.getState() == (short)0) {
+// // if remixing is not allowed, you can't require Share-Alike
+// this.getDialog().setCheckboxValue(
+// this.getDialog().CHK_REQUIRE_SHAREALIKE, Boolean.FALSE);
+//
+// ((XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,
+// this.getDialog().getNameContainer().getByName(
+// this.getDialog().CHK_REQUIRE_SHAREALIKE))).
+// setPropertyValue("Enabled", Boolean.FALSE);
+//
+// } else {
+// ((XPropertySet)UnoRuntime.queryInterface(XPropertySet.class,
+// this.getDialog().getNameContainer().getByName(
+// this.getDialog().CHK_REQUIRE_SHAREALIKE))).
+// setPropertyValue("Enabled", Boolean.TRUE);
+//
+// }
+//
+// } catch (com.sun.star.lang.IllegalArgumentException ex) {
+// ex.printStackTrace();
+// } catch (WrappedTargetException ex) {
+// ex.printStackTrace();
+// } catch (PropertyVetoException ex) {
+// ex.printStackTrace();
+// } catch (UnknownPropertyException ex) {
+// ex.printStackTrace();
+// } catch (NoSuchElementException ex) {
+// ex.printStackTrace();
+// }
super.itemStateChanged(event);
More information about the cc-commits
mailing list