⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 idl_rmi_iiop_servertool.cpp

📁 用bcg库编写的java IDE 源码
💻 CPP
字号:
// IDL_RMI_IIOP_Servertool.cpp : implementation file
//

#include "stdafx.h"
#include "VisualJava.h"
#include "IDL_RMI_IIOP_Servertool.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


#define CPropertyPage CSAPrefsSubDlg
/////////////////////////////////////////////////////////////////////////////
// CIDL_RMI_IIOP_Servertool property page

  LPCTSTR CIDL_RMI_IIOP_Servertool::m_Options[]=
  {
    _T("-ORBInitialHost"),
	_T("-ORBInitialPort"),
    _T("-J"),
	NULL
  };

  LPCTSTR CIDL_RMI_IIOP_Servertool::m_registeroptions[]=
  {
	_T("-server"),
	m_szpclasspath,
	_T("-applicationName"),
	_T("-args"),
	_T("-vmargs"),
	NULL	  
  };

  LPCTSTR CIDL_RMI_IIOP_Servertool::m_unregisteroptions[]=
  {
	_T("-serverid "),
	_T("-applicationName"),
	NULL	  
  };

  LPCTSTR CIDL_RMI_IIOP_Servertool::m_getserveridoptions[]=
  {
	_T("-applicationName"),
	NULL  
  };

  LPCTSTR CIDL_RMI_IIOP_Servertool::m_listoptions[]=
  {
	NULL	  
  };

  LPCTSTR CIDL_RMI_IIOP_Servertool::m_listappnamesoptions[]=
  {
	NULL
  };

  LPCTSTR CIDL_RMI_IIOP_Servertool::m_listactiveoptions[]=
  {
    NULL	  
  };

  LPCTSTR CIDL_RMI_IIOP_Servertool::m_locateoptions[]=
  {
	_T("-serverid"),
	_T("-applicationName"),
	_T("-endpointType"),
	NULL	  
  };

  LPCTSTR CIDL_RMI_IIOP_Servertool::m_locateperorboptions[]=
  {
	_T("-serverid"),
	_T("-applicationName"),
	_T("-orbid"),
	NULL	  
  };

  LPCTSTR CIDL_RMI_IIOP_Servertool::m_orblistoptions[]=
  {
	_T("-serverid"),
	_T("-applicationName"),
	NULL	  
  };

  LPCTSTR CIDL_RMI_IIOP_Servertool::m_shutdownoptions[]=
  {
	_T("-serverid"),
	_T("-applicationName"),
	NULL
  };

  LPCTSTR CIDL_RMI_IIOP_Servertool::m_startupoptions[]=
  {
	_T("-serverid"),
	_T("-applicationName"),
	NULL
  };

  LPCTSTR CIDL_RMI_IIOP_Servertool::m_helpoptions[]=
  {
	NULL	  
  };

  LPCTSTR CIDL_RMI_IIOP_Servertool::m_quitoptions[]=
  {
	NULL	  
  };

  LPCTSTR* CIDL_RMI_IIOP_Servertool::m_pOptions[]=
  {
	CIDL_RMI_IIOP_Servertool::m_registeroptions,
    CIDL_RMI_IIOP_Servertool::m_unregisteroptions,
    CIDL_RMI_IIOP_Servertool::m_getserveridoptions,
    CIDL_RMI_IIOP_Servertool::m_listoptions,
    CIDL_RMI_IIOP_Servertool::m_listappnamesoptions,
    CIDL_RMI_IIOP_Servertool::m_listactiveoptions,
	CIDL_RMI_IIOP_Servertool::m_locateoptions,
	CIDL_RMI_IIOP_Servertool::m_locateperorboptions,
    CIDL_RMI_IIOP_Servertool::m_orblistoptions,
	CIDL_RMI_IIOP_Servertool::m_shutdownoptions,
    CIDL_RMI_IIOP_Servertool::m_startupoptions,
    CIDL_RMI_IIOP_Servertool::m_helpoptions,
    CIDL_RMI_IIOP_Servertool::m_quitoptions,
	NULL
  };

  LPCTSTR CIDL_RMI_IIOP_Servertool::m_Commands[]=
  {
    _T("register"),
	_T("unregister"),
	_T("getserverid"),
	_T("list"),
	_T("listappnames"),
	_T("listactive"),
	_T("locate"),
	_T("locateperorb"),
	_T("orblist"),
	_T("shutdown"),
	_T("startup"),
	_T("help"),
	_T("quit"),
	NULL
  };



IMPLEMENT_DYNCREATE(CIDL_RMI_IIOP_Servertool, CPropertyPage)

CIDL_RMI_IIOP_Servertool::CIDL_RMI_IIOP_Servertool() : CPropertyPage(CIDL_RMI_IIOP_Servertool::IDD)
{
	//{{AFX_DATA_INIT(CIDL_RMI_IIOP_Servertool)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
}

CIDL_RMI_IIOP_Servertool::~CIDL_RMI_IIOP_Servertool()
{
}

void CIDL_RMI_IIOP_Servertool::DoDataExchange(CDataExchange* pDX)
{
	CPropertyPage::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CIDL_RMI_IIOP_Servertool)
	DDX_Control(pDX, IDC_SERVERTOOL_COMMANDS, m_wndServerToolCommands);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CIDL_RMI_IIOP_Servertool, CPropertyPage)
	//{{AFX_MSG_MAP(CIDL_RMI_IIOP_Servertool)
	ON_CBN_SELCHANGE(IDC_SERVERTOOL_COMMANDS, OnSelchangeServertoolCommands)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CIDL_RMI_IIOP_Servertool message handlers

BOOL CIDL_RMI_IIOP_Servertool::OnInitDialog() 
{
	CPropertyPage::OnInitDialog();
	
	m_wndOptions.SubclassDlgItem(IDC_SERVERTOOL_OPTIONS,this);

	for(int i=0; m_Options[i] != NULL; i++)
		m_wndOptions.AddString(m_Options[i]);	

	m_wndCommandOptions.SubclassDlgItem(IDC_COMMAND_OPTIONS,this);
	return TRUE;
}

void CIDL_RMI_IIOP_Servertool::OnSelchangeServertoolCommands() 
{
  int nIndex = m_wndServerToolCommands.GetCurSel();
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -