当前位置: 首页>>代码示例>>Java>>正文


Java WorkspaceAgent类代码示例

本文整理汇总了Java中org.eclipse.che.ide.api.parts.WorkspaceAgent的典型用法代码示例。如果您正苦于以下问题:Java WorkspaceAgent类的具体用法?Java WorkspaceAgent怎么用?Java WorkspaceAgent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


WorkspaceAgent类属于org.eclipse.che.ide.api.parts包,在下文中一共展示了WorkspaceAgent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: FindResultPresenter

import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public FindResultPresenter(
    WorkspaceAgent workspaceAgent,
    ProjectServiceClient projectServiceClient,
    CoreLocalizationConstant localizationConstant,
    Resources resources,
    FindResultView view,
    EventBus eventBus) {
  this.workspaceAgent = workspaceAgent;
  this.projectServiceClient = projectServiceClient;
  this.localizationConstant = localizationConstant;
  this.resources = resources;
  this.view = view;

  eventBus.addHandler(ResourceChangedEvent.getType(), this);

  view.setDelegate(this);
}
 
开发者ID:eclipse,项目名称:che,代码行数:19,代码来源:FindResultPresenter.java

示例2: RenameItemAction

import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public RenameItemAction(
    Resources resources,
    CoreLocalizationConstant localization,
    Set<RenamingSupport> renamingSupport,
    EditorAgent editorAgent,
    NotificationManager notificationManager,
    DialogFactory dialogFactory,
    AppContext appContext,
    WorkspaceAgent workspaceAgent) {
  super(
      singletonList(PROJECT_PERSPECTIVE_ID),
      localization.renameItemActionText(),
      localization.renameItemActionDescription(),
      resources.rename());
  this.localization = localization;
  this.renamingSupport = renamingSupport;
  this.editorAgent = editorAgent;
  this.notificationManager = notificationManager;
  this.dialogFactory = dialogFactory;
  this.appContext = appContext;
  this.workspaceAgent = workspaceAgent;
}
 
开发者ID:eclipse,项目名称:che,代码行数:24,代码来源:RenameItemAction.java

示例3: ProjectExplorerDisplayingModeAction

import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public ProjectExplorerDisplayingModeAction(
    Resources resources,
    EditorAgent editorAgent,
    CoreLocalizationConstant localizedConstant,
    WorkspaceAgent workspaceAgent,
    Provider<ProjectExplorerPresenter> projectExplorerPresenterProvider) {
  super(
      singletonList(PROJECT_PERSPECTIVE_ID),
      localizedConstant.switchProjectExplorerDisplayingTitle(),
      localizedConstant.switchProjectExplorerDisplayingDescription(),
      resources.projectExplorerPartIcon());
  this.editorAgent = editorAgent;
  this.workspaceAgent = workspaceAgent;
  this.projectExplorerPresenterProvider = projectExplorerPresenterProvider;
}
 
开发者ID:eclipse,项目名称:che,代码行数:17,代码来源:ProjectExplorerDisplayingModeAction.java

示例4: TerminalDisplayingModeAction

import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public TerminalDisplayingModeAction(
    Resources resources,
    EventBus eventBus,
    EditorAgent editorAgent,
    CoreLocalizationConstant localizedConstant,
    Provider<WorkspaceAgent> workspaceAgentProvider,
    Provider<ProcessesPanelPresenter> processesPanelPresenterProvider) {
  super(
      singletonList(PROJECT_PERSPECTIVE_ID),
      localizedConstant.switchTerminalDisplayingTitle(),
      localizedConstant.switchTerminalDisplayingDescription(),
      resources.terminal());
  this.editorAgent = editorAgent;
  this.workspaceAgentProvider = workspaceAgentProvider;
  this.processesPanelPresenterProvider = processesPanelPresenterProvider;

  eventBus.addHandler(ProcessTreeNodeSelectedEvent.TYPE, this);
}
 
开发者ID:eclipse,项目名称:che,代码行数:20,代码来源:TerminalDisplayingModeAction.java

示例5: actionPerformed

import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Override
public void actionPerformed(ActionEvent e) {
  WorkspaceAgent workspaceAgent = workspaceAgentProvider.get();
  ProcessesPanelPresenter processesPanelPresenter = processesPanelPresenterProvider.get();
  if (isProcessesPanelActive() && isTerminalActive()) {
    workspaceAgent.hidePart(processesPanelPresenter);

    EditorPartPresenter activeEditor = editorAgent.getActiveEditor();
    if (activeEditor != null) {
      workspaceAgent.setActivePart(activeEditor);
    }
    return;
  }

  processesPanelPresenter.provideTerminal();
}
 
