mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-93164
This commit is contained in:
+1
-3
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package com.intellij.designer.componentTree;
|
||||
|
||||
import com.intellij.designer.DesignerBundle;
|
||||
import com.intellij.designer.clipboard.SimpleTransferable;
|
||||
import com.intellij.designer.designSurface.ComponentTargetFilter;
|
||||
import com.intellij.designer.designSurface.EditOperation;
|
||||
@@ -256,8 +255,7 @@ public class TreeDropListener extends DropTargetAdapter {
|
||||
|
||||
private void executeCommand() {
|
||||
if (myExecuteEnabled) {
|
||||
myToolProvider.execute(Collections.singletonList(myTargetOperation),
|
||||
DesignerBundle.message("command.tool_operation", myContext.getType()));
|
||||
myToolProvider.execute(Collections.singletonList(myTargetOperation), myContext.getMessage());
|
||||
if (myContext.isCreate()) {
|
||||
myArea.setSelection(myContext.getComponents());
|
||||
}
|
||||
|
||||
+5
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
package com.intellij.designer.designSurface;
|
||||
|
||||
import com.intellij.designer.DesignerBundle;
|
||||
import com.intellij.designer.model.RadComponent;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -58,6 +59,10 @@ public final class OperationContext {
|
||||
myType = type;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return DesignerBundle.message(myType == null ? "command.tool_operation" : myType.toString());
|
||||
}
|
||||
|
||||
public boolean is(Object type) {
|
||||
if (myType == type) {
|
||||
return true;
|
||||
|
||||
+1
-1
@@ -134,7 +134,7 @@ public class ResizeTracker extends InputTool {
|
||||
operations.add(operation);
|
||||
}
|
||||
}
|
||||
myToolProvider.execute(operations, DesignerBundle.message("command.tool_operation", myContext.getType()));
|
||||
myToolProvider.execute(operations, DesignerBundle.message("command.tool_operation"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-2
@@ -79,8 +79,7 @@ public abstract class TargetingTool extends InputTool {
|
||||
|
||||
protected void executeCommand() {
|
||||
if (myExecuteEnabled) {
|
||||
myToolProvider
|
||||
.execute(Collections.singletonList(myTargetOperation), DesignerBundle.message("command.tool_operation", myContext.getType()));
|
||||
myToolProvider.execute(Collections.singletonList(myTargetOperation), myContext.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
designer.toolwindow.name=Designer
|
||||
designer.toolwindow.title=Component Tree
|
||||
|
||||
command.tool_operation=Visual edit operation: {0}
|
||||
move_children=Move Component
|
||||
add_children=Move Component
|
||||
create_children=Insert Component
|
||||
paste_children=Paste
|
||||
command.tool_operation=Visual Edit Operation
|
||||
command.delete.selection=Delete Selection
|
||||
command.set.property.value=Set Property Value
|
||||
|
||||
|
||||
Reference in New Issue
Block a user