Search in sources :

Example 1 with MyPieceDistributionView

use of com.biglybt.ui.swt.views.piece.MyPieceDistributionView in project BiglyBT by BiglySoftware.

the class PiecesViewBase method registerPluginViews.

private static void registerPluginViews() {
    ViewManagerSWT vm = ViewManagerSWT.getInstance();
    if (vm.areCoreViewsRegistered(PLUGIN_DS_TYPE)) {
        return;
    }
    vm.registerView(PLUGIN_DS_TYPE, new UISWTViewBuilderCore(PieceInfoView.MSGID_PREFIX, null, PieceInfoView.class));
    vm.registerView(PLUGIN_DS_TYPE, new UISWTViewBuilderCore("MyPieceDistributionView", null, MyPieceDistributionView.class));
    vm.setCoreViewsRegistered(PLUGIN_DS_TYPE);
}
Also used : UISWTViewBuilderCore(com.biglybt.ui.swt.pifimpl.UISWTViewBuilderCore) PieceInfoView(com.biglybt.ui.swt.views.piece.PieceInfoView) MyPieceDistributionView(com.biglybt.ui.swt.views.piece.MyPieceDistributionView)

Aggregations

UISWTViewBuilderCore (com.biglybt.ui.swt.pifimpl.UISWTViewBuilderCore)1 MyPieceDistributionView (com.biglybt.ui.swt.views.piece.MyPieceDistributionView)1 PieceInfoView (com.biglybt.ui.swt.views.piece.PieceInfoView)1