开发者ID:eclipse,项目名称:che,代码行数:17,代码来源:TerminalDisplayingModeAction.java

示例6: FindResultDisplayingModeAction

import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public FindResultDisplayingModeAction(
    Resources resources,
    EditorAgent editorAgent,
    CoreLocalizationConstant localizedConstant,
    WorkspaceAgent workspaceAgent,
    Provider<FindResultPresenter> findResultPresenterProvider) {
  super(
      singletonList(PROJECT_PERSPECTIVE_ID),
      localizedConstant.switchFindPartDisplayingTitle(),
      localizedConstant.switchFindPartDisplayingDescription(),
      resources.find());
  this.editorAgent = editorAgent;
  this.workspaceAgent = workspaceAgent;
  this.findResultPresenterProvider = findResultPresenterProvider;
}
 
开发者ID:eclipse,项目名称:che,代码行数:17,代码来源:FindResultDisplayingModeAction.java

示例7: EventLogsDisplayingModeAction

import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public EventLogsDisplayingModeAction(
    Resources resources,
    EditorAgent editorAgent,
    CoreLocalizationConstant localizedConstant,
    WorkspaceAgent workspaceAgent,
    Provider<NotificationManager> notificationManagerProvider) {
  super(
      singletonList(PROJECT_PERSPECTIVE_ID),
      localizedConstant.switchEventLogsDisplayingTitle(),
      localizedConstant.switchEventLogsDisplayingDescription(),
      resources.eventsPartIcon());
  this.editorAgent = editorAgent;
  this.workspaceAgent = workspaceAgent;
  this.notificationManagerProvider = notificationManagerProvider;
}
 
开发者ID:eclipse,项目名称:che,代码行数:17,代码来源:EventLogsDisplayingModeAction.java

示例8: CommandsExplorerDisplayingModeAction

import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public CommandsExplorerDisplayingModeAction(
    Resources resources,
    EditorAgent editorAgent,
    CoreLocalizationConstant localizedConstant,
    WorkspaceAgent workspaceAgent,
    Provider<CommandsExplorerPresenter> commandsExplorerPresenterProvider) {
  super(
      singletonList(PROJECT_PERSPECTIVE_ID),
      localizedConstant.switchCommandExplorerDisplayingTitle(),
      localizedConstant.switchCommandExplorerDisplayingDescription(),
      resources.editCommands());
  this.editorAgent = editorAgent;
  this.workspaceAgent = workspaceAgent;
  this.commandsExplorerPresenterProvider = commandsExplorerPresenterProvider;
}
 
开发者ID:eclipse,项目名称:che,代码行数:17,代码来源:CommandsExplorerDisplayingModeAction.java

示例9: ImageViewer

import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public ImageViewer(
    ImageViewerResources resources,
    CoreLocalizationConstant constant,
    DialogFactory dialogFactory,
    EventBus eventBus,
    WorkspaceAgent workspaceAgent,
    AgentURLModifier urlModifier) {
  this.resources = resources;
  this.constant = constant;
  this.dialogFactory = dialogFactory;
  this.workspaceAgent = workspaceAgent;
  this.urlModifier = urlModifier;

  resources.imageViewerCss().ensureInjected();

  eventBus.addHandler(FileEvent.TYPE, this);
}
 
开发者ID:eclipse,项目名称:che,代码行数:19,代码来源:ImageViewer.java

示例10: RenamePresenter

import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public RenamePresenter(
    LanguageServerLocalization localization,
    TextDocumentServiceClient client,
    DtoFactory dtoFactory,
    Provider<RenameInputBox> renameInputBoxProvider,
    RenameView view,
    WorkspaceAgent workspaceAgent,
    AppContext appContext,
    ApplyWorkspaceEditAction workspaceEditAction,
    Provider<RenameDialog> renameWindow) {
  this.localization = localization;
  this.client = client;
  this.dtoFactory = dtoFactory;
  this.renameInputBoxProvider = renameInputBoxProvider;
  this.view = view;
  this.workspaceAgent = workspaceAgent;
  this.appContext = appContext;
  this.workspaceEditAction = workspaceEditAction;
  this.renameWindow = renameWindow;
  view.setDelegate(this);
}
 
