Skip to content

Commit

Permalink
Merge pull request #7 from ps-watchapp/Polling
Browse files Browse the repository at this point in the history
Added Polling Thread
  • Loading branch information
nandokoch authored Aug 15, 2017
2 parents cbcd57e + 2a19a58 commit 3cf952f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class ApplicationGen {
import «Settings.MD2LIBRARY_TASKQUEUE_PACKAGE_NAME»;
import «Settings.MD2LIBRARY_VIEWMANAGER_PACKAGE_NAME»;
import «Settings.MD2LIBRARY_WIDGETREGISTRY_PACKAGE_NAME»;
import «Settings.MD2LIBRARY_PACKAGE»model.contentProvider.implementation.Polling;


public class «app.name.toFirstUpper» extends Application {

Expand All @@ -40,6 +42,9 @@ class ApplicationGen {
wr = Md2WidgetRegistry.getInstance();
context = getApplicationContext();
Controller.getInstance().run();
Thread t = new Thread(new Polling(cpr));
t.start();

}

public static Context getAppContext() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,11 @@ import «Settings.MD2LIBRARY_PACKAGE»controller.eventhandler.implementation.Md2
public void newEntity(){
content = new «(content.entity as Entity).name»();
}
public void update() {
System.out.println("single wurde geupdated");
}
}
'''}


Expand Down Expand Up @@ -319,7 +322,10 @@ import de.uni_muenster.wi.md2library.model.contentProvider.implementation.Abstra
}
}
}
public void update() {
System.out.println("multi wurde geupdated");
}
'''
}

Expand Down

0 comments on commit 3cf952f

Please sign in to comment.