Removed all static references to the Pithos class
[pithos-web-client] / src / gr / grnet / pithos / web / client / AbstractPropertiesDialog.java
index b63350a..2fbda4c 100644 (file)
@@ -76,12 +76,14 @@ public abstract class AbstractPropertiesDialog extends DialogBox {
 \r
        protected TabPanel inner = null;\r
 \r
+    protected Pithos app;\r
+\r
        /**\r
         * The widget's constructor.\r
         *\r
         */\r
-       public AbstractPropertiesDialog() {\r
-\r
+       public AbstractPropertiesDialog(Pithos _app) {\r
+        app = _app;\r
                // Enable IE selection for the dialog (must disable it upon closing it)\r
                Pithos.enableIESelection();\r
 \r
@@ -92,7 +94,7 @@ public abstract class AbstractPropertiesDialog extends DialogBox {
         * Retrieves all user tags from the server and updates the FlowPanel\r
         */\r
        protected void updateTags() {\r
-               GetCommand<TagsResource> tc = new GetCommand<TagsResource>(TagsResource.class, Pithos.get().getCurrentUserResource().getTagsPath(),null) {\r
+               GetCommand<TagsResource> tc = new GetCommand<TagsResource>(app, TagsResource.class, app.getCurrentUserResource().getTagsPath(),null) {\r
 \r
                        @Override\r
                        public void onComplete() {\r
@@ -128,7 +130,7 @@ public abstract class AbstractPropertiesDialog extends DialogBox {
                        @Override\r
                        public void onError(Throwable t) {\r
                                GWT.log("", t);\r
-                               Pithos.get().displayError("Unable to fetch user tags");\r
+                               app.displayError("Unable to fetch user tags");\r
                        }\r
                };\r
                DeferredCommand.addCommand(tc);\r