示例#1
0
 public PoderosaLogDocument(PoderosaLogViewerSession session) {
     _caption = "Poderosa Event Log";
     _session = session;
     //1行はないとだめな制約があるので
     this.AddLine(GLine.CreateSimpleGLine("", TextDecoration.Default));
     _nextLineIsFirstLine = true;
 }
 public PoderosaLogDocument(PoderosaLogViewerSession session)
 {
     this.Caption = "Poderosa Event Log";
     _session     = session;
     //1行はないとだめな制約があるので
     this.AddLine(CreateSimpleGLine(""));
 }
 public PoderosaLogDocument(PoderosaLogViewerSession session)
 {
     _caption = "Poderosa Event Log";
     _session = session;
     //�P�s�͂Ȃ��Ƃ��߂Ȑ��񂪂���̂�
     this.AddLine(GLine.CreateSimpleGLine("", TextDecoration.Default));
     _nextLineIsFirstLine = true;
 }
        public override void InitializePlugin(IPoderosaWorld poderosa) {
            base.InitializePlugin(poderosa);

            _instance = this;
            _strings = new StringResource("Poderosa.Usability.strings", typeof(PoderosaLogViewerPlugin).Assembly);
            poderosa.Culture.AddChangeListener(_strings);
            _coreServices = (ICoreServices)poderosa.GetAdapter(typeof(ICoreServices));
            _viewFactory = new LogViewerFactory();
            poderosa.PluginManager.FindExtensionPoint(WindowManagerConstants.VIEW_FACTORY_ID).RegisterExtension(_viewFactory);
            _session = new PoderosaLogViewerSession();

            ICommandManager cm = _coreServices.CommandManager;
            //Command and Menu
            _command = new GeneralCommandImpl("org.poderosa.poderosalogviewer.show", _strings, "Command.PoderosaLog", cm.CommandCategories.Dialogs,
                new ExecuteDelegate(CmdShowPoderosaLog));
            poderosa.PluginManager.FindExtensionPoint("org.poderosa.menu.tool").RegisterExtension(
                new PoderosaMenuGroupImpl(new PoderosaMenuItemImpl(_command, _strings, "Menu.PoderosaLog")));
        }
        public override void InitializePlugin(IPoderosaWorld poderosa)
        {
            base.InitializePlugin(poderosa);

            _instance = this;
            _strings  = new StringResource("Poderosa.Usability.strings", typeof(PoderosaLogViewerPlugin).Assembly);
            poderosa.Culture.AddChangeListener(_strings);
            _coreServices = (ICoreServices)poderosa.GetAdapter(typeof(ICoreServices));
            _viewFactory  = new LogViewerFactory();
            poderosa.PluginManager.FindExtensionPoint(WindowManagerConstants.VIEW_FACTORY_ID).RegisterExtension(_viewFactory);
            _session = new PoderosaLogViewerSession();

            ICommandManager cm = _coreServices.CommandManager;

            //Command and Menu
            _command = new GeneralCommandImpl("org.poderosa.poderosalogviewer.show", _strings, "Command.PoderosaLog", cm.CommandCategories.Dialogs,
                                              new ExecuteDelegate(CmdShowPoderosaLog));
            poderosa.PluginManager.FindExtensionPoint("org.poderosa.menu.tool").RegisterExtension(
                new PoderosaMenuGroupImpl(new PoderosaMenuItemImpl(_command, _strings, "Menu.PoderosaLog")));
        }
示例#6
0
 public void SetParent(PoderosaLogViewerSession session) {
     _session = session;
     this.SetPrivateRenderProfile(CreateLogRenderProfile());
     this.SetContent(_session.Document);
 }
 public void SetParent(PoderosaLogViewerSession session)
 {
     _session = session;
     this.SetPrivateRenderProfile(CreateLogRenderProfile());
     this.SetContent(_session.Document);
 }
 public PoderosaLogDocument(PoderosaLogViewerSession session) {
     _caption = "Poderosa Event Log";
     _session = session;
     //1行はないとだめな制約があるので
     this.AddLine(GLine.CreateSimpleGLine("", TextDecoration.Default));
     _nextLineIsFirstLine = true;
 }