Logo Search packages:      
Sourcecode: aspectj version File versions

void org::aspectj::ajde::Ajde::init ( ICompilerConfiguration  compilerConfig,
IUIBuildMessageHandler  uiBuildMessageHandler,
IBuildProgressMonitor  monitor,
EditorAdapter  editorAdapter,
IdeUIAdapter  ideUIAdapter,
IconRegistry  iconRegistry,
Frame  rootFrame,
IRuntimeProperties  runtimeProperties,
boolean  useFileView 
) [inline]

Initializes the ajde ui and sets up the compiler

Definition at line 96 of file Ajde.java.

References org::aspectj::ajde::internal::BuildConfigManager::addListener(), asm, buildConfigEditor, buildProgressMonitor, compilerConfig, configurationManager, org::aspectj::asm::AsmManager::createNewStructureModel(), org::aspectj::ajde::ui::StructureViewManager::createViewForSourceFile(), editorAdapter, org::aspectj::ajde::EditorAdapter::getCurrFile(), org::aspectj::ajde::ui::StructureViewManager::getDefaultViewProperties(), org::aspectj::ajde::core::IBuildMessageHandler::handleMessage(), iconRegistry, ideUIAdapter, rootFrame, runtimeProperties, org::aspectj::ajde::ui::StructureViewManager::setDefaultFileView(), STRUCTURE_UPDATE_CONFIG_LISTENER, structureSearchManager, structureViewManager, and uiBuildMsgHandler.

                                                                                              {
            try {

                  INSTANCE.compilerConfig = compilerConfig;
                  INSTANCE.uiBuildMsgHandler = uiBuildMessageHandler;
                  INSTANCE.buildProgressMonitor = monitor;
                  INSTANCE.asm = AsmManager.createNewStructureModel(Collections.EMPTY_MAP);

                  INSTANCE.iconRegistry = iconRegistry;
                  INSTANCE.ideUIAdapter = ideUIAdapter;
                  INSTANCE.buildConfigEditor = new TreeViewBuildConfigEditor();
                  INSTANCE.rootFrame = rootFrame;
                  INSTANCE.runtimeProperties = runtimeProperties;

                  INSTANCE.configurationManager.addListener(INSTANCE.STRUCTURE_UPDATE_CONFIG_LISTENER);
                  INSTANCE.ideUIAdapter = ideUIAdapter;
                  INSTANCE.editorAdapter = editorAdapter;
                  INSTANCE.structureSearchManager = new StructureSearchManager();
                  INSTANCE.structureViewManager = new StructureViewManager(new SwingTreeViewNodeFactory(iconRegistry));

                  if (useFileView) {
                        FileStructureView structureView = structureViewManager.createViewForSourceFile(editorAdapter.getCurrFile(),
                                    structureViewManager.getDefaultViewProperties());
                        structureViewManager.setDefaultFileView(structureView);
                        fileStructurePanel = new StructureViewPanel(structureView);
                  }

                  viewManager = new BrowserViewManager();
                  optionsFrame = new OptionsFrame(iconRegistry);

                  initialized = true;
            } catch (Throwable t) {
                  Message error = new Message("AJDE UI failed to initialize", IMessage.ABORT, t, null);
                  uiBuildMsgHandler.handleMessage(error);
            }
      }


Generated by  Doxygen 1.6.0   Back to index