开发者ID:eclipse,项目名称:che,代码行数:23,代码来源:RenamePresenter.java

示例11: OpenLocationPresenter

import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public OpenLocationPresenter(
    LanguageServerResources resources,
    OpenLocationView view,
    WorkspaceAgent workspaceAgent,
    OpenFileInEditorHelper helper,
    NotificationManager notificationManager,
    @Assisted String title) {
  this.resources = resources;
  this.view = view;
  this.workspaceAgent = workspaceAgent;
  this.helper = helper;
  this.notificationManager = notificationManager;
  this.title = title;
  view.setDelegate(this);
  view.setTitle(title);
}
 
开发者ID:eclipse,项目名称:che,代码行数:18,代码来源:OpenLocationPresenter.java

示例12: ContributePartDisplayingModeAction

import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public ContributePartDisplayingModeAction(
    ContributeResources resources,
    EditorAgent editorAgent,
    WorkspaceAgent workspaceAgent,
    Provider<ContributePartPresenter> contributePartPresenterProvider,
    ContributeMessages localizedConstant) {
  super(
      singletonList(PROJECT_PERSPECTIVE_ID),
      localizedConstant.switchContributePartDisplayingTitle(),
      localizedConstant.switchContributePartDisplayingDescription(),
      resources.titleIcon());
  this.editorAgent = editorAgent;
  this.workspaceAgent = workspaceAgent;
  this.contributePartPresenterProvider = contributePartPresenterProvider;
}
 
开发者ID:eclipse,项目名称:che,代码行数:17,代码来源:ContributePartDisplayingModeAction.java

示例13: FindUsagesPresenter

import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public FindUsagesPresenter(
    WorkspaceAgent workspaceAgent,
    JavaLocalizationConstant localizationConstant,
    FindUsagesView view,
    JavaSearchService searchService,
    DtoFactory dtoFactory,
    NotificationManager manager,
    Resources resources) {
  this.workspaceAgent = workspaceAgent;
  this.localizationConstant = localizationConstant;
  this.view = view;
  this.searchService = searchService;
  this.dtoFactory = dtoFactory;
  this.manager = manager;
  this.resources = resources;
  view.setDelegate(this);
}
 
开发者ID:eclipse,项目名称:che,代码行数:19,代码来源:FindUsagesPresenter.java

示例14: RefactoringUpdater

import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public RefactoringUpdater(
    AppContext appContext,
    EditorMultiPartStackPresenter editorMultiPartStack,
    WorkspaceAgent workspaceAgent,
    DeletedFilesController deletedFilesController,
    EventBus eventBus,
    EditorAgent editorAgent,
    ClientServerEventService clientServerEventService,
    PromiseProvider promises) {
  this.appContext = appContext;
  this.editorMultiPartStack = editorMultiPartStack;
  this.workspaceAgent = workspaceAgent;
  this.deletedFilesController = deletedFilesController;
  this.eventBus = eventBus;
  this.editorAgent = editorAgent;
  this.clientServerEventService = clientServerEventService;
  this.promises = promises;
}
 
开发者ID:eclipse,项目名称:che,代码行数:20,代码来源:RefactoringUpdater.java

示例15: DebuggerDisplayingModeAction

import org.eclipse.che.ide.api.parts.WorkspaceAgent; //导入依赖的package包/类
@Inject
public DebuggerDisplayingModeAction(
    DebuggerResources resources,
    EditorAgent editorAgent,
    WorkspaceAgent workspaceAgent,
    Provider<DebuggerPresenter> debuggerPresenterProvider,
    DebuggerLocalizationConstant localizedConstant) {
  super(
      singletonList(PROJECT_PERSPECTIVE_ID),
      localizedConstant.switchDebuggerDisplayingTitle(),
      localizedConstant.switchDebuggerDisplayingDescription(),
      resources.debug());
  this.editorAgent = editorAgent;
  this.workspaceAgent = workspaceAgent;
  this.debuggerPresenterProvider = debuggerPresenterProvider;
}
 
开发者ID:eclipse,项目名称:che,代码行数:17,代码来源:DebuggerDisplayingModeAction.java


注:本文中的org.eclipse.che.ide.api.parts.WorkspaceAgent类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。