use of de.janrufmonitor.ui.jface.application.action.IAction in project janrufmonitor by tbrandt77.
the class OpenEditorAction method getSubActions.
public IAction[] getSubActions() {
List localCallManagers = getRuntime().getCallerManagerFactory().getTypedCallerManagers(ILocalRepository.class);
List remoteCallManagers = getRuntime().getCallerManagerFactory().getTypedCallerManagers(IRemoteRepository.class);
IAction[] actions = new IAction[localCallManagers.size() + (remoteCallManagers.size() > 0 ? remoteCallManagers.size() : 0)];
for (int i = 0; i < localCallManagers.size(); i++) {
actions[i] = new LocalAction((ILocalRepository) localCallManagers.get(i));
}
if (remoteCallManagers.size() > 0)
for (int i = 0; i < remoteCallManagers.size(); i++) {
actions[i + localCallManagers.size()] = new RemoteAction((IRemoteRepository) remoteCallManagers.get(i));
}
return actions;
}
use of de.janrufmonitor.ui.jface.application.action.IAction in project janrufmonitor by tbrandt77.
the class MacCategoryImportAction method run.
public void run() {
List subfolders = MacAddressBookProxy.getInstance().getCategories();
if (subfolders != null && subfolders.size() > 0) {
MacAddressBookProxy.getInstance().ensureEditorConfigurationCatergories(subfolders);
IAction cat = ActionRegistry.getInstance().getAction("editor_category", this.m_app);
cat.setApplication(this.m_app);
cat.run();
}
}
use of de.janrufmonitor.ui.jface.application.action.IAction in project janrufmonitor by tbrandt77.
the class FritzboxStatAction method getSubActions.
public IAction[] getSubActions() {
IAction[] actions = new IAction[3];
actions[0] = new CallStatistic();
actions[0].setApplication(this.m_app);
actions[1] = new CbcStatsAction();
actions[1].setApplication(this.m_app);
actions[2] = new LineStatsAction();
actions[2].setApplication(this.m_app);
return actions;
}
use of de.janrufmonitor.ui.jface.application.action.IAction in project janrufmonitor by tbrandt77.
the class OutlookCategoryImportAction method run.
public void run() {
OutlookContactProxy ocp = new OutlookContactProxy();
List subfolders = ocp.getAllContactFolders();
if (subfolders != null && subfolders.size() > 0) {
ocp.ensureEditorConfigurationCatergories(subfolders);
IAction cat = ActionRegistry.getInstance().getAction("editor_category", this.m_app);
cat.setApplication(this.m_app);
cat.run();
}
}
use of de.janrufmonitor.ui.jface.application.action.IAction in project janrufmonitor by tbrandt77.
the class NewJournalAction method getSubActions.
public IAction[] getSubActions() {
List localCallerManagers = getRuntime().getCallManagerFactory().getTypedCallManagers(ILocalRepository.class);
filterReadOnlyRepositories(localCallerManagers);
IAction[] actions = new IAction[localCallerManagers.size()];
for (int i = 0; i < localCallerManagers.size(); i++) {
actions[i] = new SubAction((ILocalRepository) localCallerManagers.get(i));
}
return actions;
}
Aggregations